Share External HDD Samba Ubuntu 9.10

Asked by fuzzel

Hi, I am trying to share an external HDD over my wireless network. I am currently able to share files on the local HDD of my eee 701 without any issues. I am using XP and 7 machines in my household all of them are able to access the shares on the local HDD of the 701, but all of them are being denied access to the Shared External HDD.

I have already trawled through various forums and found many similar problems, but none of the solutions solve my current issue.

Any help from the guys that actually know what they are doing would be very much appreciated.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

You will need to mount the partition. You can do nothing with the drive, only the partition. Windows incorrectly names partitions "C Drive" and "D Drive" which is wrong, the disk has a single partition which you are accessing. If you partition a drive to ave 2 partitions, Windows will see a "C Drive" and a "D Drive" despite their being only one drive with TWO partitions.

To share the partition in SAMBA you will need to mount the partition with suitable access. This will also mean it will mount the partition to the same mount point, which you can then share with SAMBA.

If you run:

sudo mkdir /media/usbpart; sudo apt-get install samba; gksudo gedit /etc/samba/smb.conf; sudo /etc/init.d/samba restart

and add these lines to the bottom of the file:

[USB_SHARE]
path = /media/usbpart
comment = Some stuff
browsable = yes
read only = no
writable = yes
hide dot files = yes
guest ok = yes

save the new file and close gedit

You can then mount your partition to /media/usbpart using fstab and the UID of the usb partition. This can be found out using:

sudo blkid

You can then add a line in /etcfstab to always mount the partition in the same place and with the settings you want (full access to users)

Can you help with this problem?

Provide an answer of your own, or ask fuzzel for more information if necessary.

To post a message you must log in.