Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Auto mount of SMB shares via /etc/fstab not working

Featured Replies

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 by Dominoes0522

Solved by Dominoes0522

  • 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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.