Jump to content
  • 0

mount cifs from fstab


eternalWalker
 Share

Question

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

When discussing a problem make sure to provide full logs!

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...