gregh308
Posts: 12
Joined: Thu May 19, 2016 8:24 pm
Location: Minnesota USA
Contact: Skype

I cannot drag a file to any of the folders in a Samba share from my Mac

Fri Jan 11, 2019 8:29 pm

I have updated/upgraded my Pi 3 and installed Samba. Attached is a 1 T hard drive. From my Mac I can see the raspberrypi from a finder window that shows the directories at /~. Documents, Desktop, etc. However, I cannot drag a file to any of the folders there as I had done in the past. Also does not show the 1T hard drive, only the system drive. Any thoughts on what needs to be in the smb.conf to allow the file transfer?

Andyroo
Posts: 2834
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: Samba

Sat Jan 12, 2019 12:02 am

What do you currently have in there?

One thought is that the Mac originally asked for a user / password and not kept it in keychain. If the Pi has been rebooted but the Mac has not finder will be in a twist. You could try to force finder to end with kill all finder (off the top of my head).

As for the external disk - is it mounted on the Pi. If you manually typed in the mount just at the command line it will not be permanent.
Need Pi spray - these things are breeding in my house...

User avatar
thagrol
Posts: 1465
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: Samba

Sat Jan 12, 2019 1:23 pm

gregh308 wrote:
Fri Jan 11, 2019 8:29 pm
I have updated/upgraded my Pi 3 and installed Samba. Attached is a 1 T hard drive. From my Mac I can see the raspberrypi from a finder window that shows the directories at /~. Documents, Desktop, etc. However, I cannot drag a file to any of the folders there as I had done in the past. Also does not show the 1T hard drive, only the system drive. Any thoughts on what needs to be in the smb.conf to allow the file transfer?
I can't help with the Mac specific parts as I don't have one and have never used one, but:
  • Get the HDD mounted on your Pi
  • Get that mount happening at every boot
  • Setup permissions on the HDD so that the desired user(s) can access it. Default permissions probably won't be enough.
  • Give us some more info:
    • Where you're mounting the HDD
    • What filesystem have you used on the HDD (while the remote machine won't care, this can affect how you set permissions and other behaviours for example large files)
    • Do you want guest access or users to login?
    • What's currently in your smb.conf?
Note to self: don't feed the trolls

If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 11737
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: I cannot drag a file to any of the folders in a Samba share from my Mac

Sat Jan 12, 2019 7:31 pm

Modified the subject line, as best as I can from what i understand the question might be.

gregh308
Posts: 12
Joined: Thu May 19, 2016 8:24 pm
Location: Minnesota USA
Contact: Skype

Re: I cannot drag a file to any of the folders in a Samba share from my Mac

Sun Jan 13, 2019 1:25 am

so here is the detail on where the HDD is mounted I believe. /dev/sda2

df: /run/user/1000/gvfs: Transport endpoint is not connected
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 28038160 4890144 21700696 19% /
devtmpfs 459964 0 459964 0% /dev
tmpfs 464572 0 464572 0% /dev/shm
tmpfs 464572 12332 452240 3% /run
tmpfs 5120 4 5116 1% /run/lock
tmpfs 464572 0 464572 0% /sys/fs/cgroup
/dev/mmcblk0p6 66528 22540 43988 34% /boot
tmpfs 92912 0 92912 0% /run/user/1000
/dev/sda2 976314528 96 976314432 1% /media/pi/925A-3139
/dev/mmcblk0p5 30701 398 28010 2% /media/pi/SETTINGS

From smb.conf

[homes]
comment = Home Directories
browseable = yes
[share]
comment= shared drive
path=/share
browseable=Yes
read only=no
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=yes


any thoughts?

User avatar
thagrol
Posts: 1465
Joined: Fri Jan 13, 2012 4:41 pm
Location: Darkest Somerset, UK
Contact: Website

Re: I cannot drag a file to any of the folders in a Samba share from my Mac

Sun Jan 13, 2019 4:28 pm

gregh308 wrote:
Sun Jan 13, 2019 1:25 am
any thoughts?
Several...
  • /dev/sda2 is the block device for the partition not the mount point.
  • /dev/sda2 has been mounted at /media/pi/925A-3139 This suggest that the automount tool in the desktop has done the mounting ratrher than fstab or systemd. This type of mount will only occur when the desktop is running and the pi user is logged in.
  • Does "/share" exist?
  • If so, what permissions does it have?
Solutions:
  1. Update your smb.conf replacing "/share" with "/media/pi/925A-3139" But see my second point above.
    • Arrange for /dev/sda2 to be mounted at boot time via /etc/fstab or systemd. You'd be better off mounting by UUID or PARTUUID rathern than "/dev/sda2" as that can change of multpile drives are connected at boot time. Make sure you include nofail in the mount options to prevent hangs in the event that the HDD is missing at boot time.
    • Create "/share" if it doesn't exist and arrange for the above mount to be on it.
Whichever you choose, be prepared to sort out permissions for files and directories on the HDD.
Note to self: don't feed the trolls

If I've asked you a question, please answer it. I'm unlikely to be able to help without that information.

gregh308
Posts: 12
Joined: Thu May 19, 2016 8:24 pm
Location: Minnesota USA
Contact: Skype

Re: I cannot drag a file to any of the folders in a Samba share from my Mac

Mon Jan 14, 2019 4:27 pm

Many thanks for the insight. Will post again after a little rework with progress being made.

gregh308
Posts: 12
Joined: Thu May 19, 2016 8:24 pm
Location: Minnesota USA
Contact: Skype

Re: I cannot drag a file to any of the folders in a Samba share from my Mac

Thu Jan 17, 2019 5:12 pm

I have made the necessary changes to the smb.conf and am able to move the files easily, as expected. Many thanks for the suggestions and the help!

Return to “Beginners”