Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

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.

mount cifs from fstab

Featured Replies

I have a little problem:

 

my fstab:

 

root@osirisBpiM3:~ # cat /etc/fstab

/dev/mmcblk0p2 / ext4 defaults,noatime,nodiratime,commit=600,errors=remount-ro 0 1
tmpfs /tmp tmpfs defaults,rw,nosuid 0 0
/var/swap none swap sw 0 0
//192.168.0.11/media /mnt/openelec/media cifs iocharset=utf8,credentials=/root/.smbcredentials,uid=1000 0 0
//192.168.0.11/media2 /mnt/openelec/media2 cifs iocharset=utf8,credentials=/root/.smbcredentials,uid=1000 0 0
//192.168.0.11/big850gig /mnt/openelec/big850gig cifs iocharset=utf8,credentials=/root/.smbcredentials,uid=1000 0 0

//192.168.0.2/C$ /mnt/sophie/c cifs iocharset=utf8,credentials=/root/.smbcredentialssophie,uid=1000 0 0
//192.168.0.2/D$ /mnt/sophie/d cifs iocharset=utf8,credentials=/root/.smbcredentialssophie,uid=1000 0 0
//192.168.0.2/E$ /mnt/sophie/e cifs iocharset=utf8,credentials=/root/.smbcredentialssophie,uid=1000 0 0

 

I can mount my disks without problems from command or with 'mount -a', but ... after boot - nothing .

The parameters 'ntlm' or 'ntmlv2' in fstab does not help

 

root@osirisBpiM3:~ # dmesg | grep CIFS
[   19.723100] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3
[   20.030750] CIFS VFS: Error connecting to socket. Aborting operation
[   20.030765] CIFS VFS: Error connecting to socket. Aborting operation
[   20.030820] CIFS VFS: Error connecting to socket. Aborting operation
[   20.058421] CIFS VFS: cifs_mount failed w/return code = -111
[   20.058445] CIFS VFS: cifs_mount failed w/return code = -111
[   20.090249] CIFS VFS: cifs_mount failed w/return code = -111
[   20.730759] CIFS VFS: cifs_mount failed w/return code = -112
[   20.730766] CIFS VFS: cifs_mount failed w/return code = -112
[   20.731042] CIFS VFS: cifs_mount failed w/return code = -112

 

 

root@osirisBpiM3:~ # cat /proc/fs/cifs/DebugData
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 1.78
Features:
Active VFS Requests: 0
Servers:
1) Name: 192.168.0.2  Domain: DOM Uses: 3 OS: Windows 7 Ultimate 7601 Service Pack 1
        NOS: Windows 7 Ultimate 6.1     Capability: 0x1e3fc
        SMB session status: 1   TCP status: 4
        Local Users To Server: 1 SecMode: 0x3 Req On Wire: 0
        Shares:
        1) \\192.168.0.2\E$ Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0xc700ff
PathComponentMax: 255 Status: 0x1 type: DISK    DISCONNECTED

        2) \\192.168.0.2\D$ Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0xc700ff
PathComponentMax: 255 Status: 0x1 type: DISK    DISCONNECTED

        3) \\192.168.0.2\C$ Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0xc700ff
PathComponentMax: 255 Status: 0x1 type: DISK    DISCONNECTED

        MIDs:

2) Name: 192.168.0.11  Domain: WORKGROUP Uses: 3 OS: Unix
        NOS: Samba 3.6.25       Capability: 0x80f3fd
        SMB session status: 1   TCP status: 4
        Local Users To Server: 1 SecMode: 0x2 Req On Wire: 0
        Shares:
        1) \\192.168.0.11\big850gig Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0x1000f
PathComponentMax: 255 Status: 0x1 type: DISK    DISCONNECTED

        2) \\192.168.0.11\media2 Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0x1000f
PathComponentMax: 255 Status: 0x1 type: DISK    DISCONNECTED

        3) \\192.168.0.11\media Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0x1000f
PathComponentMax: 255 Status: 0x1 type: DISK    DISCONNECTED

 

 

Any idea?

 

 

Sorrry @tkaiser it is the moronic 3.4.39-BPI-M3-Kernel from sinovoip ;)

 

Great

If 'mount -a' does the job you could have a look whether adding '_netdev' to the parameters does the trick (supposed to delay the mount of these mountpoints until network is ready) or add the following to /etc/rc.local

sleep 10 && mount -a

i would use the following syntax in my /etc/fstab file

//<server>/<share> <mount point> cifs rw,_netdev,user=<username>,password=<password>,uid=<uid>,gid=<gid> 0 0
  • Author

@Gravelrash

before google 'is born'  I used the yahoo... didn't work

 

@tkaiser

'_netdev' brings nothing

'mount -a' work for me even w/o sleep..., but - this solution does not satisfy me , I have to look further reason. ...

 

Great

Guest
This topic is now closed to further replies.

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.