Linux Lite Forums
Hardware - Support => Network => Topic started by: allen04084 on October 11, 2019, 01:19:40 PM
-
I just installed Linux Lite. Very nice so far. I followed "Accessing a NAS device" with success, selecting "connect as user" + NAS creds +"Remember forever" for the shares, and then created shortcuts that appear under PLACES. I see my NAS shares and files no issue. Here's the question: when logging back in, the shortcuts appear no problem, but they require inputting the NAS credentials all over again. Is there a way to connect these shares at login so I don't need to re-enter them every time I start the system up? Thanks!
-
There is some command line involved. Be VERY careful editing the fstab file, make a backup of it first! One character wrong or out of place will leave your computer unbootable to the OS desktop.
https://unix.stackexchange.com/questions/178187/how-to-edit-etc-fstab-properly-for-network-drive (https://unix.stackexchange.com/questions/178187/how-to-edit-etc-fstab-properly-for-network-drive)
-
So, fstab specifies mount points, and Thunar appears to use the following location for mount points, /run/user/1000/gvfs/'smb-share:server=shareIP,share=sharename', once smb://serverIP is entered, and creds are entered in Thunar and the desired share is selected. How does this reconcile with fstab?? Am I asking the impossible for the file manager to automount the share with the credentials supplied via Thunar. If I am, then fine, does the automounting of NAS shares in LL preclude using Thunar as the file manager, in favor of a file manager that can use fstab ?? If so, is there another file manager suggested to use with LL?? This could be a deal breaker. Happy New year!!!
-
It's very simple. You create a folder in your home directory, let's call it 'nas'. Then edit the fstab to something like, what the article gives an example of. Then create your .smbcredentials in your home folder as also shown in the article. Boom, Bob's your uncle. All done. When you Reboot, you will not be asked for any credentials if you have followed the tutorial to the letter.
Sent from my Mobile phone using Tapatalk
-
When I make that fstab change and reboot, wireless networking never connects. After restoring the original fstab file, wireless networking is normal. I fail to see the connection here, but that's what happens.
However, after making the fstab change and then sudo mount -a BEFORE rebooting (while I still have the wireless connection), I am able to see the NAS share in Thunar
-
Show me your entire fstab file please.
Sent from my Mobile phone using Tapatalk
-
# /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).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=87655ba2-fd37-400b-9a3c-b4705978eb57 / ext4 errors=remount-ro 0 1
/swapfile none swap sw 0 0
//192.168.0.1/tim /home/allen/tim cifs vers=1.0,username=xxxx,password=xxxxxxxxx,iocharset=utf8,sec=ntlm 0 0
-
You haven't created the .smbcredentials in your home folder. Please do not miss ANY steps.
-
I know. Once it works like it is, I'll add the credential files. For now, this eliminates any additional error. Troubleshooting 101
However, after making the fstab change and then sudo mount -a BEFORE rebooting (while I still have the wireless connection), I am able to see the NAS share in Thunar
was added to the entry above
-
I see 'vers=1.0,' in your fstab too, what's that for?
-
Also, make sure there is 1 blank line at the end of the fstab file.
-
NAS specific cifs version
https://askubuntu.com/questions/1032237/why-is-mount-cifs-not-working-in-fstab-any-more-after-upgrading-from-16-04-to-18
-
Will it not work without that entry?
Sent from my Mobile phone using Tapatalk
-
without vers=1.0 I get "invalid arguement" when sudo mount -a
allen / etc sudo nano fstab
allen / etc sudo mount -a
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
allen / etc nano fstab
allen / etc sudo nano fstab
allen / etc sudo mount -a
allen / etc
-
As mentioned previously, I CAN see the NAS share in Thunar now - BEFORE I reboot. Once I reboot, wireless net will not connect. Once I change fstab to the unmodified fstab, wireless connection returns after reboot.
-
allen / etc cd /home/allen/tim
allen ~ tim ls
1966StudebakerBillofSale.doc Focusrite_install
allen ~ tim
-
A rare situation. I cannot find any information online about this specific situation. My gut tells me it's systemd related. Do a fresh reboot, then paste your dmesg contents here. /var/log/dmesg
-
Source - https://forums.linuxmint.com/viewtopic.php?t=221115#p1161236 (https://forums.linuxmint.com/viewtopic.php?t=221115#p1161236)
Try this format:
//192.168.0.1/tim /media/tim cifs username=smbuser,password=smbuserpw,uid=1000,noauto,user,vers=3.0 0 0
' ** Make sure your mount point is under /media - this will trigger a udisks event that makes it work as I describe below.'