nfs share with wireless laptop

jim barnes j10152 at
Tue Jan 3 05:26:53 UTC 2006

On Monday 02 January 2006 07:26 pm, Martin Ericsson wrote:
> tis 2006-01-03 klockan 03:00 +0100 skrev Martin Ericsson:
> > Hi!
> > My home network consists of a laptop, a linksys router and a desktop
> > computer. I want to share a folder on my desktop with my laptop. I've
> > done it manually, with "mount -t nfs.." but where should I place this
> > command to make it mount automatically as soon as my computer connects
> > to my home wireless network? Can I make it work with networkmanager?
> >
> > And do I need portmap?
> >
> > I've also read that NFS is unstable if you don't unmount your shares
> > properly, so what happens if the network goes down? Should I choose
> > samba instead?
> >
> > Regards,
> > Martin Ericsson
> I forgot to mention that my desktop computer isn't always running. So my
> question is: how do I best share a folder on my desktop computer so that
> it automatically gets mounted on my laptop when the laptop is on my home
> network and my desktop computer is running?

autofs is what you need. Mounts your nfs shares transparently, when they are 
available and needed, then will unmount them also. portmap is a must.

man autofs.
Jim Barnes
Certainly the game is rigged. Don't let that stop you; 
if you don't bet, you can't win.            -Lazarus Long 
Linux 2.6.12-10-686

More information about the ubuntu-users mailing list