this post was submitted on 15 Jan 2024
8 points (100.0% liked)

Selfhosted

49204 readers
1474 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hi all,

I recently decided to make the switch from Windows to Ubuntu (Pop_OS) and I'm struggling to setup my NAS on my new OS.

I can mount my folders without issues and access them on different file managers (Nemo, Dolphin), but I'm having issues accessing them from my installed applications.

For example if I want to modify tags for my audio files (which takes 80% on my Synology drives) I cannot find them in the application(s).

I can't right click on the files and use 'open with' and I cannot drag n' drop the files to the tag editor, so I try to find the with the applications:

  • Ex Falso:  no network share is available on the sidebar / navigation bar, nothing in 'other locations'
  • Puddletag: same
  • NTag : same

How are we supposed to make this work? I just want to be able to access my files without having to download them on my local disk and send them back to my Synology every time I want to do this.

top 12 comments
sorted by: hot top controversial new old
[–] Turbo@lemmy.ml 3 points 1 year ago (1 children)

install the NFS client package.

Have a look at adding a line to the

/etc/fstab file. Then reboot to take effect.

Check this out:

https://linuxize.com/post/how-to-mount-an-nfs-share-in-linux/

[–] nameisnotimportant@lemmy.ml 2 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks! That's a great reference and I'll keep that in my bookmarks 👍

Eventually (with help from others) I mounted the share with

sudo mount -o rw,soft,intr,nfsvers=4 192.your.NAS.IP:/volumeNAME/some-path /nfs

(I don't put it on my fstab to save a bit of wear on my NAS)

Cheers!

[–] Turbo@lemmy.ml 1 points 1 year ago (1 children)

You're welcome.

I've not thought about nor worried about wear and tear. I did a search but didn't find anything. Are you just being cautious? Or perhaps you only access files occasionally?

Either way, you may want to creat a bash alias in your .bashrc file so that you can type a simple command like mountnas or 'nas' and you might have another to run the umount command to unmount it.

Since my NAS runs my camera recordings and backups and some containers, I figure wear from mounting conveniently shouldn't be an issue...

Cheers!

[–] nameisnotimportant@lemmy.ml 2 points 1 year ago (1 children)

Hi again !

You guessed right: I indeed use those files on my computer very occasionally and I'd rather make a shortcut / alias (like you rightly suggested) than mounting the share at every boot. True, if you have quality disks (which are getting more difficult to find nowadays) you shouldn't be worried about wear.

On a side note I could do my tag editing just fine, thanks again for your help!

[–] Turbo@lemmy.ml 2 points 1 year ago

Cheers! Thanks for your reply.

Lemmy folks are nicer folks :)

Have a good day

[–] sabreW4K3@lemmy.tf 2 points 1 year ago (1 children)

Just Mount it normally

sudo apt-get install nfs-common
sudo mkdir /nfs
sudo mount -o rw,soft,intr,nfsvers=3 192.168.0.2:/mnt/Public /nfs
[–] nameisnotimportant@lemmy.ml 0 points 1 year ago (1 children)

Thanks for your help! I have to try this at home later today.

Do I have to do this if my network shares are already mounted on the file manager? For example I use Nemo and my NAS is shown on the left side and I felt like my files were already mounted on the system (there's a "eject icon next to the name of the share).

[–] Diplomjodler@feddit.de -1 points 1 year ago

You also need to set up NFS access on your NAS.

[–] Presi300@lemmy.world 2 points 1 year ago (1 children)

I'd try opening a nfs share along side the smb one. It's much better supported on linux.

[–] nameisnotimportant@lemmy.ml 1 points 1 year ago

You're absolutely right! I'm not super tech-savvy and I was convinced that those file sharing protocols were more or less equivalent (I only tried to compare in terms of speed). I never payed much attention to it because my other computers were doing fine with one or the other.

[–] MajorHavoc@programming.dev 0 points 1 year ago (1 children)

Keep in mind that support for SMB is technically either available or not, in each so app. I don't believe anything hides SMB from apps, on Debian derivatives, by default. (It seems inconvenient, but, anecdotally, it causes fewer headaches. Access over SMB is different enough from local storage that lying to apps about it causes issues...specifically the kind of issues we see with network shares on Windows.)

SMB is old enough that a huge number of apps support it, but it's still extra code that each app might not include.

For apps that don't support SMB, I sync a folder between Synology and a local drive, using the sync app that Synology provides.

https://kb.synology.com/en-us/DSM/tutorial/How_to_sync_files_between_Synology_NAS_and_your_computer_using_Drive_desktop

[–] nameisnotimportant@lemmy.ml 1 points 1 year ago

Thank you for your insight, I was able to access the share with several applications using a mount point, so I can keep everything in the same place.