Setup NFS-Root-Filesystem
From t-hack.com - Hack X300T / X301T
(→kernel cmd-line parameter) |
|||
Line 7: | Line 7: | ||
*setup exports (e.g. edit /etc/exports) | *setup exports (e.g. edit /etc/exports) | ||
− | /some/dir/nfsroot 192.168.1.*(rw,sync,subtree_check) | + | /some/dir/nfsroot 192.168.1.*(rw,sync,subtree_check,no_root_squash) |
*reconfigure nfsd | *reconfigure nfsd | ||
Line 27: | Line 27: | ||
*start yamon | *start yamon | ||
*change kernel cmd line parameter, we need ip kernel configuration!! | *change kernel cmd line parameter, we need ip kernel configuration!! | ||
− | setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs nfsroot=(nfs_server_ip):/some/dir/nfsroot ip=(my_ip_addr):(server_ip_addr):(gateway):(netmask):(hostname)" | + | setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs rw nfsroot=(nfs_server_ip):/some/dir/nfsroot ip=(my_ip_addr):(server_ip_addr):(gateway):(netmask):(hostname)" |
*ok, here is an example without placeholders: | *ok, here is an example without placeholders: | ||
Line 35: | Line 35: | ||
netmask: 255.255.255.0<br/> | netmask: 255.255.255.0<br/> | ||
− | setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs nfsroot=192.168.1.30:/some/dir/nfsroot ip=192.168.1.20:192.168.1.30:192.168.1.1:255.255.255.0:x300t" | + | setxenv a.linux_cmd "console=ttyS0 root=/dev/nfs rw nfsroot=192.168.1.30:/some/dir/nfsroot ip=192.168.1.20:192.168.1.30:192.168.1.1:255.255.255.0:x300t" |
===boot kernel and (hopefully) Linux=== | ===boot kernel and (hopefully) Linux=== | ||
ok, the above settings should let the box mount a rootfs via nfs! | ok, the above settings should let the box mount a rootfs via nfs! |