[SOLVED] synology mounts not showing after NAS reboot

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
sandbagger
Level 3
Level 3
Posts: 197
Joined: Mon Dec 28, 2020 12:36 pm

[SOLVED] synology mounts not showing after NAS reboot

Post by sandbagger »

Hi all

this WAS working until I decided to move the NAS, ok start laughing NOW! Finished? :-)

so I used the ssh to the NAS and shut it down successfully and moved it to a shelf. I started it up and all seemed well. I can ssh into it. The shares seem all there and I haven't changed my fstab file. I was hoping that the shares would show up in my Nemo devices list. What did I miss please?

when I run

Code: Select all

 //192.168.1.100/mycroft /mnt/mycroft cifs username=uuuu,password=pppp,uid=uuuu,noauto,user,nofail 0 0 

I get

bash: //192.168.1.100/mycroft: No such file or directory



Here's the share test from my "client" machine MARVIN so the shares are there.

Code: Select all


dave@marvin:~$ smbclient -L 192.168.1.100 -U dave
Enter WORKGROUP\dave's password:

Sharename Type Comment
--------- ---- -------
homes Disk user home
mycroft Disk 2tb shared folder on tardis
IPC$ IPC IPC Service ()
home Disk Home directory of dave
SMB1 disabled -- no workgroup available

here's my fstab file ( arrived at on this wonderful forum, thanks all)

Code: Select all

cat /etc/fstab
# /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/sda5 during installation
UUID=b4ae72a4-ea4c-4ddc-93ef-45d080a39c27 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=474E-546C /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

//192.168.1.100/mycroft /mnt/mycroft cifs username=USER,password=PPPPP,vers=3.0,iocharset=utf8,rw,sec=ntlmssp 0 0



/mnt/mycroft is present


I tried forcing the issue, nothing doing.

Code: Select all

$sudo mount -a


Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11426
Joined: Tue Feb 03, 2009 10:27 am

Re: synology mounts not showing after NAS reboot

Post by altair4 »

sandbagger wrote: Sat Oct 16, 2021 8:11 am
when I run

Code: Select all

 //192.168.1.100/mycroft /mnt/mycroft cifs username=uuuu,password=pppp,uid=uuuu,noauto,user,nofail 0 0 

I get

bash: //192.168.1.100/mycroft: No such file or directory

[/code]
That string is not something you run in a terminal.
It's something you add to fstab.
And the nauto,user trick only works if the mount point is in your home directory or under /media

here's my fstab file ( arrived at on this wonderful forum, thanks all)

Code: Select all

cat /etc/fstab
...
...
//192.168.1.100/mycroft /mnt/mycroft cifs username=USER,password=PPPPP,vers=3.0,iocharset=utf8,rw,sec=ntlmssp 0 0
You likely will not get write access to that share since you didn't specify a uid parameter but it should work - at least after issuing a "sudo mount -a". Are you sure the NAS is still at 192.168.1.100?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
sandbagger
Level 3
Level 3
Posts: 197
Joined: Mon Dec 28, 2020 12:36 pm

Re: synology mounts not showing after NAS reboot

Post by sandbagger »

Hi there
thank you for looking at this with me. I am "pretty" sure that it's still on 192.168.1.100 as I can ssh into it successfully.

http://192.168.1.100:5000/ gets me to the NAS console and I can see the shares

ALSO when I run this I can "see" the shares on 192.168.1.100

Code: Select all


dave@marvin:~$ smbclient -L 192.168.1.100 -U dave
Enter WORKGROUP\dave's password: 

	Sharename       Type      Comment
	---------       ----      -------
	homes           Disk      user home
	mycroft         Disk      2tb shared folder on tardis
	IPC$            IPC       IPC Service ()
	home            Disk      Home directory of dave
SMB1 disabled -- no workgroup available


I have checked the hard reserved address on the router and that checks out.

what could I possibly have done wrong? I didn't change anything.

