Eivind Tagseth
2002-Aug-05 08:26 UTC
[Samba] smbmount: mount option "noauto" causes codepage and/or iocharset to fail
I've been trying several times now: # mount -t smbfs -o credentials=/etc/samba/private/credentials,codepage=cp850,iocharset=iso8859-1,noauto //machine/share\$ /mnt/share Causes: # ls /mnt/share/directory Sp?rsm?l.txt While this: # mount -t smbfs -o credentials=/etc/samba/private/credentials,codepage=cp850,iocharset=iso8859-1 //machine/share\$ /mnt/share Causes: # ls /mnt/share/directory Sp?rsm?l.txt I want to have this mount in my /etc/fstab file, but the share won't always be available, so I need it to be "noauto". Smbmount is version 2.2.5, mount is mount-2.11r, kernel is 2.4.19 with assorted gentoo patches. Anyone bumped into this before? PS, not on list. Eivind
Urban Widmark
2002-Aug-06 10:05 UTC
[Samba] smbmount: mount option "noauto" causes codepage and/or iocharset to fail
On Mon, 5 Aug 2002, Eivind Tagseth wrote:> I've been trying several times now: > > # mount -t smbfs -o credentials=/etc/samba/private/credentials,codepage=cp850,iocharset=iso8859-1,noauto //machine/share\$ /mnt/share > > Causes: > > # ls /mnt/share/directory > Sp?rsm?l.txtThe reason is that the mount failed first, and then smbmnt retried it using an older method where it can't send the codepage/iocharset options. The problem is that noauto is not recognized by smbmount which passes anything unknown to smbfs and smbfs doesn't know what this is either and complains. You can define the default nls modules to use for smbfs when configuring the kernel. That should be enough for you. There is also some work going on to fix this in a better way, but the patches are out of date: http://www.hojdpunkten.ac.se/054/samba/smbconnect/ /Urban