New build: Can't access external HD

I’ve just done a frsh install to Bookworm and am now trying to set up Plex (and then Sonaar, Radaar
etc).

Plex isn’t ‘seeing’ my external drive where my content is stored.

I’ve used dietpi-drive_manager and the external HD is mounted. I’ve tried to check all the files and folders are still there using SAmba, but when I Go To Server in my Mac’s Finder I can’t access anyhing beyond ‘DietPi’.

Everthing was working prefectly under Buster (which I set up a good few years ago)… now it’s all broken. Please help

Thanks

You need to check file system permissions. Probably they do not fit.

How do I do that?

So you want copy files into /mnt/dietpi_userdata/Video respectivly /mnt/dietpi_userdata/Audio?
You could just do it via command line with the root user.

cp -R -i /mnt/external_drive/music /mnt/dietpi_userdata/Audio

Just chang the path of the source to your actual external drive’ s path.

Otherwise you can also change the samba user to root, if you like to use sambe:
https://dietpi.com/docs/software/file_servers/#__tabbed_2_3

where is the drive mounted to?

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME FSTYPE LABEL  SIZE RO TYPE MOUNTPOINT PARTUUID                             UUID
sda                1.8T  0 disk                                                 
└─sda1
     ext4          1.8T  0 part /mnt/video 6c602619-a7c5-4a2f-9e35-10c749d41b64 64aeecb1-0678-4a71-9dd7-ae2ab23ff5fb
mmcblk0
                  59.7G  0 disk                                                 
├─mmcblk0p1
│    vfat          128M  0 part /boot      28a6ec92-01                          5044-2089
└─mmcblk0p2
     ext4         59.6G  0 part /          28a6ec92-02                          cce434c1-4bcd-4c4d-ba03-f6179e1f1722

can you share

ls -la /mnt/video

And you like to access via SAMBA? Because SMB is using /mnt/dietpi_userdata/ on a default setup as root directory.

root@DietPi:~# ls -la /mnt/video_content
total 36
drwxr-xr-x 6 root   root    4096 Feb  2 23:31 .
drwxr-xr-x 6 root   root    4096 Feb  2 23:17 ..
drwxr-xr-x 2 root   root    4096 Feb  2 23:31 Film
drwxr-xr-x 2 root   root    4096 Feb  2 23:31 TV
drwxrwxr-x 8 dietpi dietpi  4096 Feb  2 22:08 dietpi_userdata
drwx------ 2 root   root   16384 Feb  2 23:04 lost+found

Reason for wanting access to the system from my Mac’s Finder is so I can see where files are and move/copy if needed. Was able to do this with Buster. At the moment when I click on the dietpi icon (as per below) nothing happens - not even a error message

image

As already shared, as a default SMB will share folder /mnt/dietpi_userdata/. You would need to adjust SMB configuration to fit your needs.

Please can you point me to where I can do that. Thanks

when I try
/etc/samba/smb.conf

I get

-bash: /etc/samba/smb.conf: Permission denied

Simply check our online docs File Servers Options - DietPi.com Docs

I’ve lcoated the smb.conf file, but as a very untechnical perosn I can’t for the life of me work out which bit I shoud change (or what to change it to).

I basically want to be able to access the files on my DietPi (and connected external HD) in the Finder on my Mac (so I can drag and drop files from DietPi to Mac) I don’t remember this requiring so much configuration in Buster, but my memory may be failing!

Might I be better off accessing from Finder via ftp? (I don’t really know the difference, so poor are my technical skills!)

Thanks

I guess it is prity well explained on our online docs. I directly linked the part you need to adjust SMB configuration and to point to your external HDD

sed -i '/path = /c\path = /Path/To/Directory' /etc/samba/smb.conf
systemctl restart nmbd smbd

It’s exactly the same with Buster. How is SMB supposed to know the location of our hard drive if you don’t configure it? Or rather, how are we supposed to know that you want to share a hard drive via SMB at all?

I’m sorry, I think my poor techincal skills are starting to cause frustartion, which I apologise for.

Wasn’t for one minute suggesting your docs aren’t clear - it is my lack of knowledge, I know.

I’ll keep trying. Sorry to be such an annoyance

simply replace this with your HDD location.

I replaced with
mnt/dietpi-userdata

But get the same issue. Not sure if it’s relevant but when I go to the Network setion of Mac’s Finder I see this:

image

Why?

Location of your HDD seems

or in a different post it was

So you need to check the correct location.

Oh gosh, I’m getting nyself in a proper muddle.

I replaced with mnt/dietpi-userdata as I discovered that this is where Sonarr etc is placing the completed video files (and judging from the screen shot below, and accompanying space of 1.8 TB I believe it to be correct)

I’ve replaced mnt/video_content but have the same issue.

can you share

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
df -h
ls -la /mnt /mnt/dietpi_userdata/
readlink /mnt/dietpi_userdata
readlink -f /mnt/dietpi_userdata
cat /etc/samba/smb.conf | grep path
total 40
drwxrwxr-x 8 dietpi dietpi 4096 Feb 2 22:08 .
drwxr-xr-x 6 root root 4096 Feb 2 23:31 ..
-rw-r--r-- 1 root root 7709 Feb 2 22:06 DietPi_OpenVPN_Client.ovpn
drwxrwxr-x 2 dietpi dietpi 4096 Feb 2 21:57 Music
drwxrwxr-x 2 dietpi dietpi 4096 Feb 2 21:53 Pictures
drwxrwxr-x 2 dietpi dietpi 4096 Feb 2 21:53 Video
drwxrwxr-x 6 dietpi dietpi 4096 Feb 2 22:08 downloads
drwxr-xr-x 7 radarr dietpi 4096 Feb 3 18:37 radarr
drwxr-xr-x 6 sonar dietpi 4096 Feb 3 18:16 sonarr
/mnt/video_content/dietpi_userdata
/mnt/video_content/dietpi_userdata
path = /mnt/video_content
path = /mnt/video_content
path = /mnt/dietpi_userdata
# users profiles (see the "logon path" option above)
# The path below should be writable by all users so that their
path = /mnt/video_content
path = /mnt/video_content
path = /mnt/video_content