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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jyu_88Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.