Samba share using an external hard drive on your pi using the default mount location?

August 26, 2024, 21:09

dannyboy3210

Does anyone know offhand if you can set up a samba share using an external hard drive on your pi with the default mount location? I've got a samba share working from the internal drive, and windows can access the /home folder for my user. My research has me thinking I may need to somehow mount the drive inside the Home folder or something? Edit: I remember trying to get this working at various points in the past without luck and this time decided to finally ask for help XD Edit 2 (for context): I am booting off an external SSD without issue. I have an external 2TB HDD I want to share with my local network (So Windows, android, etc.)

dannyboy3210

I've been experimenting with different guides online and from the following screenshot, the top one works, the lower two do not.

raulx222

Have you tried writing your path as: "/media/rp4user/FreeAgent GoFlex Drive/share" or '/media/rp4user/FreeAgent GoFlex Drive/share' ? I mean you can't use quotes inside the path, if you path has names with spaces, put the whole path inside quote

raulx222

This is my config for 4tb hdd connected to raspberry and I can successfully connect from Windows and iOS.

raulx222


raulx222

You are using your "rp4user" to log in to your first share? Take a look at my setup, you might want the last 2 lines. And on last line use your accounts (first one is my login account and second is an account for a service that needs HDD access)

dannyboy3210

I'll give it a shot I had tried with ' ' marks before, but tried " " marks after it failed XD

dannyboy3210

Ok, so rp4goflexshare (the top one on the right, middle on the left) gives me the standard Windows cannot access {path} error message rp4goflexsharetest2 (the second one on the right, bottom on the left) doesn't do anything)

dannyboy3210

and yeah, I'm living dangerously and using my single user account to try and keep it simple for now

dannyboy3210

which allows me to get into rp4internalstorageshare (the third on the right and top on the left)

dannyboy3210

being the error message

raulx222

Have you tried with force user=root and valid users=<your username> ?

dannyboy3210

I have not

dannyboy3210

trying it now

dannyboy3210

It did not appear to have an effect unfortunately

dannyboy3210

Are you using the default mount location that the raspberry pi sets up when you plug in your external hdd?

dannyboy3210

other thought, I wonder if I should rename it in windows to have no spaces...

thunder07337

When you change the conf, do you do a
sudo systemctl restart smbd
?

dannyboy3210

yeah

dannyboy3210

every time

dannyboy3210


dannyboy3210

fixed some typos I saw, didn't help

raulx222

I'm mounting the drive from fstab

dannyboy3210

I don't know what that is, but I'm going to look it up