Sunday, March 3, 2013

I Accidentally Removed "/usr/sbin" : How to recover it in Linux

whenever you run rm command be carefull.first run ls and see what are the files and folders going to be deleted.then only run rm.rm * deletes all the contents in current directory.which may destroy your system.

some possibilities to recover deleted directory /usr/bin :it contains all system binary files.

1> go to rescue mode and try to restore. or upgrade using CD/DVD.
2>try copying the same directory /usr/sbin from some other operating system(prefer the same Operating System and (if possible)same version )

to copy the directory
1> go to terminal during system boot
2>run su
3>run cp xyz /usr/
where xyz is path for the directory sbin