LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-29-2008, 01:24 PM   #1
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Rep: Reputation: 15
Boot On Lan - Cannot VFS: Cannot open root device "<NULL>"


I am currently trying to get one of my PCs to boot on Lan. I am pretty close now. The PC gets into PXE and gets the config file via TFTP from the server. But I get this error message when it tries to boot:

VFS: Cannot open root device "<NULL>" or unknown-block(8,3)
Please append a correct "root=" boot option
Kernelpanic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)

And it just hangs.

I'm not sure what to do and google & co haven't come up with any answers.

If anyone has any ideas, I'll post whatever output is needed.

Thanks in advance.
 
Old 06-29-2008, 01:37 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
If you're trying to boot "diskless", you need to export the root file system from the PXE server over NFS, and the kernel has to be aware it's looking for the root file system on NFS instead of local disk (on most OSs this is a kernel compile option, not sure on Linux).
 
Old 06-29-2008, 02:23 PM   #3
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Original Poster
Rep: Reputation: 15
Hi, thanks for the quick reply. I followed this guide:

https://help.ubuntu.com/community/DisklessUbuntuHowto

I believe the step where the boot flag is changed in /nfsroot/etc/initramfs-tools/initramfs.conf addresses this issue but I could be wrong!
 
Old 06-29-2008, 04:42 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Did you remember this step?
Quote:
create a new config file as /tftpboot/pxelinux.cfg/default
NOTE: There are more options available such as MAC or IP identification for multiple config files see syslinux/pxelinux documentation for help.
Code:
LABEL linux
KERNEL vmlinuz-2.6.15-23-686
APPEND root=/dev/nfs initrd=initrd.img-2.6.15-23-686 nfsroot=192.168.2.2:/nfsroot ip=dhcp rw
 
Old 06-30-2008, 01:02 PM   #5
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Original Poster
Rep: Reputation: 15
I did indeed, and I've checked it twice...just like Santa!
 
Old 06-30-2008, 01:53 PM   #6
format C:
Member
 
Registered: Aug 2006
Location: IOWA
Distribution: Source Mage and Debian
Posts: 34

Rep: Reputation: 15
I've set up 20+ computers for network boot over the past few weeks
It seems you have your sever working right. The problem is most likely in the kernel. You need to compile a custom kernel for this. Most distro's kernels won't work.

Make sure your kernel is compiled with the following options (NOT MODULES!!)
-->NFS client
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y

-->NFS root
CONFIG_ROOT_NFS=y

-->Kernel level network autoconfiguration
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y

and of course, your network card's driver must be included.

Hope that helps.
 
Old 06-30-2008, 01:56 PM   #7
format C:
Member
 
Registered: Aug 2006
Location: IOWA
Distribution: Source Mage and Debian
Posts: 34

Rep: Reputation: 15
Oh yeah, you can see if your running kernel has these by looking in /proc/config.gz.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
2.6.19: VFS: Cannot Open root device "sda1" or unknown-block(0,0) havok1977 Linux - Kernel 19 02-24-2021 12:35 AM
VFS: cannot open root device "sda3" or unknown-block (0,0) snakeo2 Linux - Newbie 10 07-05-2012 08:23 PM
VFS: Cannot open root device "<NULL>" or unknown-block(8.22) aleksanteri Linux From Scratch 1 10-30-2007 04:02 AM
VFS: Cannot open root device "805" or unknown-block(8,5) chameleonic Linux - Newbie 0 09-24-2006 03:34 PM
VFS: Cannot open root device "1601" or unknown-block(22,1) takehora Slackware 3 06-11-2004 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration