Ask Your Question
0

NFS mounting a USB drive mounted on other machine

asked 2012-07-12 15:34:00 -0500

Durwin gravatar image

I have a USB drive mounted on machine1 and wish to NFS mount it on machine2 but when I issue the mount command, it fails and times out. The export on machine1 is this; /media/usbdisk 172.23.93.0/24(ro,sync,nosubtreecheck,norootsquash)

The command issued on machine2 is this; mount thephoenix:/media/usbdisk /mnt/tmp/

I can mount any other exported directory but USB drives. SElinux is disabled as is iptables and ip6tables.

This does work on an existing Fedora 13 system.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-14 11:14:53 -0500

agajan gravatar image

You can't export filesystems that are automounted. (I'm not sure which component in Fedora does the automounting. I believe that it is udisks.)

A workaround is to:

  1. Hotplug the USB drive.
  2. Unmount the USB drive partition from /media or /run/media/$USER. (You can use the udisksctl command to do this.)
  3. Remount the USB drive partition with the mount command in /mnt/<whatever>.
  4. Export /mnt/<whatever> and mount with NFS.
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-07-12 15:34:00 -0500

Seen: 1,789 times

Last updated: Jul 14 '12