I need to access Nas Public folder from linux station. After updating Ubuntu Linux Station and getting fw update, links to NASPublic folder are broken.
in Ubuntu linux Station
/share2 folder is empty and
/nas_share folder contains only broken link to /share2
I'm no able to restore link becaus I'm not so expert
Could someone help me please?
Just found this is on purpose. I am reading latest LInux Station notes. "- Removed NAS shortcut in Ubuntu remote desktop. " Does anyone know how to re-create this?
I sent a ticket in on this and QNAP essentially said sorry but too bad. Luckily someone on Reddit helped out. Here is how to re-create a link that ends up in the admin user's home directory.
Yep, same situation for me. /.share folder is completely empty, and symlinks are broken to network folders. Really, really wish the Linux Station dev team would stop changing this behavior; I've had to fix these broken links a half-dozen times in the past few years. Serves me right for updating...
bereberedu wrote: ↑Fri Feb 11, 2022 2:01 am
Yep, same situation for me. /.share folder is completely empty, and symlinks are broken to network folders. Really, really wish the Linux Station dev team would stop changing this behavior; I've had to fix these broken links a half-dozen times in the past few years. Serves me right for updating...
Okay, I've got things back up and running. I'm very much a novice when it comes to networking, servers, and linux, so this might be a bit sledgehammery, but here's what I had to do:
First, I had to go back to manually mounting the QNAP folders in Ubuntu. To do that, I first created a credentials file using the terminal: "sudo gedit /root/.smbcredentials" File content:
username=[QNAP USERNAME]
password=[QNAP PASSWORD]
Other guides online seems confident in the security of that info even though it's stored in plain text (I assume because it's in the root directory). Then I added the following lines to /etc/fstab (by typing "sudo gedit /etc/fstab" in the terminal):
Copy and paste that multiple times if you want to mount multiple directories. If you don't know your Ubuntu user or group, type "id" into the terminal. I'm sure some of the options I included were redundant or unnecessary, but I tried dozens of permutations, and this is the first one that worked, so I ain't touching it lol.
Once you've saved both, Ubuntu should mount the drives upon system startup. If you want to manually mount them without restarting, type "sudo mount -a" in terminal.
I ran into one more problem after doing this: some of my QNAP folder permissions were broken and didn't allow me to make edits in Ubuntu. To fix that, I had to go into my QNAP web interface, open File Station, select the top directory of the folder that was having permissions issues, right-click -> Properties -> Permissions. Make sure Owner, Group, and Others have Read, Write, and Execute all checked, then check "Apply changes to the folder(s), subfolder(s), and file(s)." Now you should be able to edit the mounted server folders from inside of Ubuntu, and other programs like qBittorrent should be able to make changes too.
Whoof. Hope at least some of that is helpful. YMMV, depending on your system and config. Hit me up if you have any questions, and I'll try my hardest to help out.