Linux-Noob Forums
USB drive sharing - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Tips and Tricks (https://www.linux-noob.com/forums/forum-59.html)
+---- Forum: Samba and NFS (https://www.linux-noob.com/forums/forum-23.html)
+---- Thread: USB drive sharing (/thread-595.html)



USB drive sharing - wheybags - 2009-08-10


Hey,

I use aserver computer to share a usb drive and printer so that me and my mother can both use them.

It was running xp, but in the interest of stablity, I decided to switch it to linux.

The problem is this:

When I share the drive with samba, it works fine and all, but when I reboot, the share is lost.

I had this problem in xp, but I solved it by mounting the drive to a folder on my system drive.

However, I am noob @ linux, so I don't know how to overcome this issue in a foreign os.

Tyvm, wheybags

 

P.S: Running ubuntu.




USB drive sharing - anyweb - 2009-08-10


you can place commands that you want run on every boot in /etc/rc.d/rc.local

 

take a look at that file and add a line to setup your share in there

 

cheers

anyweb




USB drive sharing - wheybags - 2009-08-10


Quote:you can place commands that you want run on every boot in /etc/rc.d/rc.local

 

take a look at that file and add a line to setup your share in there

 

cheers

anyweb
 

What is the command for sharing, and where in the file should I put it?

 

EDIT: Also, I have rc0.d - rc6.d, which one do I go to?




USB drive sharing - Dungeon-Dave - 2009-08-11


How are you sharing the drive out with samba?

 

If you are editing your smb.conf file, then it should persist after a reboot.

 

I think your issue may be to do with the fact the USB drive isn't being remounted after a reboot, so samba shares out an empty directory, rather than the mounted drive. Is the USB drive mentioned in /etc/fstab at all?