0

I am trying to setup a diskless client which will mount over nfs to the server. When I try to boot the client I get the following error message:

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)

I've set up my kernel parameters as follows:

kernel=192.79.143.131:/linuxboot,192.168.100.14 <-- tftpboot parameters....(which works)

Linux PPC load: root=/dev/nfs rw nfsroot=192.79.143.131:/diskless/client01 ip=dhcp

The kernel is found via tftpboot, so I know the 'kernel' parameter above works. The kernel is loaded and start executing, but hits the above error eventually.

The mount point is properly exported from the server, as I can mount it manually from other machines.

I've read several threads about this topic (at least very similar), but none, as far as I've seen so far, has addressed mounting a nfs drive. I've only seen topics talking about local hard drives.

Any ideas,guidance is very appreciated...thanks...

khaleel
  • 1
  • 1
  • Is there more than one nic? If so, does the primary nic change? Does your dhcp server show an address being assigned? – ramruma Jan 09 '14 at 06:30
  • @ramruma My server is assigning ip-address to client. i am providing client's mac-address in /etc/dhcp/dhcpd.conf to get ip-address . i am placing kernel in /tftpboot directory. my boot arguments are in default file. The default file is DEFAULT openwrt LABEL openwrt KERNEL openwrt-x86-generic-vmlinuz append boot=nfs root=/dev/sda3 root=server-ip:/media/_openwrt ip=dhcp rw I want to mount rootfilesystem which is present in /media/_openwrt while booting only. But i am getting the above error ...... – khaleel Jan 09 '14 at 07:12
  • check that the kernel included nfs client – kofemann Jan 09 '14 at 07:56
  • @tigran i didn't get you . can you please elaborate – khaleel Jan 09 '14 at 08:20
  • it's not obvious that kernel which recieved over netfork supports nfs, IOW, is nfs support enebled when kernel is compiles – kofemann Jan 09 '14 at 10:26
  • @tigran yes i enabled it !!! . The problem is while mounting the root filesystem VFS: Cannot open root device “nfs” or unknown-block(0,255) !! – khaleel Jan 09 '14 at 11:33

0 Answers0