D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Corrupt partitions



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mltruscott wrote:
>
> I was running Mandrake 9.0 as part of a dual boot system.  Then my sons
> installed a new game (in Windows) and since then Linux is unreachable.
>
> I get the following error message while booting:
>
> EXT3-fs:unable to read superblock
> mount: error 22 mounting ext3 flags kernel panic.  No init found.  Try
> passing in it= option to kernel.

I think a virus got your MBR (Lots do including Magistr viruses), so
disinfect Windows first, then booting with Knoppix or recovery disk
should let you see if the Linux filesystems are okay, and rerun "lilo"
(possibly with have to specify a patch to the old lilo.conf (or whatever
tool mandrake uses - grub?).

IF the Linux filesystem is corrupted, by something overwriting the start
of a partition, this would cause the first superbock to be corrupt.

However superblocks are places at regular intervals across McCusick, and
derived filesystems, and a later superblock can be fed to fsck (or
e2fsck more specifically), to allow it to repair the filesystem. Yes
might have iffy undelete for files, but it inherited Unixes get out of
jail free card, if you toast an entire filesystem.

Obviously if the disk is so corrupted as to require use of redundant
superblock you might not want to rely on it's contents, but I've used
this to recover data from damaged filesystems before on HP-UX, but then
I have always recreated the filesystem from scratch.

If it is the partition table that is corrupt I'm not sure what the right
recovery plan is for Linux, my guess would be check parted
documentation, I'm sure there will be a tool.

 Simon

PS: The magistr virus does it after so many boots or something similar,
so your son may not have installed the virus, just been a victim of it's
timing, although I'd be very suspicious of the games executables.
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/crktGFXfHI9FVgYRAh52AKDFUEJAaEA3+fqqJVoB2nHkDnRpTwCfcOoG
uU0R9/rJUH0sRiTX7NvNe9U=
=ZMqz
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly