jmdphillips
Posts: 2
Joined: Fri Feb 23, 2024 8:04 pm

[SOLVED] Mapping a 2nd NAS Drive from Pi in Windows

Fri Feb 23, 2024 8:17 pm

Please help. I've just added a 2nd NAS drive to my Pi 4 Plex server and now I'm struggling to map it to my Windows laptop. Both disks are mounted and are visible on Plex when adding libraries so I assume there's something wrong with SAMBA or with users and permissions.

This is from /etc/samba/smb.conf

[PlexFilms]
path = /mnt/usb1/shared
writeable=Yes
create mask=0777
directory mask=0777
public=no

[PlexTVSeries]
path = /mnt/usb2/shared
writeable=Yes
create mask=0777
directory mask=0777
public=no

It is usb2 which won't map. When I try to map the drive at this address \\raspberrypi\PlexTVSeries the error message 'Windows cannot access \\raspberrypi\PlexTVSeries' appears.

This is from etc/fstab:
UUID=D8F45589F4556B30 /mnt/usb1 ntfs defaults,auto,users,rw,nofail,noatime 0 0
UUID=7020BA4020BA0CDA /mnt/usb2 ntfs defaults,auto,users,rw,nofail,noatime 0 0


Please help and many thanks

*SOLUTION* - The problem was with how the folder path was named. You can see that they both begin with the folder *mnt*. I made a new directory named /mnt2/usb2/shared and then was able to map this.
Last edited by jmdphillips on Sun Feb 25, 2024 2:29 am, edited 1 time in total.

jmdphillips
Posts: 2
Joined: Fri Feb 23, 2024 8:04 pm

Re: Mapping a 2nd NAS Drive from Pi in Windows

Sat Feb 24, 2024 5:42 am

UPDATE - I looked in sudo mount proc and got this error:

pi@raspberrypi:~ $ sudo mount proc
mount: (hint) your fstab has been modified, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
pi@raspberrypi:~ $ systemctl daemon-reload
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ====
Authentication is required to reload the systemd state.
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ====

I then tried to map the usb drive again with 'use different credentials' checked and this time it asked for the password for pi. But then gave the error:

"The network folder specified is currently mapped using a different user name and password.
To connect using a different username and password, first disconnect any existing mappings to this network share"

Return to “Networking and servers”