From: Henry N. <Hen...@Ar...> - 2007-03-26 07:46:47
|
Ph. Marek wrote: > I wanted to try colinux, and boot from an NFS server. > So my configuration file looks like this: > > ip=<myip>:<server>:<gw>:<netmask> > root=nfs > nfsroot=<path> > nfsaddrs=<server> > init=/bin/bash > kernel=vmlinuz > eth0=tuntap > mem=64 > This parameters I took from bootparam(7). > > > On starting colinux-daemon I get > ... > VFS: Cannot open root device "nfs" or unknown-block(0,0) > Please append a correct "root=" boot option > Kernel panic: ... > > In the current snapshots I found nfs.ko - but that would be needed for > booting! > Is there some version that has NFS compiled in? No. You can try to boot with your own initrd? Unpack the initrd.gz, mount it as loop, edit the script 'linuxrc' to load the module (insmod sunrpc; insmod lockd; insmod nfs). Copy the modules to /lib/modules in the initrd system. You not need all modules, the 3 are enouth. Unmount the loop and compress initrd to an initrd.gz Than add initrd=initrd.gz to your coLinux configuration. Best way is, to view inito initrd.gz from your distribution, to see how nfs boot would work. With the initrd.gz from coLinux you would have problems, becuase it tries to install modules in an block device, that is mounted as /mnt/linux. For your nfs boot you should remove the complete block for installing modules after the echo "Mounting /", and replace it with your lines for loading nfs modules. $ROOTDEv is "nfs" in your case. So, you can create an alternate 'if'-condition for normal and the other for nfs boot. This are my some ideas, have never checked such boot. -- Henry |