Jump to content
Sign in to follow this  
wheybags

USB drive sharing

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...