fredvej
07-22-2013, 04:55 PM
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
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