Re: unable to mount root (kernel panic)

Richard B. Johnson (root@analogic.com)
Fri, 20 Jun 1997 16:21:25 -0400 (EDT)


On Fri, 20 Jun 1997, tk wrote:

> I just successfully installed the 2.0.30 kernel on a machine I've been
> running for a long time, through several kernels, and run into a problem.
>
> When rebooting, I get the following message:
> "Kernel panic: VFS: unable to mount root fs on 03:03"
>
>
> When mounting hda3 from a floppy I get the following:
> EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
> EXT2-fs error (device 3/3): ext2_check_blocks_bitmap: wrong free blocks count
> for group 48, stored = 1595, counted 1580
> Then 3 more errors with the same "wrong free blocks" message.
> One of them is in the same group 48, with a different number.
> The other two are in the superblock.
>
> My question is quite possibly, how to run e2fsck in this scenario?
>

Easy....

# kill -TERM -1 .. kill everything except you
# kill -KILL -1
# sync .. un-mounts faster
# umount -a .. unmount all file-systems (/ is now R/O)
# fsck -f / .. force checking of "/"
# reboot (or shutdown -r now)

Cheers,
DJ
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Analogic Corporation
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.42 on an i586 machine (66.15 BogoMips).
Warning : It's hard to stay on the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-