ezechiele2517
Posts: 3
Joined: Thu Sep 13, 2012 9:49 am

Help mounting external HD with samba Read\Write options

Fri Sep 21, 2012 3:02 pm

Hello,
I'm using raspbian distribution with samba server installed and I can access to my raspberry samba folder using my Macbook Pro; now I want to mount an external hard disk I formatted to exFat (because I want to use it on linux\windows\mac).
I use the pi user to login into my raspberry and before mounting external hd I created a folder under '~/hdd' with chmod 777 ( I want to have all permissions to read\write from my macbook).
I tryed to mount external hard disk using:
sudo mount -t auto -o uid=pi,gid=pi /dev/sda1 ~/hdd
It mounts correctly but at first I noticed that my hdd folder after mounting the hard disk become root root owner as you can see:
drwxr-xr-x 1 root root 131072 set 21 16:29 hdd
without writing permissions for external users!
I tryed to mounting external hd using this entry in fstab file:
myuuid /home/pi/hdd auto rw,auto,user,exec,sync 0 0
but I have the same result.

Now I can access to the folder using my mac (by samba server) but I can't write into it because I have no permissions to do that :(

I have this entry on samba configuration file smb.conf:
[public]
comment = Public Shares
browsable = yes
path = /home/pi/hdd
public = yes
writable = yes
readonly = no
guest ok = yes
create mask = 0777
directory mask = 0777

Can you help me please? I want to have for my external hard disk read\write permission using pi default user on raspberry and also read\write permissions accessing by samba server from my Macbook.

Can you help me please?

thank you very much

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Help mounting external HD with samba Read\Write options

Fri Sep 21, 2012 6:56 pm

might be able to
chmod -R 0777 ./
after or find the exfat version of
ogmask / ugmask / gmask
for the mount command.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

ezechiele2517
Posts: 3
Joined: Thu Sep 13, 2012 9:49 am

Re: Help mounting external HD with samba Read\Write options

Fri Sep 21, 2012 9:40 pm

elatllat wrote:might be able to
chmod -R 0777 ./
after or find the exfat version of
ogmask / ugmask / gmask
for the mount command.
Thank you for your reply, but I don't understand what you mean. Can you explain me step by step what to do?
Do you advice to use other partition type(ntfs)?

thanks

Return to “Raspberry Pi OS”