You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Accessing a NAS device - Sustaining Credentials

Author (Read 9969 times)

0 Members and 1 Guest are viewing this topic.

Re: Accessing a NAS device - Sustaining Credentials
« Reply #18 on: December 28, 2019, 12:19:55 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Source - https://forums.linuxmint.com/viewtopic.php?t=221115#p1161236

Try this format:

Code: [Select]
//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.'
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #17 on: December 28, 2019, 12:05:24 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
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
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #16 on: December 27, 2019, 03:24:10 PM »
 

allen04084

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Code: [Select]
allen  /  etc  cd /home/allen/tim
 allen  ~  tim  ls
 1966StudebakerBillofSale.doc   Focusrite_install       
 allen  ~  tim 
« Last Edit: December 27, 2019, 04:32:35 PM by allen04084 »
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #15 on: December 27, 2019, 03:19:50 PM »
 

allen04084

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
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.
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #14 on: December 27, 2019, 03:16:04 PM »
 

allen04084

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
without vers=1.0 I get "invalid arguement" when sudo mount -a

Code: [Select]
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  
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #13 on: December 27, 2019, 03:06:43 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Will it not work without that entry?

Sent from my Mobile phone using Tapatalk

 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #12 on: December 27, 2019, 03:02:54 PM »
 

allen04084

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #11 on: December 27, 2019, 02:59:08 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Also, make sure there is 1 blank line at the end of the fstab file.
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #10 on: December 27, 2019, 02:56:07 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
I see 'vers=1.0,' in your fstab too, what's that for?
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #9 on: December 27, 2019, 02:54:35 PM »
 

allen04084

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
I know. Once it works like it is, I'll add the credential files. For now, this eliminates any additional error. Troubleshooting 101

Quote
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
« Last Edit: December 27, 2019, 02:58:53 PM by allen04084 »
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #8 on: December 27, 2019, 02:51:00 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
You haven't created the .smbcredentials in your home folder. Please do not miss ANY steps.
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #7 on: December 27, 2019, 02:40:10 PM »
 

allen04084

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
Code: [Select]
# /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
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #6 on: December 27, 2019, 02:24:14 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Show me your entire fstab file please.

Sent from my Mobile phone using Tapatalk

 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #5 on: December 27, 2019, 02:06:16 PM »
 

allen04084

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile
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
« Last Edit: December 27, 2019, 02:28:45 PM by allen04084 »
 

Re: Accessing a NAS device - Sustaining Credentials
« Reply #4 on: December 27, 2019, 12:57:20 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8775
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
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

 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section