filesystem recovery

how do i recover filesystems in linux?

i used the following commands to recover the root file systems

fsck /

and

e2fsck -B -v -p /dev/hda1

but they dont seem to recover the other file systems such as /usr and /home

somebody tell me how.
chanakya012500Asked:
Who is Participating?
 
jyu_88Connect With a Mentor Commented:
do a `df -kv` to see if and where /usr and /home are mounted.

if /dev/hda2 is for /usr, then you can do fsck on /dev/hda2 for unmounted check. or mount /usr then do fsck on /usr.
0
 
chanakya012500Author Commented:
on a df -kv
i did not see other file systems such as /usr & /home other than the / file system.

my problem was that the superblock was corrupted;  and the system was not able to recover from the superblock backups.

i solved it by mounting this hard disk as a file system from another system ie., made this slave and copied relevant information on to the other hard disk.

i now propose to format this hard disk and reinstall linux and other databases.

any problem in doing this?
0
 
chanakya012500Author Commented:
on a df -kv
i did not see other file systems such as /usr & /home other than the / file system.

my problem was that the superblock was corrupted;  and the system was not able to recover from the superblock backups.

i solved it by mounting this hard disk as a file system from another system ie., made this slave and copied relevant information on to the other hard disk.

i now propose to format this hard disk and reinstall linux and other databases. (then copy data from the backup i created in a new system's hard disk)

any problem in doing this?
0
 
bernardhCommented:
create a file system on your hard disk with corrupted superblock.

   $ mkfs -t ext2 -m 0 /dev/hdn

where hdn is your hard disk with bad superblock.
0
All Courses

From novice to tech pro — start learning today.