Linux Kernel Error
Hello,
I am running Debian Sid and I have been trying unsuccessfully to upgrade my kernel for sometime. Here is there error I receive on boot.. Code:
request_module[block-major-3]: Root fs not mounted and the one on debians site I have tried with both lilo and grub and either way the result is always the same. I have also tried several different kernels from 2.4 and 2.6 as well as building from source and trying good old apt-get install kernel image. Here is my lilo.conf file. Code:
# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)', Any help would be great. Thanks, Shawn |
Try appending root option :
In GRUB: replace this: kernel /vmlinuz...... root=LABEL=/ with this: kernel /vmlinuz...... root=/dev/hda1 (or the drive you have your /boot partition on ) It should work :) |
Hi marghorp,
Here is a copy of my grub.conf file. [CODE] # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ## default num # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. default 0 ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout 5 # Pretty colours color cyan/blue white/blue ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret # # examples # # title Windows 95/98/NT/2000 # root (hd0,0) # makeactive # chainloader +1 # # title Linux # root (hd0,1) # kernel /vmlinuz root=/dev/hda2 ro # # # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default optons below ## DO NOT UNCOMMENT THEM, Just edit them to your needs ## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specifiv kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro # kopt=root=/dev/hda1 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=(hd0,0) ## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery mode) single # altoptions=(recovery mode) single ## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## ## End Default Options ## title Debian GNU/Linux, kernel root (hd0,0) kernel /boot/vmlinuz root=/dev/hda1 ro savedefault boot title Debian GNU/Linux, kernel (recovery mode) root (hd0,0) kernel /boot/vmlinuz root=/dev/hda1 ro single savedefault boot title Debian GNU/Linux, kernel 2.6.5 root (hd0,0) kernel /boot/vmlinuz-2.6.5 root=/dev/hda1 ro savedefault boot title Debian GNU/Linux, kernel 2.6.5 (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.6.5 root=/dev/hda1 ro single savedefault boot title Debian GNU/Linux, kernel 2.4.18-1-386 root (hd0,0) kernel /boot/vmlinuz-2.4.18-1-386 root=/dev/hda1 ro initrd /boot/initrd.img-2.4.18-1-386 savedefault boot title Debian GNU/Linux, kernel 2.4.18-1-386 (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.4.18-1-386 root=/dev/hda1 ro single initrd /boot/initrd.img-2.4.18-1-386 savedefault boot title Debian GNU/Linux, kernel 2.2.20-idepci root (hd0,0) kernel /boot/vmlinuz-2.2.20-idepci root=/dev/hda1 ro savedefault boot title Debian GNU/Linux, kernel 2.2.20-idepci (recovery mode) root (hd0,0) kernel /boot/vmlinuz-2.2.20-idepci root=/dev/hda1 ro single savedefault boot ### END DEBIAN AUTOMAGIC KERNELS LIST [CODE] With grub installed in the MBR I get the following error after choosing a kernel from the list: Code:
VFS: Cannot open root device "hda1" or unknown-block(0,0) Thanks again, Shawn |
Hi
if none of the above works then you may have left out someting when you compiled your new kernel I had a similar message and i had left out a ata option in the menuconfig cheers |
So the grub configuration file looks correct?
Thanks, Shawn |
The first kernel in the list works fine under lilo, so I would think that at the very least the problem with that kernel is caused by my grub configuration file. If you look at the lilo.conf I posted at the beginning of the thread the first kernel works, but the second does not.
Thank you, Shawn |
All times are GMT -5. The time now is 10:05 PM. |