[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem with autofs and samba



Hello debian-testing ! 
I'm trying to setup mounting samba shares via autofs. 
I've created simple configuration: 
 
# cat /etc/auto.master 
/mnt/temp        /etc/auto.temp 
# cat /etc/auto.temp 
distr -fstype=smbfs,password= / //hlt/distr 
# /etc/init.d/autofs restart 
# ls /mnt/temp/distr 
 
Now all works perfectly. But when I'm trying to mount after system 
reboot, I'm seeing this: 
# ls /mnt/temp/distr 
ls: /mnt/temp/distr: No such file or directory 
 
# tail -30 /var/log/debug 
Jun 12 19:00:22 kiev145 automount[4165]: lookup(file): looking up 
distr 
Jun 12 19:00:22 kiev145 automount[4165]: lookup(file): distr -> 
-fstype=smbfs,password=^I^I/ //hlt/distr 
Jun 12 19:00:22 kiev145 automount[4165]: parse(sun): expanded entry: 
-fstype=smbfs,password=^I^I/ //hlt/distr 
Jun 12 19:00:22 kiev145 automount[4165]: parse(sun): 
dequote("fstype=smbfs,password=") -> fstype=smbfs,password= 
Jun 12 19:00:22 kiev145 automount[4165]: parse(sun): gathered 
options: fstype=smbfs,password= 
Jun 12 19:00:22 kiev145 automount[4165]: parse(sun): dequote("/") -> 
/ 
Jun 12 19:00:22 kiev145 automount[4165]: parse(sun): 
dequote("//hlt/distr") -> //hlt/distr 
Jun 12 19:00:22 kiev145 automount[4165]: parse(sun): multimount: 
//hlt/distr on / with options fstype=smbfs,password= 
Jun 12 19:00:22 kiev145 automount[4165]: parse(sun): mounting root 
/mnt/temp, mountpoint distr, what //hlt/distr, fstype smbfs, options 
password= 
Jun 12 19:00:22 kiev145 automount[4165]: do_mount //hlt/distr 
/mnt/temp/distr type smbfs options password= using module generic 
Jun 12 19:00:22 kiev145 automount[4165]: mount(generic): calling 
mkdir_path /mnt/temp/distr 
Jun 12 19:00:22 kiev145 automount[4165]: mount(generic): calling 
mount -t smbfs -s -o password= //hlt/distr /mnt/temp/distr 
Jun 12 19:00:24 kiev145 automount[4211]: lookup(file): looking up 
distr 
Jun 12 19:00:24 kiev145 automount[4211]: lookup(file): distr -> 
-fstype=smbfs,password=^I^I/ //hlt/distr 
Jun 12 19:00:24 kiev145 automount[4211]: parse(sun): expanded entry: 
-fstype=smbfs,password=^I^I/ //hlt/distr 
Jun 12 19:00:24 kiev145 automount[4211]: parse(sun): 
dequote("fstype=smbfs,password=") -> fstype=smbfs,password= 
Jun 12 19:00:24 kiev145 automount[4211]: parse(sun): gathered 
options: fstype=smbfs,password= 
Jun 12 19:00:24 kiev145 automount[4211]: parse(sun): dequote("/") -> 
/ 
Jun 12 19:00:24 kiev145 automount[4211]: parse(sun): 
dequote("//hlt/distr") -> //hlt/distr 
Jun 12 19:00:24 kiev145 automount[4211]: parse(sun): multimount: 
//hlt/distr on / with options fstype=smbfs,password= 
Jun 12 19:00:24 kiev145 automount[4211]: parse(sun): mounting root 
/mnt/temp, mountpoint distr, what //hlt/distr, fstype smbfs, options 
password= 
Jun 12 19:00:24 kiev145 automount[4211]: do_mount //hlt/distr 
/mnt/temp/distr type smbfs options password= using module generic 
Jun 12 19:00:24 kiev145 automount[4211]: mount(generic): calling 
mkdir_path /mnt/temp/distr 
Jun 12 19:00:24 kiev145 automount[4211]: mount(generic): calling 
mount -t smbfs -s -o password= //hlt/distr /mnt/temp/distr 
 
 
 
In this log all seems perfect.... But where is the bug ? 
 
I've tested this with kernles 2.4.18 and 2.4.20 and various samba 
servers. The bug appears in both kernels with WindowsXP samba 
exports. 
Does anybody known/fix this bug ? 
Thanks. 



Reply to: