Just a hunch, maybe the /etc/fstab entry isn't quite right, maybe you 
manually did it all and never rebooted.

It's possible that there are no partitions on /dev/hdc and that mounting 
/dev/hdc might just work. Perhaps test with e2fsck /dev/hdc.

If you're sure it has partitions then you need some sort of recovery tool 
as Roger Barnes suggests. I did find one... trying to remember what it's 
called to search for it again! argh!

Apart from that, to find backup superblocks you can do this:-
mke2fs -n /dev/hdc (if it never had partitions)
mke2fs -n /dev/hdc1 (when you've recovered the partitions)
As always, check the man page entry for commands you're not familiar with 
"man mke2fs" and look for the -n option.

On Tue, 22 Feb 2005, Mr A Tomlinson wrote:

> One of my first Linux servers has just had a hdd go bad. Well sort of.....I
> think.
> 
> It is a RH9 install on a Pentium 200 running samba and winbind integrated as
> a 'member server' in an NT4 domain.
> About a 9months ago I added a single IDE 160GB HDD and moved all of data
> onto it. I couldn't believe Linux recognised and allocated the entire 160GB
> when only 8gb was visible in bios. This was my personal file server at work
> where I keep deployment images, drivers and other misc software for general
> use around the network.
> 
> It ran solidly without reboot until recently I noticed directories
> disappearing from the file structure and throughput dropped to a crawl. I
> foolishly rebooted the unit as this tends to solve any trouble I have with
> m$ servers and it got stuck during boot process at the fsck of the device
> saying the superblock was ......... {bad, or short read or something} and
> dropped into single user mode.
> 
> I removed the drive entry from /etc/fstab and rebooted normally, then set
> out to repair.
> 
> I tried fsck /dev/hdc1 and got the superblock error with short read and a
> suggestion to try......
> fsck /dev/hdc1 -b 8193 and get the same error.
> When I ran fdisk /dev/hdc and used the P command it showed to drive as
> having no partitions.
> 
> Now I don't have anything on that drive that is vital, otherwise I would
> have backed it up. But I'd still like to recover the drive as an exercise in
> improving my linux skills. The drive used to contain a single partition
> formatted with ext3 filesystem. It is still recognised by bios, spins up and
> appears to be ready to have a partition and file system installed.
> 
> So, Can I just create a partition with fdisk and run fsck again to repair?
> Do I have to mkfs again?
> What options or methods would you use in this situation?
> 
> Even if the top level directories and files where unrecognisable I could
> still make sense of the lower directories and file which should remove
> intact after repair?
> 
> Thanks
> Andre
> 
> 
> 
> 

-- 
---<GRiP>---
** ROOM FOR RENT $120pw (neg) near Newington Shops 525/401 buses **
Electronic Hobbyist, Former Arcadia BBS nut, Occasional nudist, 
Linux Guru, SLUG Secretary, AUUG and Linux Australia member, Sydney 
Flashmobber, Tenpin Bowler, BMX rider, Walker, Raver & rave music 
lover, Big kid that refuses to grow up. I'd make a good family pet, 
take me home today!
        Some people actually read these things it seems.


-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to