This is a discussion on mkinitrd and NFS with Slack 10? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Has anyone tried to use mkinitrd to access a NFS root partition? It appears that the busybox mount program ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In alt.os.linux.slackware, Michael C Schrick dared to utter, > Has anyone tried to use mkinitrd to access a NFS root partition? Take a look at the Linux Terminal Server Project. They use tftp boot roms to download a kernel, then mount a very small NFS root partition. - -- It is better to hear the rebuke of the wise, Than for a man to hear the song of fools. Ecclesiastes 7:5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBHU+/lKR45I6cfKARAjA6AJ4klzpZZs3HWGIaq96BbTj8Mpal7wCZAc FN hZcnTsPx4mdAtdu09Ce+l40= =oyW+ -----END PGP SIGNATURE----- |
| |||
| +Alan Hicks+ <alan@lizella.network> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > In alt.os.linux.slackware, Michael C Schrick dared to utter, > > Has anyone tried to use mkinitrd to access a NFS root partition? > > Take a look at the Linux Terminal Server Project. They use tftp boot > roms to download a kernel, then mount a very small NFS root partition. Thanks for the response. The Linux Terminal Server Project is a most excellent reference, and I've already looked there. I'm trying something a little different. I'm trying to use the generic 2.6.7 kernel which was shipped in the testing directory in Slackware 10 without modification in a diskless client. When I try to use the stock busybox mount command to mount a NFS device, it responds with "Invalid argument". I tried downloading the latest busybox and it responds with the same thing. I've searched around the internet a little and it seems that others have encountered this problem also. It may have something to do with the 2.6.7 headers which I did not install. In the meantime, I have recompiled the real mount program using static links and it seems to be working. However, I would like to use the busybox mount and was wondering if anyone else has seen this problem, or better yet, got it to work. thanks again > > - -- > It is better to hear the rebuke of the wise, > Than for a man to hear the song of fools. > Ecclesiastes 7:5 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.1 (GNU/Linux) > > iD8DBQFBHU+/lKR45I6cfKARAjA6AJ4klzpZZs3HWGIaq96BbTj8Mpal7wCZAc FN > hZcnTsPx4mdAtdu09Ce+l40= > =oyW+ > -----END PGP SIGNATURE----- |
| |||
| -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In alt.os.linux.slackware, Michael C Schrick dared to utter, > Thanks for the response. The Linux Terminal Server Project is a > most excellent reference, and I've already looked there. Indeed. For diskless booting on linux, that's the first place to look. > I'm trying > something a little different. I'm trying to use the generic 2.6.7 > kernel which was shipped in the testing directory in Slackware 10 > without modification in a diskless client. That may be asking for a bit much. That's a very generic kernel so you ahve a lot of things to do. You've got to make an initrd with the modules you need and load those in addition to mounting your root partition via NFS. I'd recommend creating your own custom kernel with all the support for everything you need built right in. Tackle this one problem at a time. > When I try to use the stock busybox mount command to mount a NFS > device, it responds with "Invalid argument". I tried downloading > the latest busybox and it responds with the same thing. > > In the meantime, I have recompiled the real mount program using > static links and it seems to be working. However, I would like > to use the busybox mount and was wondering if anyone else has seen > this problem, or better yet, got it to work. In that case the best place to ask would of course be the busybox developers. busybox is meant to be a general purpose swiss-army knife for small installs. It simply may not ahve the ability to mount an NFS root partition. - -- It is better to hear the rebuke of the wise, Than for a man to hear the song of fools. Ecclesiastes 7:5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBHkowlKR45I6cfKARAuvAAKCxes8xTTha0DylSGiW+m Supg4EjgCfSSKd qMIt9fPIe3tRt0QdZ7z7H4w= =NsP1 -----END PGP SIGNATURE----- |
| ||||
| +Alan Hicks+ wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > >> When I try to use the stock busybox mount command to mount a NFS >> device, it responds with "Invalid argument". I tried downloading >> the latest busybox and it responds with the same thing. >> >> In the meantime, I have recompiled the real mount program using >> static links and it seems to be working. However, I would like >> to use the busybox mount and was wondering if anyone else has seen >> this problem, or better yet, got it to work. > > In that case the best place to ask would of course be the busybox > developers. busybox is meant to be a general purpose swiss-army knife > for small installs. It simply may not ahve the ability to mount an NFS > root partition. > > If I have correctly understood things, you need to build a root filesystem usung RAMdisc, then mount the networked filesystem then pivot root to move across. No idea if it works with NFS, but I believe it does with AFS. |