Messages in this thread | | | Date | Fri, 20 Jun 1997 23:06:50 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: unable to mount root, /hda1/MSDOS FS problem |
| |
On Fri, 20 Jun 1997, tk wrote:
> I was able to run e2fsck* on hda3 from the floppy. > Thanks for the advice on that. > > I am further down to solving the problem, but I am still in with the same > problem. > > If I boot the system normally, I still get an error message as follows: > "Kernel panic: VFS: unable to mount root fs on 03:03" > > The immediately preceding lines say: > " > Partition check: > hda: hda1 hda2 hda3 > [MS-DOS FS Rel. 12, FAT 0,check=n,conv=b,uid=0,gid=0,umask=022] > [me=0xdc,cs=0,#f=86,fs=0,fl=47488,ds=20736,de=49608,data=23841, > se=37682,ts=69504,ls=23295] > Transaction block size = 512 > " > > After that it says: > "Kernel panic: VFS: unable to mount root fs on 03:03" > > > I presume the problem has something to do with the DOS partition which is > at hda1. If I recall correctly this machine has the superblock in hda1. I > don't know how to verify that, so I can't say for sure. > > I booted from a floppy and run e2fsck on /dev/hda3. > It fixed some problems on it. > I tried rebooting and things were still the same. (Kernel panic) > I then tried booted from a floppy again and tried booting with an older > working /vmlinuz. Still the same error message. > > I can get the system running if I boot from a boot floppy and then enter > "mount root=/dev/hda3" at the first prompt. > (There is another issue that shows up at this point. See ** so my real > question doesn't get lost): > > > Does anyone know what the problem is, and how can I go about fixing it? > > > Thanks, > > Troy > This is my "make_floppy" shell script that sets the correct root file-system. It presumes that zImage is in the correct place and you have a 1.4 Mb floppy in drive "A". It also presumes that you have already mounted the correct root file system by whatever means. I use this extensively to test new kernels. Once they are known to work, I use lilo to update the boot image on the hard disk (also using a shell-script).
# # # Created 21-JAN-1995 Richard B. Johnson # cp /vmlinux /vmlinux.old cp /usr/src/linux/System.map / cp /usr/src/linux/arch/i386/boot/zImage /vmlinux ROOTDEV=`df / | cut -d ' ' -f1 | sed -e1d` echo -n 'Setting root device as ' ; echo ${ROOTDEV} rdev -R /vmlinux 1 rdev /vmlinux ${ROOTDEV} cp /vmlinux /dev/fd0 psupdate
Once you get the machine up with a floppy, you can make your hard disk bootable using this script.
# # If /etc/lilo.conf is set up right, this will update the bootable image # on the hard disk presently mounted as the root filesystem. # Created 21-JAN-1995 Richard B. Johnson # cp /vmlinux /vmlinux.old cp /usr/src/linux/System.map / cp /usr/src/linux/arch/i386/boot/zImage /vmlinux ROOTDEV=`df / | cut -d ' ' -f1 | sed -e1d` echo -n 'Setting root device as ' ; echo ${ROOTDEV} rdev -R /vmlinux 1 rdev /vmlinux ${ROOTDEV} lilo -C /etc/lilo.conf psupdate
See! Some folks thought I was a VAX man.
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. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| |