Re: Live-Cd with NFS server capabilites.



On Mon, 07 Aug 2006 14:19:53 +0100, ArameFarpado wrote:

Jim wrote:

Hi Jim, i thank you for all the trouble with this little howto about nfs
exporting :) i've save it in my colecction of god tips ;)

I allready have a home lan with 3 pc's sharing parts of there disks by nfs.

What i'm trying to do is this:
sometimes i have here pcs that there operative sistem is not operating
anymore ;) and i need to do some file savings of important documents from
those pc's and i would like to scan them with clamav too.

Using a live cd on the damaged pc, i can easy mount there my export folders
shared by my computers but i can't do the other way around.
So, i can only scan the damaged pc directly on it, and copy some files to my
pc. I would like to do the other way around... share everything on the
damaged pc, and search for important files and scan his disks from my pc.


where is what i do on the damaged pc:
--boot the damaged pc with knoppix
--set the eth0 to meet my lan network, after that, i can ping from the
damaged pc, all my pc's in the lan and i can even get internet on it.
in this case the damaged pc gets the 192.168.1.3 ip.
i can also ping the damaged pc from my one.
--edit the /etc/exports and just add a simple temporary export
/ *(rw)
this would give full access to all the system.
--then i do this:
/etc/init.d/portmap restart
/etc/init.d/nfs-common restart
/etc/init.d/nfs-kernel-server restart (sometimes this command hangs and i
don't know why)
# exportfs
this command give this output:
/ <world>
looks like everything is ready...


then i go to my pc and do this:
# mount 192.168.1.3:/ /mnt/Rede/Trabalho/
sometimes i get:
mount to NFS server '192.168.1.3' failed.
and other times i get:
mount to NFS server '192.168.1.3' failed. server is down.

note that i can mount nfs exports from other pcs with installed systems,
it's just the ones running live-cds that i can't.


comparing things on all pc's i've found out that:
all my installed systems have a kernel module running named "exportfs"
see example:
# lsmod|grep nfs
nfs 216520 0
nfsd 228640 13
exportfs 4736 1 nfsd
lockd 59656 3 nfs,nfsd
nfs_acl 2880 2 nfs,nfsd
sunrpc 128572 10 nfs,nfsd,lockd,nfs_acl

but on the live-cd running pc, modprobe tells me that modules "exportfs"
does not exist.

so far this is the only diference i find, and looks like this is why other
pc's can't find a nfs server running on the live-cd running pc.

adding a module on a live-cd is out of a question... so, what to do here?

i've tryied knoppix, slax and kurumin... none has the exportfs module.

oh... i've also tryed to do the export only to a area that as really write
capabitities like
/mnt/hda5 *(rw)
and
# mount 192.168.1.3:/mnt/hda5 /mnt/Rede/Trabalho/
so, this is not working because i'm trying to mount read-only media as rw.


so now i repeat my question: does anybody knows a live-cd that has the
exportfs module on it?

When all else fails...
Use a hammer.
I have a big and heavy one here... ready :)

thanks
ArameFarpado

What distribution are you familiar using?

My project is a Slackware derivative:
http://www.xmission.com/%7Eddmayne2/10.2-live/v.0.0.2.8/index.html

I haven't used NFSd (as of now, but I plan to in the near future.) My
project doesn't include nfsd by default, but it can be added.
Unfortunately, my project is not especially user friendly. If you are
looking for an easy to use live cd, then perhaps you should look
elsewhere. But if you know what you're doing, then _perhaps_ this project
could be quickly customized to meet your needs.

Steps to add nfsd.

0. Download iso of my project and burn iso.
1. Boot live CD.
2. Start networking and get ip address.
3. Install nfsd package.

#
# SOURCE=somehost.somewhere
# REPOS=slackware/slackware-10.2
# PACKAGE=slackware/n/nfs-utils-1.0.7-i486-1.tgz
# scp ${SOURCE}:${REPOS}/${PACKAGE} .
# installpkg nfs-utils-1.0.7-i486-1.tgz

4. Configure nfsd and start daemon.

BTW, If using some "real" RW device (say, usb flash), then changes will be
saved and the above step will only be required once.

I probably should update this project soon, and remember to include nfs. I
have been distracted using the live DVD which includes a full Slack
install, plus open office and gnome:
http://www.xmission.com/~ddmayne2/current%20-dvd/packages
http://www.xmission.com/~ddmayne2/current%20-dvd/screenshots/

--
Douglas Mayne


.



Relevant Pages

  • Re: Live-Cd with NFS server capabilites.
    ... i thank you for all the trouble with this little howto about nfs ... Using a live cd on the damaged pc, i can easy mount there my export ... all my installed systems have a kernel module running named "exportfs" ... pc's can't find a nfs server running on the live-cd running pc. ...
    (comp.os.linux.misc)
  • Re: Live-Cd with NFS server capabilites.
    ... I allready have a home lan with 3 pc's sharing parts of there disks by nfs. ... Using a live cd on the damaged pc, i can easy mount there my export folders ... all my installed systems have a kernel module running named "exportfs" ... pc's can't find a nfs server running on the live-cd running pc. ...
    (comp.os.linux.misc)
  • Re: Strange NFS problem
    ... Thomas Cameron wrote: ... >> why NFS suddenly stopped allowing access to the shares that are being ... Does the command exportfs -va ... > If neither of those work, what does running the two commands get you? ...
    (Fedora)
  • Re: NFS And Exportfs
    ... > While researching some possible quirks with files accessed through NFS, ... The 'exportfs' command is in the nfs-kernel-server package. ... > version I'm using on Debian. ... You probably did not install the nfs server. ...
    (Debian-User)
  • rpc-srv/tcp: nfsd: sent only -107 bytes (fwd)
    ... Currently running 64 NFS daemons. ... Kernel 2.4.21-32.0.1.EL.XFSsmp is the kernel recompiled from same ... Two NFS clients running 2.4.21-37.ELsmp, namely fnpcg, fngp-osg. ... NFS mailing list archives suggested to increase the number of NFSD, ...
    (Linux-Kernel)