Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
USB drive sharing
#1

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.

Reply
#2

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

Reply
#3

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?

Reply
#4

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?

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)