diaster recovery for linux

January 5, 2008 at 3:14 pm 1 comment

boot from live cd
mount the partition
mv etc etc.ORG
mv sbin sbin.ORG
mv usr usr.ORG
mv var var.ORG
install the linux and keep all the mount point, do not format the partition
after installation
Restore account
cp /etc.ORG/passwd /etc; cp /etc.ORG/group /etc; cp /etc.ORG/shadow /etc; cp /etc.ORG/gshadow /etc
cp -a /etc.ORG/httpd /etc     <– any service config file you want to restore

Entry filed under: Linux, redhat.

if crontab -e not work rescue grub

1 Comment Add your own

Leave a comment

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

January 2008
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  

Most Recent Posts