View previous topic :: View next topic |
Author |
Message |
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Tue Mar 12, 2013 5:53 am Post subject: VFS: Cannot open root device "(null)" or unknown-b |
|
|
When I try to boot, I get a kernel panic and the error:
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
when I try to boot into my newly installed gentoo linux
this is my grub.conf:
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.
default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo Linux 2.6.24-r5
root (hd0,1)
kernel /boot/kernel1 root=/dev/ram0 real_root=/dev/sda3
title gentoo without params
root (hd0,1)
kernel /boot/kernel1
title windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1
# vim:ft=conf:
______________________________________________________________________________________________________
here's my kernel config file:
http://www.4shared.com/file/ZWNGbJd9/conf.html
I am using /dev/sda2 (ext2) as a boot partition, /dev/sda3 (ext2) as my / partition
my sata controller is:
SATA controller: intel corporation 82001IBM/IEM (ICH9M/ICH9M-E) 4 port Sata controller (AHCI)
I'm not using a ramdisk and I plan not too unless it's really required(which never happens), I'd rather not use genkernel either
any help is appreciated
thanks in advance |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Tue Mar 12, 2013 6:07 am Post subject: |
|
|
try Quote: | default 0
timeout 30
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Gentoo
root (hd0,1)
kernel /boot/kernel1 root=/dev/sda3
title windows 7
rootnoverify (hd0,0)
makeactive
chainloader +1 |
ls /boot to verify kernel name is kernel1
your config is at a spam site, suggest you use wgetpaste _________________ Defund the FCC. |
|
Back to top |
|
|
s_bernstein Apprentice
Joined: 11 Mar 2006 Posts: 172 Location: Bremen, Germany
|
Posted: Tue Mar 12, 2013 6:13 am Post subject: Re: VFS: Cannot open root device "(null)" or unkno |
|
|
blakdeath wrote: |
title Gentoo Linux 2.6.24-r5
root (hd0,1)
kernel /boot/kernel1 root=/dev/ram0 real_root=/dev/sda3
|
Your kernel is either missing a initram or you should change the root parameter to you real root device. |
|
Back to top |
|
|
Adel Ahmed Veteran
Joined: 21 Sep 2012 Posts: 1523
|
Posted: Tue Mar 12, 2013 12:01 pm Post subject: |
|
|
Donahue, that worked like acharm
and thanks alot for the uick reply
bernstiend thanks for ur help but I do not use an initramfs
thanks, problem solved[/bug] |
|
Back to top |
|
|
Newbee 12 n00b
Joined: 31 Oct 2012 Posts: 38 Location: Northwest, USA
|
Posted: Wed Mar 13, 2013 6:01 pm Post subject: VFS: Cannot open root dev"sda3" or unkown-block(0, |
|
|
I followed the install manual to the letter: upon reboot i received splash screen selected 1st choice Gentoo Linux 3.7.10
This is my Grub.conf
Quote: | default 0
timeout 30
splashimage=(hd0,0) /boot/grub/splash.xpm.gz
title Gentoo Linux 3.7.10
root (hd0,0)
kernel /boot/kernel-3.7.10-gentoo root=/dev/sda3 video=uvesafb:mtrr:3,ywrap,1024x768-32@60
title Gentoo Linux 3.7.10 (rescue)
root (hd0,0)
kernel /boot/kernel-3.7.10-gentoo root=/dev/sda3 init=/bin/bb
title Gentoo Linux 3.7.10
root (hd0,0)
kernel /boot/3.7.10 real_root=/dev/sda3
initrd /boot/initramfs-genkernal-x86_64-3.7.10-gentoo |
I used Genkernel to create kernel and initramfs
checking the kernel and initramfs shows:
Kernel is named /boot/kernel-genkernal-x86_64-3.7.10-gentoo
initramfs is named /boot/initramfs-genkernel-x86_64-3.7.10-gentoo
partitons and fstab are:
/dev/sda1 /boot ext2
/dev/sda2 swap
/dev/sda3 / ext3
/dev/cdrom /mnt/cdrom auto |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Mar 13, 2013 7:47 pm Post subject: |
|
|
grub.conf, Quote: | default 0
timeout 30
#splashimage=(hd0,0) /boot/grub/splash.xpm.gz
title Gentoo Linux 3.7.10
root (hd0,0)
kernel /boot/kernel-genkernel-x86_64-3.7.10-gentoo root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.7.10-gentoo |
/etc/fstab: Quote: | /dev/sda1 /boot ext2 defaults 0 0
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 defaults,noatime 0 1 |
corrects typos _________________ Defund the FCC. |
|
Back to top |
|
|
Newbee 12 n00b
Joined: 31 Oct 2012 Posts: 38 Location: Northwest, USA
|
Posted: Wed Mar 13, 2013 11:11 pm Post subject: |
|
|
I will make chages and see if it works will post back with results. Thank you _________________ Newbee 12 |
|
Back to top |
|
|
Newbee 12 n00b
Joined: 31 Oct 2012 Posts: 38 Location: Northwest, USA
|
Posted: Wed Mar 13, 2013 11:23 pm Post subject: Now error 15 File not found |
|
|
I made recommended changes, re did the grub and added to mbr exited and rebooted and it now gives me an Error 15 .
I will boot to the live cd again and look but i cannot find anything out of the ordinary. going home now!!! |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Wed Mar 13, 2013 11:45 pm Post subject: |
|
|
For reference, editing grub.conf does not require reinstalling the bootloader in the MBR. This is the major reason for using grub instead of lilo. If you emerge a new version of grub reinstalling to the MBR is recommended.
Boot the cd, mount the gentoo partitions, enter the chroot, nominally: Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1" | Then: Code: | grub
find /boot/grub/stage1 | this will return in the format (hdx,y), substitute for x and y below: The return should show the file system used on /boot partition.Should show success and sectors embedded. Code: | quit
exit
cd
umount -l /mnt/gentoo/dev{/shm,/pts,}
umount -l /mnt/gentoo{/boot,/proc,}
reboot | Reboot gentoo _________________ Defund the FCC. |
|
Back to top |
|
|
Newbee 12 n00b
Joined: 31 Oct 2012 Posts: 38 Location: Northwest, USA
|
Posted: Thu Mar 14, 2013 10:48 pm Post subject: |
|
|
This is still not working the Genkernel; Version is 3.4.45 and this is a Dell PoweredgeR610,could this issue be related to some hardware not supported using the genkernel all :?: _________________ Newbee 12 |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Thu Mar 14, 2013 11:31 pm Post subject: |
|
|
No, error 15 is strictly from grub being unable to find a file based on the information in grub.conf. The kernel is not involved. Apparently your BIOS is not seeing the /boot partition as (hd0,0).
boot the minimal install cd or a system rescue cd to a network connection, run Code: | fdisk -l | wgetpaste | post the url returned. _________________ Defund the FCC. |
|
Back to top |
|
|
|