LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 02-10-2010, 11:27 PM   #1
drakebasher
Member
 
Registered: Aug 2004
Location: Proprio Qui
Distribution: Debian
Posts: 85

Rep: Reputation: 16
nfs mount a hotplug device?


Current stable Debian runs on both machines. I connect a digital camera to the USB on the server ("a") and the camera's filesystem is mounted automatically. I want that same filesystem to be made available to the other machine ("b") through nfs.

What should be in fstab for that filesystem, or is something else needed in the configuration for "b" in order to access the filesystem which is physically on "a"?
 
Old 02-11-2010, 05:19 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Have you installed and set up nfs ?

Can you see any nfs-mounted files on server A from machine B ?

If so, then when the camera is mounted on server A then it will appear on the nfs mount of server A on machine B.

If you are using a GUI, then you might need to click "Refresh", or "Reload" before you can see the changes.

I hate to ask this, but have you read man nfs or searched on nfs howto ?
 
Old 02-11-2010, 09:00 PM   #3
drakebasher
Member
 
Registered: Aug 2004
Location: Proprio Qui
Distribution: Debian
Posts: 85

Original Poster
Rep: Reputation: 16
Thanks for your response, tredegar

Yes, nfs is up, no problem. And I have no problem with manually mounting the camera drive on machine b once it has been plugged into machine a. Here's what I'm missing:

When the camera is connected to machine a, the OS recognizes the new device and mounts it automatically. I would like for machine b to recognize that the filesystem is now mounted on machine a and I would like for the filesystem to be automatically mounted on machine b.

Maybe all I need is the right keywords to put in the options column for an fstab entry on machine b?

Last edited by drakebasher; 02-11-2010 at 10:50 PM.
 
Old 02-12-2010, 08:04 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
What is in your /etc/exports file on machine a ?
Where is the camera mounted to on machine a ?
 
Old 02-14-2010, 05:52 PM   #5
drakebasher
Member
 
Registered: Aug 2004
Location: Proprio Qui
Distribution: Debian
Posts: 85

Original Poster
Rep: Reputation: 16
Machine a has the following line in /etc/exports:
Code:
/media/disk/dcim           192.168.128.80/28(rw,no_root_squash,sync)
That line is identical to entries I have for 2 other exports from machine a. The 2 other exports are regular directories, so they're easy.

When the camera is connected to the usb port on machine a, a new directory named "disk" is automatically created under the existing directory /media/
"dcim" is a directory under "disk" within the camera's internal filesystem.

Machine b has the following line in /etc/fstab:
Code:
192.168.128.94:/media/disk/dcim  /home/share/media-optisrvr nfs defaults 0 0
Of course, directory /home/share/media-optisrvr exists.


When the camera has been connected to machine a, on machine b, I can execute "mount -a" and the camera files will be available on machine b. After disconnecting the camera, I need to execute "umount -l" before I can mount it again.

I'd like to know if I can make the camera available on machine b more conveniently: ideally, like it is on machine a. I'd like for it to be easy enough for my wife to do without her asking why I don't just buy a windows machine....

Thanks for your help.
 
Old 02-15-2010, 05:08 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
The mount fails because /media/disk/dcim does not exist until the camera is plugged in.
Just export /media on machine A and on machine b put

Code:
192.168.128.94:/media/ /home/share/media-optisrvr nfs defaults 0 0
Then it should work (you may need to "refresh" or "reload" your file browser window, depending).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A loop device mounted within an NFS share is not accessible via NFS? srikanthnv Linux - Software 17 12-18-2011 10:31 AM
[SOLVED] mount.nfs: mount to NFS server 'rpcbind' failed w1k0 Slackware 4 03-30-2010 04:45 PM
mount.nfs: mount to NFS server 'jesse' failed: timed out, retrying keupie Linux - Networking 3 06-05-2009 08:03 PM
NFS mount mount.nfs: access denied by server while mounting knockout_artist Linux - Newbie 2 11-26-2008 03:36 PM
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 8 09-22-2006 04:34 AM


All times are GMT -5. The time now is 10:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration