Messages in this thread | | | Date | Fri, 20 Jun 1997 23:27:07 -0400 (EDT) | From | "Richard B. Johnson" <> | Subject | Re: 2.1 Newbie boot bummer |
| |
On Fri, 20 Jun 1997, Kenneth Crudup wrote:
> > No such luck this time, though. I built a 2.1.42 kernel (with SMP > removed from the Makefile), updated all the utilities like the web page > said to (except modules, evidently you need to be running the kernel > first), and told it to boot. > > Well, I did that, too (except I didn't get the new utilities), and when I > tried to do a boot, it can't mount my root, with a "can't mount dev 03:08" > (which is my IDE drive's root partition). > > Is there any reason I can't access my HD anymore? I'm sure I made both the > ext2fs fs a "Y" choice. Have the major numbers changed from 2.0.30 to 2.1.42? > > -Kenny >
I just replied to another message like this. Here is how to set the correct root device when you make a boot floppy. It's a shell script. You use rdev to set the root device.
# # 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
If you don't want to overwrite your previous boot image do:
# # Created 21-JAN-1995 Richard B. Johnson # cp /usr/src/linux/arch/i386/boot/zImage /tmp/vmlinux ROOTDEV=`df / | cut -d ' ' -f1 | sed -e1d` echo -n 'Setting root device as ' ; echo ${ROOTDEV} rdev -R /tmp/vmlinux 1 rdev /tmp/vmlinux ${ROOTDEV} cp /tmp/vmlinux /dev/fd0
Once you have tested your new kernel by booting from a floppy. You might want to boot from your hard disk. It goes like this:
# # 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
I suggest you __ALWAYS__ boot a new kernel from a floppy first. It would be a bitch to put the wrong boot-image on your hard disk and lock yourself out (I have several Linux machines so I can always recover... but). I always boot a new kernel from a floppy first to make sure the machine is "stable" before overwriting the last image on the Hard Disk.
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. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
| |