I have Mint 19.3 Gnome/Xfce installed on an old Dv7 HP laptop and a WDTVLive Hub on the network with 2tb internal and 2 external HDD connected acting as a NAS.
I want to automount the shares(internal, HDD(1tb) & HDD(2tb)) so I can use them with Plex Media Server on the Mint machine.
The shares can be seen in the file explorer in Mint. I can access the folders and files in file explorer no problem.
I created a directory /media/shares/
where I would like to add the shares. I need help determining what the parameters are for mounting the shares.
$ sudo smbstatus
Samba version 4.7.6-Ubuntu
$ sudo less /etc/passwd | grep plex
plex:x:999:999::/var/lib/plexmediaserver:/usr/sbin/nologin
$ id
uid=1000(tjohannes) gid=1000(tjohannes) groups=1000(tjohannes),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),112(lpadmin),129(sambashare)
$ net lookup wdtvkids
192.168.1.95
$ smbtree
MEDIACENTER
\\WDTVKIDS WDTV LIVE
\\WDTVKIDS\IPC$ IPC Service (WDTV LIVE)
\\WDTVKIDS\Seagate_Backup_Plus_Drive Seagate_Backup_Plus_Drive
\\WDTVKIDS\New_Volume New_Volume
\\WDTVKIDS\WDTVLiveHub WDTVLiveHub
$ sudo smbclient -L 192.168.1.95 -U%
WARNING: The "syslog" option is deprecated
Sharename Type Comment
--------- ---- -------
WDTVLiveHub Disk WDTVLiveHub
New_Volume Disk New_Volume
Seagate_Backup_Plus_Drive Disk Seagate_Backup_Plus_Drive
IPC$ IPC IPC Service (WDTV LIVE)
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
WDTVKIDS WDTV LIVE
Workgroup Master
--------- -------
MEDIACENTER WDTVKIDS
I'm not sure what parameters are needed. I added a user/pass and changed the workgroup to WORKGROUP. This is what I have so far based on the above info sudo mount -t cifs //192.168.1.95/New_Volume /media/share -o user=user,password=pass,workgroup=WORKGROUP
but it returns mount error(2): No such file or directory
Any help would be appreciated.
/etc/fstab
that could be causing that error? Add the contents of/etc/fstab
to the question. – Nasir Riley Feb 29 '20 at 08:45mount -t cifs -o uid=999,gid=999,guest,iocharset=utf8 //192.168.1.95/New_Volume /media/share
work (as root)? If not, the issue isn't withfstab
it's with yourmount
parameters. – Chris Davies Feb 29 '20 at 23:33mount error(2): No such file or directory
Can we break it down? How can I be sure what the shares address is? I usednet lookup wdtvkids
to get the IP address of the device. You can see the folders above once in the root. I assume that means I could call the share//192.168.1.95/New_Volume
and I usedsudo mkdir /media/share
to create the target folder. The rest I am unsure about. What determines if a user/pass is needed? On the WDTV settings I see workgroup named MEDIACENTER that I cannot remove. Do I need to enter that in the mount code? – rebellelouch Mar 01 '20 at 00:11mount error(2): No such file or directory
no matter what I try? – rebellelouch Mar 01 '20 at 06:56vers=1.0
to the mount options. If that still fails then replace1.0
with2.0
,2.1
,3.0
in turn. Keep the highest value that works. – Chris Davies Mar 01 '20 at 13:21