LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Share USB harddrive (https://www.linuxquestions.org/questions/linux-server-73/share-usb-harddrive-516308/)

razedk 01-04-2007 12:47 PM

Share USB harddrive
 
Hi,

I have made a share on my normal harddrive which I can access from my Windows client with no problems. But when I mount my USB harddrive and shares it, I can't access it (mounted via fstab - /dev/sda1).

I have also tried to make a softlink from my normal share to the USB harddrive and a mount --bind, but the directory does not show up, when accessing it from Windows.

Does anyone know if it is possible to use a USB harddisk as a share with SAMBA, and maybe a description of how I do it ?

jschiwal 01-04-2007 01:29 PM

I have the /media directory shared on my desktop. I just need to open that and select the Memory card "TWiT". It may be better doing it that way for a removable device.
Code:

[media]
        comment = MediaShares
        path = /media
        read list = jschiwal@hpamd64
        write list = jschiwal@hpamd64
        read only = No
        inherit acls = Yes

I am using the USER security model on both my desktop and laptop.

There is a book "Samba 3 by Example" that you can download from the samba.org website. It is also supplies by a samba-doc package in SuSE. Your distro may offer it as well, either as a pdf file or a postscript file.
Code:

/usr/share/doc/packages/samba/Samba3-ByExample.pdf
/usr/share/doc/packages/samba/Samba3-Developers-Guide.pdf
/usr/share/doc/packages/samba/Samba3-HOWTO.pdf


razedk 01-16-2007 02:28 PM

USB harddisk mounting
 
Hi,

thanks for the answer, but I'm not quite sure what you want me to do.

My USB harddisk isn't automounted in the /media directory, but it shows up on my desktop.

I didn't find any break-throughs in the SAMBA manual either, so I'm still a little lost !!!!


All times are GMT -5. The time now is 12:56 AM.