Am I supposed to restart the share on the Synology? All I did was to push the power on button. The DSM says everything is healthy.
sandbagger
Level 3
Level 3
Posts: 197
Joined: Mon Dec 28, 2020 12:36 pm

Re: synology mounts not showing after NAS reboot

Post by sandbagger »

I checked the logs and saw the attached SMB1 not permitted errors.


I don't want to use SMB1 as I "think" it's too slow, remember I know nothing about this, I wanted to use SMB3 and SMB1 is turned OFF on the NAS!
why has MARVIN ( my lm 20.2 box ) gone back to SMB1 after a reboot of both Marvin ( my LM20.2 box 192.168.1.202 ) and TARDIS ( the nas 198.168.1.100 ).

thanks
Attachments
tardis erro.jpg
altair4
Level 20
Level 20
Posts: 11426
Joined: Tue Feb 03, 2009 10:27 am

Re: synology mounts not showing after NAS reboot

Post by altair4 »

CIFS doesn't connect using SMB1. It connects using SMB2.1 to SMB3.X depending on how the server ( NAS ) is set up.

The only way to have CIFS connect with SMB1 is if you force it and you would know if you did that.

[1] Create a mount point:

Code: Select all

sudo mkdir /Temp
[2] Temporarily mount the share to that mount point in verbose mode:

Code: Select all

sudo mount -t cifs -vvv //192.168.1.100/mycroft /Temp -o username=USER,password=PPPPP,uid=dave
[3] Then check the contents of /Temp:

Code: Select all

ls -l /Temp
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
sandbagger
Level 3
Level 3
Posts: 197
Joined: Mon Dec 28, 2020 12:36 pm

Re: synology mounts not showing after NAS reboot

Post by sandbagger »

" and you would know if you did that." I think you are confusing me with someone competent :-)

I did the below

Code: Select all

dave@marvin:~$ sudo mkdir /Temp
dave@marvin:~$ sudo mount -t cifs -vvv //192.168.1.100/mycroft /Temp -o username=dave,password=************,uid=dave
mount.cifs kernel mount options: ip=192.168.1.100,unc=\\192.168.1.100\mycroft,uid=1000,user=dave,pass=********
It "seemed" to work as this is what is on //192.168.1.100/mycoft

Code: Select all

dave@marvin:~$ ls -l /Temp
total 32
drwxr-xr-x 2 dave root     0 Oct 10 10:17  camera
drwxr-xr-x 2 dave root     0 Oct  8 21:36  Public
drwxr-xr-x 2 dave root     0 Oct 13 08:28 '#recycle'
-rwxr-xr-x 1 dave root 31969 Sep  1 12:13 'useful info.csv'

What do I do now? The NAS box "seems" to be claiming that MARVIN (192.168.1.202) is attempting to use SMB for some reason. Is samba anything to do with this?
altair4
Level 20
Level 20
Posts: 11426
Joined: Tue Feb 03, 2009 10:27 am

Re: synology mounts not showing after NAS reboot

Post by altair4 »

[1] Go to /etc/fstab and change this:
//192.168.1.100/mycroft /mnt/mycroft cifs username=USER,password=PPPPP,vers=3.0,iocharset=utf8,rw,sec=ntlmssp 0 0
To this:

Code: Select all

//192.168.1.100/mycroft /media/mycroft cifs username=USER,password=PPPPP,uid=dave,noauto,user 0 0
THen reset systemd:

Code: Select all

sudo systemctl daemon-reload

Code: Select all

sudo systemctl restart remote-fs.target
If the gods look favorably upon you you should have an icon labeled "mycroft" on the side panel of your file manager.

If you click it it should show you the contnets of the share.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
sandbagger
Level 3
Level 3
Posts: 197
Joined: Mon Dec 28, 2020 12:36 pm

Re: synology mounts not showing after NAS reboot

Post by sandbagger »

Don't care what the others say, you're great :-)


Spot on. It's working like a champ. Thank you for taking the time.

So you changed /mnt/mycroft to /media/mycroft and it worked??? How was it working before?
Locked

Return to “Storage”