PDA

View Full Version : Repair bad linux filesystem that can't be mounted



Agent_24
21-07-2008, 10:43 PM
I have a hard drive with some kind of linux on it (not sure what) which I want to read (but can't) From the errors I get, it seems to be using ext2 filesystem.

If I try to boot from the drive, LILO loads and then I get this menu:
http://www.imagef1.net.nz/files/linux_001.jpg

None of the options work. If I try to load the first one I get this:
http://www.imagef1.net.nz/files/linux1216634157.jpg

looking at the drive in ubuntu live, I see this:
http://www.imagef1.net.nz/files/Screenshot--dev-hda_-_GParted-1.png

Is there any way to fix this? or is the filesystem completely wrecked?
Oh and does anyone know what distro this is from looking at the splashscreen?

Jen
21-07-2008, 10:56 PM
It looks like Mandriva (Mandrake) from around 2004 in time. You can see the reference to Red Hat nash version 3.5.18-mdk.

Can you mount hda1 from the Ubuntu disk and run any commands like fdisk -l on it?

Agent_24
21-07-2008, 11:35 PM
I can't mount it. I just get an error.

Mount: wrong fs type (I specified ext2), bad option, bad superblock on /dev/hda1, missing codepage or other error

johnd
22-07-2008, 10:00 PM
You will probably get the same result but I wonder if it would be worth trying to access it from (say) a Knoppix boot disk?

Erayd
22-07-2008, 10:45 PM
fdisk -l doesn't require mounting the disk first. What is the output for this command? Note that you run it on the drive itself (e.g. /dev/hda), not on the partition.

Agent_24
23-07-2008, 12:19 AM
I gave up, and since I don't actually care for what's on the drive I just tried reformatting it - with a LOT of errors, then when I rebooted the PC told me that SMART detected an imminent failure - so out it goes :badpc: