Unix Technical Forum

mkinitrd and NFS with Slack 10?

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 01:42 PM
Michael C Schrick
 
Posts: n/a
Default mkinitrd and NFS with Slack 10?

Has anyone tried to use mkinitrd to access a NFS root partition?
It appears that the busybox mount program cannot mount a NFS
drive. Has anyone tried this?

thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 01:43 PM
+Alan Hicks+
 
Posts: n/a
Default Re: mkinitrd and NFS with Slack 10?

-----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-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 01:44 PM
Michael C Schrick
 
Posts: n/a
Default Re: mkinitrd and NFS with Slack 10?

+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-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 01:44 PM
+Alan Hicks+
 
Posts: n/a
Default Re: mkinitrd and NFS with Slack 10?

-----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-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 01:44 PM
Keith Matthews
 
Posts: n/a
Default Re: mkinitrd and NFS with Slack 10?

+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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:23 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com