February 10, 20251 yr Hi All, I'm trying to get Linux to auto mount my Unraid shares on startup. I have cifs-utils installed. My fstab file contains these two lines: //192.168.50.110/Disk5 /mnt/Disk5 cifs _netdev,noserverino,credentials=/root/.smbcred,uid=1000,gid=1000 0 0 //192.168.50.110/Disk6 /mnt/Disk6 cifs _netdev,noserverino,credentials=/root/.smbcred,uid=1000,gid=1000 0 0 In my .smbcred credentials file I have used the unraid user and password that I've configured access to the shares for, and domain=WORKGROUP. But I'm wondering if I should be using the username and password of my Linux user login? Also does it matter if my Linux username and password are different to that of the user that I've set up in Unraid? If I sudo mount -a both drives will mount. Does that mean my .smbcred credentials are ok? However when I restart the drives will not auto mount. Can anyone help? Does anything look incorrect with my fstab entries? Thanks Edited February 10, 20251 yr by Dominoes0522
February 10, 20251 yr Author Solution Based on the info HERE I changed to: //192.168.50.110/Disk5 /mnt/Disk5 cifs x-systemd.automount,credentials=/root/.smbcred 0 0 //192.168.50.110/Disk6 /mnt/Disk6 cifs x-systemd.automount,credentials=/root/.smbcred 0 0 This now works for me :)
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.