Hi, I am a noob and I am using Ubuntu Mate. I have installed Caja and can see my shares on my NAS via Caja explorer, however I am trying to locate the same share and it’s files within it by using programs like MP3 Diag, Musicbrainz Picard etc… ub which part of the directory tree do I locate network share?
My NAS also requires authentication in order to access the files.
Any help would be greatly appreciated.
Hi Robin,
try the following it is for Nautilus but will work with Caja too:
https://help.ubuntu.com/stable/ubuntu-help/nautilus-connect.html
Hi Wolfman, thanks but maybe I may have been unclear on what I am looking for, so I will try and be a bit more descriptive.
I can see and access my network share via a file manager no problem, however when I try and locate my music, say for example in the case Musicbrainz Picard, I am not sure of the where abouts in my directory structure I would find the share.
They window that I am trying to locate the share would list the following:
/
home
bin
home
var
usr
mnt
www
etc
so on so forth.
Sorry this is only a concise list of the directory tree, and can’t remember the others, but whereabouts would I find my share, and therefore my files from this structure.
I have looked everywhere but I am not able to see it anywhere.
Thanks again.
HI Robin,
have you looked in “Other locations” in your Caja home tree?, it should show your networks!.
I am not looking to find it in Caja. Caja shows the network share just fine. I will upload screenshots tomorrow night. I have a feeling I possibly need to mount the share and make it persistant so the share is viewable when browsing for it via a program
I hope this clarifies where abouts I am looking at.
This is not a screenshot I have taken but displays very much where I am looking to find my files from my network share to load into the program.
When you access a Samba (and I assume other network filesystems like NFS) share, it’s mounted as a volume. In some of the file open dialogs used by applications, the shares should be displayed as volumes in the same way as CD-Roms and such (it’s the case with Picard but I haven’t checked MP3Diags). If it’s not the case with some, you would find them in /run/user/1000/gvfs, where you’ll see a folder with a name like “smb-share:server=xxx,share=yyy” (where xxx is the name of the server and yyy the name of the share). Note that the 1000 in the path is the id of the first user created on Ubuntu: if you have multiple users and you’re not on the first account, it will be a different number.
If you have to easily access your network shares on your session, it might be a good idea to mount them at system startup in the directory you want through the fstab, rather than mounting them manually every time. Of course, they would have to be always accessible (i.e. on a desktop it’s ok but on a laptop that might not always be connected to your local network, it’s probably better to mount them manually).
Thanks for the info Wolfman. I will read up on that tomorrow
Thanks Terzag, I will look tomorrow under that location and get back to you. Very informative.
Thanks Terzag, managed to get mp3diags to scan my files however not managed yet to permanently mount the shares as per wolfman’s instructions.
Give us the content of your fstab file.
/etc/fstab: static file system information.
Use ‘blkid’ to print the universally unique identifier for a
device; this may be used with UUID= as a more robust way to name devices
that works even if disks are added and removed. See fstab(5).
/dev/mapper/ubuntu–mate–vg-root / ext4 errors=remount-ro 0 1
/boot was on /dev/sda1 during installation
UUID=837742e7-298f-48d8-a1bc-366d4cd59fe9 /boot ext2 defaults 0 2
/dev/mapper/ubuntu–mate–vg-swap_1 none swap sw 0 0
Well, there’s nothing in your fstab that mounts shares so it’s quite normal that it doesn’t work.
What have you done exactly from Wolfman’s link? Did you install cifs-utils? Have you created directories that’ll be used as mount points for the shares? How many shares do you have to mount and what are their names?
/etc/fstab: static file system information.
Use ‘blkid’ to print the universally unique identifier for a
device; this may be used with UUID= as a more robust way to name devices
that works even if disks are added and removed. See fstab(5).
/dev/mapper/ubuntu–mate–vg-root / ext4 errors=remount-ro 0 1
/boot was on /dev/sda1 during installation
UUID=837742e7-298f-48d8-a1bc-366d4cd59fe9 /boot ext2 defaults 0 2
/dev/mapper/ubuntu–mate–vg-swap_1 none swap sw 0 0
//personalcloud/deadlyhydra /media/windowsshare cifs credentials=/home/robin /.smbcredentials,iocharset=utf8,sec=ntlm 0 0
also created a /.smbcredentials file as per guide on https://wiki.ubuntu.com/MountWindowsSharesPermanently however when running sudo mount -a I get:
robin@robin-EQUIUM-A110:~$ sudo mount -a
Password for root@//192.168.1.70/deadlyhydra: **********
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
It’s possible that the system can’t read the .smbcredentials that is in your home folder. Have you tried with username and password in plain text in the fstab like in the original examples?
Also, according to this thread, there’s been changes to the way Samba authenticates and the Ubuntu documentation might not be up to date. Try “ntlmssp” instead of “ntlm” and see if it changes anything. You can also try to remove the sec option altogether.
Just to be sure, you created the /media/windowsshare directory, right?
According to some other thread I found on a french forum, this error message can also be triggered by two causes:
-
permissions on the mount point: try to give it complete permissions with
sudo chmod 777 /media/windowsshare
-
the need to add the domain name to the username in the form username=DomainName/UserName (or MachineName if there’s no domain). It seems to depend on the OS with the share, so in your case it might depend of the NAS model.
Ok Terzag, bare with me… I have changed ntlm to ntlmssp save fstab and still not able to mount, I get the same error.
Changed the permission on the /media/windowsshare, and same error also.
When you say to provide the credentials in plain text, do you mean to insert them in fstab, rather than having a .smbcredentials file?
Yes, just put username=xxx,password=yyy in the fstab options as in the original example. Just to be sure that the error doesn't come from the .smbcredentials file.
Also try to remove the sec option altogether to see if it changes anything. Basically, have the line in your fstab like this:
//personalcloud/deadlyhydra /media/windowsshare cifs username=xxx,password=yyy 0 0
ok, I think we are making progress now thanks. I am now ableto mount the share using sudo mount -a, however when I reboot the share doesn’t mount automatically again and therefore have to do sudo mount - a again