Results 1 to 3 of 3

Thread: cannot mount cifs share from Knoppix 7.2.0 client - works on Knoppix 7.0.2

  1. #1
    Member registered user
    Join Date
    Dec 2006
    Posts
    44

    cannot mount cifs share from Knoppix 7.2.0 client - works on Knoppix 7.0.2

    Mounting a "Windows" type share on a Knoppix 7.2.0 client fails :

    knoppix@Microknoppix:~$ /usr/bin/sudo /bin/mount //srv1/downloads /mnt --verbose -t cifs -o rw,file_mode=0640,dir_mode=0755,user=freddy,passwo rd=MYPASS,uid=1000
    mount.cifs kernel mount options: ip=192.168.1.21,unc=\\srv1\downloads,file_mode=064 0,dir_mode=0755,uid=1000,user=freddy,pass=********
    mount error(13): Permission denied
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    knoppix@Microknoppix:~$ echo $?
    32

    KNOPPIX 7.2.0 DVD version booted with
    KERNEL linux
    INITRD minirt.gz
    APPEND lang=en apm=power-off nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=localtime keyboard=dk xkeyboard=dk no3d noimage


    The share is on a Synology DS209j NAS running the latest DSM 4.2-3211. When I first met this problem, the NAS was running DSM 4.0, so I upgraded the NAS to DSM4.2, but the problem remained.

    When I boot Knoppix 7.0.2 I can mount the share, regardless of DSM version. On Knoppix 7.0.2 it says:

    knoppix@Microknoppix:~$ /usr/bin/sudo /bin/mount //srv1/downloads /mnt --verbose -t cifs -o rw,file_mode=0640,dir_mode=0755,user=freddy,passwo rd=MYPASS,uid=1000
    mount.cifs kernel mount options: ip=192.168.1.21,unc=\\srv1\downloads,file_mode=064 0,dir_mode=0755,uid=1000,ver=1,user=freddy,pass=** ******
    unable to add mount entry to mtab
    error 22 detected on close of mtab
    unable to add mount entry to mtab

    knoppix@Microknoppix:~$ echo $?
    16

    but the share is mounted, and I can use it without problems.

    knoppix@Microknoppix:~$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sdb1 33535312 29672688 3862624 89% /mnt-system
    tmpfs 1646592 1884 1644708 1% /ramdisk
    /dev/cloop 9739970 9739970 0 100% /KNOPPIX
    unionfs 1646592 1884 1644708 1% /UNIONFS
    unionfs 1646592 1884 1644708 1% /usr
    unionfs 1646592 1884 1644708 1% /home
    tmpfs 10240 60 10180 1% /UNIONFS/var/run
    tmpfs 20480 2740 17740 14% /run
    tmpfs 10240 0 10240 0% /UNIONFS/var/lock
    tmpfs 102400 36 102364 1% /UNIONFS/var/log
    tmpfs 2097152 20 2097132 1% /tmp
    udev 20480 4 20476 1% /dev
    tmpfs 2097152 0 2097152 0% /dev/shm
    //srv1/downloads/ 958340616 827723084 130515132 87% /mnt

    KNOPPIX 7.0.2 DVD version booted with
    KERNEL linux
    INITRD minirt.gz
    APPEND ramdisk_size=100000 lang=en apm=power-off nomce libata.force=noncq hpsa.hpsa_allow_any=1 loglevel=1 tz=localtime keyboard=dk xkeyboard=dk no3d noimage


    I have tried to mount the share from Knoppix 7.2.0 using the ver=1 mount parameter as seen on Knoppix 7.0.2, but to no avail:

    knoppix@Microknoppix:~$ /usr/bin/sudo /bin/mount //srv1/downloads /mnt --verbose -t cifs -o rw,file_mode=0640,dir_mode=0755,uid=1000,ver=1,use r=freddy,password=MYPASS
    mount.cifs kernel mount options: ip=192.168.1.21,unc=\\srv1\downloads,file_mode=064 0,dir_mode=0755,ver=1,uid=1000,user=freddy,pass=** ******
    mount error(13): Permission denied
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

    knoppix@Microknoppix:~$ echo $?
    32

  2. #2
    Member registered user
    Join Date
    Dec 2006
    Posts
    44
    I have also tried with different options to ensure the correct user is being used:

    /usr/bin/sudo /bin/mount //srv1/downloads /mnt --verbose -t cifs -o user=srv1/freddy

    and with

    /usr/bin/sudo /bin/mount //srv1/downloads /mnt --verbose -t cifs -o user=freddy,domain=srv1


    but I still get the same results - mounting fails in Knoppix 7.2.0.

  3. #3
    Member registered user
    Join Date
    Dec 2006
    Posts
    44

    SOLVED: cannot mount cifs share from Knoppix 7.2.0 client - works on Knoppix 7.0.2

    AHA! dmesg said something about changing the default security model:
    CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3

    So I tried to add the parameter sec=ntlm and VOILA, I could mount the shares using Knoppix 7.2.0
    It seems that Synology DSM 4.2 insists on the old security mechanism ntlm.

    This works:
    /usr/bin/sudo /bin/mount //192.168.01.21/downloads /home/knoppix/srv1/downloads/ --verbose -t cifs -o rw,file_mode=0640,dir_mode=0755,sec=ntlm,user=freddy,password=MYPASS,uid=1000

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit picture

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit

$19.99



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$5.99



KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED picture

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED

$11.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$20.85



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$21.42



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$8.00



VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION) picture

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)

$7.57



Vintage Linux DVD - Knoppix 5.2 - c't Magazine - 7 / 2007 - Software Collection 2 picture

Vintage Linux DVD - Knoppix 5.2 - c't Magazine - 7 / 2007 - Software Collection 2

$7.81



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$7.00



Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006 picture

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006

$33.45