[uClibc]Re: Alternative network filesystems
Miles Bader
miles at lsi.nec.co.jp
Thu Feb 14 01:08:31 UTC 2002
"Jason Bodnar" <jason at shakabuku.org> writes:
> Since NFS mounting with busybox seems to be a bit spotty (or it just may be a
> problem on my end) and it doesn't seem like smbmount will ever build against
> uClibc due to it's bloat (smbmount not uClibc) I've started looking at a
> couple of alternative network filesystems:
What do you mean `NFS mounting with busybox seems to be a bit spotty'?
I boot using a minimal system that contains only these busybox links:
echo hostname mkdir mount sh
and these non-busybox binaries (these could theoretically be provided
using busybox too; I don't remember why I didn't use the BB versions):
ifconfig init portmap route
It then uses the following /etc/rc script to mount various top-level dirs
over nfs, and then everything runs out of nfs. This all works just dandy...
HOST="mcspx1.ucom.lsi.nec.co.jp"
ADDR="10.30.114.220"
NETMASK="255.255.255.0"
BROADCAST="10.30.114.255"
GATEWAY="10.30.114.254"
INTERFACE=eth0
NFSROOT="10.30.114.174:/usr/local/export/ucl-v850"
hostname "$HOST"
mount -t proc proc /proc
mount -t ramfs ram /var
for VD in tmp log run lock; do mkdir "/var/$VD"; done
ifconfig lo 127.0.0.1
route add -net 127.0.0.0 netmask 255.0.0.0 lo
ifconfig "$INTERFACE" "$ADDR" netmask "$NETMASK" broadcast "$BROADCAST"
route add "$ADDR" "$INTERFACE"
route add default gw "$GATEWAY"
portmap &
for MP in bin etc usr home lib; do
mount "$NFSROOT/$MP" "/$MP"
done
[This is using the latest CVS versions of uClinux & uClibc, and utilities
from the uClinux-dist distrubution tweaked to compile under them.]
-Miles
--
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
More information about the uClibc
mailing list