Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Annoying problem with cannot open root device /unkno[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri May 15, 2009 5:19 am    Post subject: Annoying problem with cannot open root device /unkno[SOLVED] Reply with quote

my dell inspiron 6000 gets the following error:

Code:
VFS: Cannot open root device "0301" or unknown-block(3,1)


I seached, and it looks like that error is tied to a missing device driver for the drive

relevant section of lspci -nqn says:

Code:
00:1f.2 IDE interface [0101]: Intel Corporation 82801FBM (ICH6M) SATA Controller [8086:2653] (rev 03)



http://kmuto.jp/debian/hcl/index.rhtmlx says that is:

Code:
80862653   Yes   Intel Corporation   82801FBM (ICH6M) SATA Controller   ahci,ata_piix   v2.6.25-


grepping .config gives:

Code:
root@sysresccd /root % cat /mnt/gentoo/boot/config-2.6.29-zen1-12may09-1| grep -i ahci
CONFIG_SATA_AHCI=y
root@sysresccd /root % cat /mnt/gentoo/boot/config-2.6.29-zen1-12may09-1| grep -i piix
CONFIG_BLK_DEV_PIIX=y
CONFIG_ATA_PIIX=y
CONFIG_PATA_MPIIX=y
CONFIG_PATA_OLDPIIX=y
# CONFIG_I2C_PIIX4 is not set


i'm using xfs

Code:
root@sysresccd /root % cat /mnt/gentoo/boot/config-2.6.29-zen1-12may09-1| grep XFS
CONFIG_XFS_FS=y
CONFIG_XFS_QUOTA=y
CONFIG_XFS_POSIX_ACL=y
CONFIG_XFS_RT=y
CONFIG_XFS_DEBUG=y
# CONFIG_VXFS_FS is not set


i can't figure out why my machine won't boot. help?

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'


Last edited by NotQuiteSane on Sat May 16, 2009 8:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
tpg
n00b
n00b


Joined: 25 Dec 2008
Posts: 29

PostPosted: Fri May 15, 2009 12:28 pm    Post subject: Reply with quote

I have the same probelm pretty much, cant give much details now as im posting from work, and at home currently installing the 32bit version instead of the 64bit where I had this problem(Ill go home and try 64bit again).

I had this problem with the vanilla-sources-2.6.29.3 kernel on an amd64 system.

I have the JMicron SATA controller, its freaking easy to find in the kernel configuration thing, If I dont enable this in 32bit I get the same message.. its quite weird that im having this now :(
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri May 15, 2009 9:07 pm    Post subject: Reply with quote

tpg wrote:
I have the same probelm pretty much, cant give much details now as im posting from work, and at home currently installing the 32bit version instead of the 64bit where I had this problem(Ill go home and try 64bit again).

I had this problem with the vanilla-sources-2.6.29.3 kernel on an amd64 system.

I have the JMicron SATA controller, its freaking easy to find in the kernel configuration thing, If I dont enable this in 32bit I get the same message.. its quite weird that im having this now :(


any progress on it?

I can get older kernels (*.26 ara) to toad, but then those have a conflict with lvm

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri May 15, 2009 9:09 pm    Post subject: Re: Annoying problem with cannot open root device /unknown-b Reply with quote

NotQuiteSane wrote:

Code:
VFS: Cannot open root device "0301" or unknown-block(3,1)


I seached, and it looks like that error is tied to a missing device driver for the drive


it could also mean that you are trying to mount from a non existant disk as your root partition.
And people "used" to fail with a message more like
Code:
VFS: Cannot open root device "hda1" or unknown-block(0,0)

and not an "0301" harddisk.

So, recheck your root= (or realroot) from grub.conf for a valid harddisk (uhci or newest PIIX ata named drives as sd for example)
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Sat May 16, 2009 2:31 am    Post subject: Reply with quote

ok, i've tried various combinations of "root", "realroot", "real_root" and "real-root" paired with "sda1", "hda1", "/dev/sda1" and "/dev/hda1"

relevant section of grub looks like:

Code:
title gentoo
root (hd0,1)
kernel /vmlinuz root=/dev/hda1


/boot is on a usb key, hda has /root, 2 swap partitions (one for tux on ice), and a lvm partition

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23081

PostPosted: Sat May 16, 2009 3:09 am    Post subject: Reply with quote

As krinn said, newer kernels use sd names for that driver, not hd. You need to update your grub.conf. You say you already tried that, but without knowing the exact combinations you tried, we need to start over.

Please post the exact error message, including at least 6 lines of context before the panic. Post the kernel command line that you used for that failure scenario.
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Sat May 16, 2009 5:05 am    Post subject: Reply with quote

ok, starting with root=/dev/sda1

Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:481:702
VFS: C annot open root device "sda1" or unknown-block(0,0)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


root=/dev/hda1:
Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:584:803
VFS: C annot open root device "hda1" or unknown-block(0,0)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


realroot=/dev/sda1:

Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:584:803
VFS: C annot open root device "<NULL>" or unknown-block(3,1)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)


realroot=/dev/hda1:

Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:687:904
VFS: C annot open root device "<NULL>" or unknown-block(3,1)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)


real-root=/dev/sda1

Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:687:904
VFS: C annot open root device "<NULL>" or unknown-block(3,1)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)


