Results 1 to 9 of 9

Thread: Share usb with nfs

  1. #1
    Join Date
    Dec 2005
    Beans
    295
    Distro
    Ubuntu Development Release

    Share usb with nfs

    I have a WD MyBook(external drive) that I bought for keeping backups. pictures, dvd's and the such.
    What I want to do is to also set it up so that my wife and my daughter can also use it.
    I need a very simple how to for using this usb device with nfs.
    Thank you.

  2. #2
    Join Date
    Nov 2006
    Location
    Norway
    Beans
    795
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Share usb with nfs

    Have a look here: http://ubuntuguide.org/wiki/Ubuntu:Gutsy#NFS_Server

    That should work just fine if you have Hardy
    Open mind, open source!
    Keep control of computer usage with timekpr
    Screensaver for Amarok? AmarokScreenSaver
    My (Norwegian) blog about motorcycles and MotoGP

  3. #3
    Join Date
    Dec 2005
    Beans
    295
    Distro
    Ubuntu Development Release

    Re: Share usb with nfs

    .nedberg,
    Thanks all that is already in place, and currently using 7.1o.
    I actually have nfs share setup using a hdd on the my system but can not get the usb drive to do the same. I can use the usb but I can not get the nfs to work with it.
    Been hammering myself with this for several months now with no resolution yet.
    I am sure it some simple thing but can't figure out why nfs will not work with usb.

  4. #4
    Join Date
    Nov 2006
    Location
    Norway
    Beans
    795
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Share usb with nfs

    Have you made a mountpoint for the drive? Or are you using "media:/<something>" when you browse the drive? Place a line in fstab for the drive and mount it, configure exports and the issue 'sudo exportfs -a' in a terminal.

    USB and NFS should be no problem. What filesystem is the disk? I only use ext3 for my exports. Might be a problem with FAT, I don't know. Sorry!
    Open mind, open source!
    Keep control of computer usage with timekpr
    Screensaver for Amarok? AmarokScreenSaver
    My (Norwegian) blog about motorcycles and MotoGP

  5. #5
    Join Date
    Dec 2005
    Beans
    295
    Distro
    Ubuntu Development Release

    Re: Share usb with nfs

    Have you made a mountpoint for the drive?
    on the client /media/backups. Client fstab includes this line: 192.168.1.11:/media/MyBook/stacey /media/backups nfs rw,hard,intr 0 0 On my computer where usb drive is /media/MyBook.
    My fstab for the drive is: UUID=fe19c423-1d7b-449a-ab3e-23f46ffa422b /media/MyBook ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2.
    When I do 'sudo exportfs -a' I get /media/MyBook/stacey does not exist, yet I can see it in my media folder?
    Also when mounted in fstab I can not access the drive, if I try I get permission denied. And it still shows the drive as a removeable media in the media folder and desktop icon.
    Last edited by silvagroup; May 21st, 2008 at 06:46 AM.

  6. #6
    Join Date
    Nov 2006
    Location
    Norway
    Beans
    795
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Share usb with nfs

    What does your /etc/exports look like?

    It could be a permission problem. Is the /media/MyBook/stacey directory writable by your normal user?
    Open mind, open source!
    Keep control of computer usage with timekpr
    Screensaver for Amarok? AmarokScreenSaver
    My (Norwegian) blog about motorcycles and MotoGP

  7. #7
    Join Date
    Dec 2005
    Beans
    295
    Distro
    Ubuntu Development Release

    Re: Share usb with nfs

    /media/sdb1/Pictures 192.168.1.8(rw,async) 192.168.1.9(ro,async)
    /media/sdb1/Childrens_Ministry 192.168.1.8(ro,async)
    /media/sdb1/Church 192.168.1.8(rw,async)
    /media/sdb1/WindowsXp 192.168.1.8(rw,async) 192.168.1.9(rw,async)
    /home/carlos/.kde/share/apps/kabc/std.vcf 192.168.1.8(rw,async)
    /media/MyBook/stacey 192.168.1.8(rw,async)
    Is the /media/MyBook/stacey directory writable by your normal user?
    Yes.

  8. #8
    Join Date
    Nov 2006
    Location
    Norway
    Beans
    795
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Share usb with nfs

    Stop the NFS server, unmout and then mount the USB disk and restart NFS.

    I did some searching and could not find anything related to this. Sorry I can't help you anymore
    Open mind, open source!
    Keep control of computer usage with timekpr
    Screensaver for Amarok? AmarokScreenSaver
    My (Norwegian) blog about motorcycles and MotoGP

  9. #9
    Join Date
    Dec 2005
    Beans
    295
    Distro
    Ubuntu Development Release

    Re: Share usb with nfs

    Thanks for trying. I too have been searching for several months with little success.
    I found a program called Usb Server that says it makes this process easy but since I am not sure what it really does, and since for the most part my system works really well, I am reluctant to try it out. I haven't even upgraded to 8.04 yet for that reason.
    Again thank you for your help.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •