Author Topic: Auto mounting nas to mint19  (Read 61 times)

Offline BrianP

  • Posting Member
  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Auto mounting nas to mint19
« on: September 26, 2018, 02:27:04 pm »
I am having an issue auto mounting my nas server directory/files to mint-19 Fresh install.

I had no issues with mint 18

my fstab looks like this

# /etc/fstab: static file system information.

UUID=74bd0dac-5a43-439c-9901-6a176891cd3b /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=6189a02b-a123-4d13-ac5e-de60f95894fa none            swap    sw              0       0
//192.168.1.4/Volume_1 /media/Plex cifs guest 0 0          <-------- this mount FAILS in mint19
//192.168.1.30/e /media/Plex2 cifs username=brian,password=xxxxx  0 0  <--- this mounts ok
//192.168.1.30/f /media/Plex3 cifs username=brian,password=xxxxx  0 0   <--- this mounts ok

The funny thing is if you select the file folder on the desktop and click on network all my server appear and will connect.

But will not auto mount

also will not mount with
sudo mount -a        command

Something has changed from mint 18 to 19 with the guest mount.


the 192.168.1.4 is a dlink dns-320 nas box running some sort of linux code  <--this one fails

the 192.168.1.30  is a windows server running hw raid with 2 raid 1 mirrors <-- works fine


I have even created a new id on the nas box with a password still no luck.

any help would be appreciated.

Offline buster

  • Posting Member
  • Sr. Member
  • *
  • Posts: 277
  • Karma: +0/-0
    • View Profile
Re: Auto mounting nas to mint19
« Reply #1 on: September 26, 2018, 09:01:23 pm »
"I had no issues with mint 18"

Probably has nothing to do with your issues, but things got so unpleasant I rolled my 19 back to 18. Couldn't see a legitimate reason to live with the inconvenience.

Offline Jason Wallwork

  • Administrator
  • Hero Member
  • *****
  • Posts: 1329
  • Karma: +3/-0
  • I'm running for City Council in Peterborough.
    • View Profile
    • Jason Wallwork for Councillor for Otonabee Ward
Re: Auto mounting nas to mint19
« Reply #2 on: September 26, 2018, 09:29:33 pm »
Perhaps you could try specifying the version number like suggested here in the release notes for Ubuntu 18.04 (which LM 19 is based on):

https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes#Default_CIFS.2FSMB_protocol_version_change_in_CIFS_mounts
Primary: Desktop Tower with Kubuntu 18.04 on i5-3470 3.2 Ghz with 12 GB RAM, 64 GB SSD for OSes, 4 TB RAID-10 array for programs/data

Secondary/Test: Toshiba Satellite Ultrabook Z830-00K w/ Linux Du Jour, (i3-2367M 1.4 GHz, 4GB DDR3, 128GB SDD)

Offline BrianP

  • Posting Member
  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Auto mounting nas to mint19
« Reply #3 on: September 27, 2018, 10:51:23 am »
I tried the version thing last night ...It did not work.  :-\
.
So I figured I try again today.. cold re-boot.
.
//192.168.1.4/Volume_1 /media/Plex cifs guest,uid=1000,vers=1.0,auto,user 0 0

It worked like a champ.. thanks

Offline Jason Wallwork

  • Administrator
  • Hero Member
  • *****
  • Posts: 1329
  • Karma: +3/-0
  • I'm running for City Council in Peterborough.
    • View Profile
    • Jason Wallwork for Councillor for Otonabee Ward
Re: Auto mounting nas to mint19
« Reply #4 on: September 27, 2018, 02:14:37 pm »
Glad it worked for you. I hope it stays working :)

I personally find cifs so unpredictable personally. I can share files from one machine to another one day, do the exact same thing another day and it doesn't work. Sometimes just logging back out and again works. I think it has to do with periodic polling for the which computer is the master browser and so on. Editing the smb.conf file on the always-on computer (probably the server) so that's it's always the master can fix this from what I understand but it's been years since I've done that kind of stuff.
Primary: Desktop Tower with Kubuntu 18.04 on i5-3470 3.2 Ghz with 12 GB RAM, 64 GB SSD for OSes, 4 TB RAID-10 array for programs/data

Secondary/Test: Toshiba Satellite Ultrabook Z830-00K w/ Linux Du Jour, (i3-2367M 1.4 GHz, 4GB DDR3, 128GB SDD)

Offline ssfc72

  • Posting Member
  • Hero Member
  • *
  • Posts: 691
  • Karma: +0/-0
    • View Profile
Re: Auto mounting nas to mint19
« Reply #5 on: September 28, 2018, 04:05:36 am »
Wow! Jason, that sure is amazing that you knew that fix!
You are entitled to wear those Guru glasses, at the next Mug, get together. :-)
Mint 18.3 on an HP Pavilion X360, 11" k120ca notebook
Cellphone ZTE Axon 7 Mini, PCMobile pay as you go

Offline Jason Wallwork

  • Administrator
  • Hero Member
  • *****
  • Posts: 1329
  • Karma: +3/-0
  • I'm running for City Council in Peterborough.
    • View Profile
    • Jason Wallwork for Councillor for Otonabee Ward
Re: Auto mounting nas to mint19
« Reply #6 on: September 28, 2018, 11:27:55 pm »
I'll tell you a secret, Bill, but you can't tell anyone. I had no idea what the fix was. I just figured it out like this:

  • Something changed in LM 19 that broke CIFS, which is basically the fancy name for windows network sharing. I noted that because BrianP said he had no problem with it in LM 18.
  • I remembered that every new version of a distro is usually released with known issues that they either tell you about in the install or on their website. I thought maybe this was one of them and checked the release notes on the LM website.
  • None of the known issues in the release notes on LM 19 mentioned anything with cifs/samba or windows networking. But it did mention that LM 19 is based on Ubuntu 18.04 so suggested also checking those release notes.
  • Did that and sure enough in the release notes for 18.04 it mentioned an issue with mounting remote windows shares.
  • It was sheer luck that it happened to solve the issue that BrianP mentioned.
Moral of the story - read the release notes for a distro or at least scan over them. The Ubuntu 18.04 notes were quite extensive but there was a table of contents to the right to look at.

I'm not very good at remembering solutions or fixes but I'm great at systematic steps for solving problems, which even if I spend hours trying to fix, I will probably forget completely about within a few months :)
Primary: Desktop Tower with Kubuntu 18.04 on i5-3470 3.2 Ghz with 12 GB RAM, 64 GB SSD for OSes, 4 TB RAID-10 array for programs/data

Secondary/Test: Toshiba Satellite Ultrabook Z830-00K w/ Linux Du Jour, (i3-2367M 1.4 GHz, 4GB DDR3, 128GB SDD)