real-root=/dev/hda1:

Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:240:955
VFS: C annot open root device "<NULL>" or unknown-block(3,1)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)


real_root=/dev/sda1:

Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:240:955
tty ttye4: hash matches
pnp 00:07: hash matches
VFS: C annot open root device "<NULL>" or unknown-block(3,1)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)


real_root=/dev/hda1:

Code:
NET: Registered protocl family 17
Using IPI Shortcut mode
Replacing swsusp
ToxOnIce core not loaded yet
input: AT Translated Set 2 keyboard as /class/input/input0
  Magic number 9:966:97
VFS: C annot open root device "<NULL>" or unknown-block(3,1)
Please append a correct "root'=" boot option; here are the avadiable partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(3,1)


i compiled a new kernel today, adding in a couple of generic ATA drivers. will post link to .config in a few moments

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Sat May 16, 2009 5:11 am    Post subject: Reply with quote

kernal .config is here.

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1227
Location: Massachusetts USA

PostPosted: Sat May 16, 2009 5:45 am    Post subject: Reply with quote

The real_root= parameter only works if the kernel was built using genkernel.

Your kernel is configured with both the old IDE drivers and the new sata/pata drivers.

CONFIG_IDE=y should not be selected.

The following should be selected if you have a CD/DVD drive
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set

Change /dev/hd... to /dev/sd... on the kernel command line and in /etc/fstab
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Sat May 16, 2009 7:00 am    Post subject: Reply with quote

jburns wrote:
The real_root= parameter only works if the kernel was built using genkernel.

Your kernel is configured with both the old IDE drivers and the new sata/pata drivers.

CONFIG_IDE=y should not be selected.

The following should be selected if you have a CD/DVD drive
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set

Change /dev/hd... to /dev/sd... on the kernel command line and in /etc/fstab


The last two look like scsi options so i set them as modules.

made other changes as indicated.

am getting the same kind of error

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1227
Location: Massachusetts USA

PostPosted: Sat May 16, 2009 7:53 am    Post subject: Reply with quote

CONFIG_BLK_DEV_SD=m should be CONFIG_BLK_DEV_SD=y It is need to access the disk.

The sata/pata drivers use the SCSI support routines. CONFIG_BLK_DEV_SR and CONFIG_CHR_DEV_SG can be modules but CONFIG_BLK_DEV_SD must be built into the kernel because it is needed to load the modules.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat May 16, 2009 10:10 am    Post subject: Reply with quote

NotQuiteSane wrote:

/boot is on a usb key


usb key are also name sd? by linux kernel (also handle as scsi if you prefer) and considering you are booting with a grub hd(0,1) i suppose your usb key is handle as 1st harddisk.
This mean you're "real" harddisk would be the 2nd, so it will be sdb.

But instead of guessing like you've done, while you're in grub you should push e key (edit) so grub might help you find out where is your root partition, by doing hd( then push TAB it will list visible harddisk and partition...

if you're sure your root is on the 1st partition of your harddisk, you may just try /dev/sdb1 as root
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 488
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Sat May 16, 2009 8:34 pm    Post subject: Reply with quote

jburns wrote:
CONFIG_BLK_DEV_SD=m should be CONFIG_BLK_DEV_SD=y It is need to access the disk.

The sata/pata drivers use the SCSI support routines. CONFIG_BLK_DEV_SR and CONFIG_CHR_DEV_SG can be modules but CONFIG_BLK_DEV_SD must be built into the kernel because it is needed to load the modules.


The good news is that solved it. Thanks to you and everyo9ne else who assisted.

The bad news is not only am I stil having baselayout /lvm issues, but i'm getting kernel oops re: xfs. i'm gonna post the i8nfo on the latter in the zen support thread momentarly.

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum