Skip to contentSkip to conversation

Help: kernel option root=/dev/nfs failing 2.6.10

DISCUSSION Haven Skys 2 participants 4 messages Feb 16, 2005

lore
Share & tools
lore

Haven Skys

author
#0 lore raw

I am attempting to create network bootable system with 2.6.10 and nfs and am having trouble.

I am using grub and the boot goes without a hitch until the kernel attempts to use the commands I've sent.

<SNIP from grub.conf>
bootp
root (nd)
kernel (nd)/redhat-2.6.10/kernel root=/dev/nfs ip=bootp nfsroot=10.0.120.1:/diskless/redhat-2.6.10/ baseos
</SNIP>

Network booting machine X does fine until. It attempts to open the root device.

<SNIP>
VFS: Cannot open root device "nfs" or unknown-block(0,255) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255) </SNIP>

It looks like the kernel isn't recognizing the virtual device /dev/nfs but I've enabled all the NFS options and everything is compiled into the kernel.

Any ideas?

Thanks
Haven

FrontBridge introduces Message Archive and Secure Email. Get leading Enterprise Message Security services from FrontBridge. www.frontbridge.com.

#1 lore raw
Quoted 40 lines · Haven Skys

I am attempting to create network bootable system with 2.6.10 and nfs and am having trouble.

I am using grub and the boot goes without a hitch until the kernel attempts to use the commands I've sent.

<SNIP from grub.conf>
bootp
root (nd)
kernel (nd)/redhat-2.6.10/kernel root=/dev/nfs ip=bootp nfsroot=10.0.120.1:/diskless/redhat-2.6.10/ baseos
</SNIP>

Network booting machine X does fine until. It attempts to open the root device.

<SNIP>
VFS: Cannot open root device "nfs" or unknown-block(0,255) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,255) </SNIP>

It looks like the kernel isn't recognizing the virtual device /dev/nfs but I've enabled all the NFS options and everything is compiled into the kernel.

Any ideas?

Thanks
Haven

FrontBridge introduces Message Archive and Secure Email. Get leading Enterprise Message Security services from FrontBridge. www.frontbridge.com.

Quoted 8 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Hi!
I did you follow the "tutorial" in Documentation/nfsroot.txt?

Matthias-Christian Ott

author
#2 lore raw

Thanks. Yes I have.
Here are a couple configuration options I have set:

CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y

CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_ROOT_NFS=y

Everything is textbook really. I followed several different examples and still nothing works.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Matthias-Christian Ott
Sent: Wednesday, February 16, 2005 11:09 AM
To: Haven Skys
Cc: [email protected]
Subject: Re: Help: kernel option root=/dev/nfs failing 2.6.10

Quoted 1 line · Haven Skys

I am attempting to create network bootable system with 2.6.10 and nfs and

am

Quoted 13 lines

having trouble.

I am using grub and the boot goes without a hitch until the kernel attempts to use the commands I've sent.

<SNIP from grub.conf>
bootp
root (nd)
kernel (nd)/redhat-2.6.10/kernel root=/dev/nfs ip=bootp nfsroot=10.0.120.1:/diskless/redhat-2.6.10/ baseos
</SNIP>

Quoted 6 lines

Network booting machine X does fine until. It attempts to open the root device.

<SNIP>
VFS: Cannot open root device "nfs" or unknown-block(0,255) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to

mount

Quoted 4 lines

root fs on unknown-block(0,255) </SNIP>

It looks like the kernel isn't recognizing the virtual device /dev/nfs but I've enabled all the NFS options and everything is compiled into the

kernel.

Quoted 12 lines

Any ideas?

Thanks
Haven

Quoted 1 line

FrontBridge introduces Message Archive and Secure Email. Get leading

Enterprise Message Security services from FrontBridge. www.frontbridge.com.

Quoted 11 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Hi!
I did you follow the "tutorial" in Documentation/nfsroot.txt?

Matthias-Christian Ott
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

FrontBridge introduces Message Archive and Secure Email. Get leading Enterprise Message Security services from FrontBridge. www.frontbridge.com.

#3 lore raw
Quoted 114 lines · Haven Skys

Thanks. Yes I have.
Here are a couple configuration options I have set:

CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
CONFIG_IP_PNP_BOOTP=y
CONFIG_IP_PNP_RARP=y

CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
CONFIG_ROOT_NFS=y

Everything is textbook really. I followed several different examples and still nothing works.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Matthias-Christian Ott
Sent: Wednesday, February 16, 2005 11:09 AM
To: Haven Skys
Cc: [email protected]
Subject: Re: Help: kernel option root=/dev/nfs failing 2.6.10

Quoted 3 lines · Haven Skys

I am attempting to create network bootable system with 2.6.10 and nfs and

am

Quoted 13 lines

having trouble.

I am using grub and the boot goes without a hitch until the kernel attempts to use the commands I've sent.

<SNIP from grub.conf>
bootp
root (nd)
kernel (nd)/redhat-2.6.10/kernel root=/dev/nfs ip=bootp nfsroot=10.0.120.1:/diskless/redhat-2.6.10/ baseos
</SNIP>

Quoted 8 lines

Network booting machine X does fine until. It attempts to open the root device.

<SNIP>
VFS: Cannot open root device "nfs" or unknown-block(0,255) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to

mount

Quoted 6 lines

root fs on unknown-block(0,255) </SNIP>

It looks like the kernel isn't recognizing the virtual device /dev/nfs but I've enabled all the NFS options and everything is compiled into the

kernel.

Quoted 11 lines

Any ideas?

Thanks
Haven

Quoted 3 lines

FrontBridge introduces Message Archive and Secure Email. Get leading

Enterprise Message Security services from FrontBridge. www.frontbridge.com.

Quoted 11 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Hi!
I did you follow the "tutorial" in Documentation/nfsroot.txt?

Matthias-Christian Ott
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Quoted 7 lines

FrontBridge introduces Message Archive and Secure Email. Get leading Enterprise Message Security services from FrontBridge. www.frontbridge.com.

Your config looks good. Try to give the kernel the "nfsroot=" parameters and try to boot from the harddisk to see if the client really gets the bootp information correctly.

Matthias-Christian Ott