[linux-cifs-client] Re: Cannot mount LANServer network storage
device
Stephen Berryman
berrymansj at optusnet.com.au
Sun Jun 15 08:54:42 GMT 2008
Thanks Steve
The nounix flag did the trick.
Didn't find that option in the mount.cifs manual though.
Also noticed it is possible to mount a share multiple times on the same
mount point. It then appears multiple times when I do a df command and
must be umounted multiple times with root privileges.
This is not possible with NFS mounts for example.
thanks again
[stephenb at tru64 ~]$ mount /netdrive/steve_space/
[stephenb at tru64 ~]$ mount /netdrive/steve_space/
[stephenb at tru64 ~]$ mount /netdrive/steve_space/
[stephenb at tru64 ~]$ mount /netdrive/steve_space/
[stephenb at tru64 ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda7 20151884 13981936 5965544 71% /
tmpfs 448968 0 448968 0% /dev/shm
/dev/sda6 20159916 4980928 15178988 25% /other/os1
/dev/sda9 35356816 24381692 9179060 73% /space
/dev/sda1 5106676 4803464 303212 95% /dos/acer
/dev/sda2 14944768 11177120 3767648 75% /dos/c
/dev/sda8 15343104 8115968 7227136 53% /dos/backup
p3000:/mnt/storage 898932736 144264192 709005312 17% /storage
//192.168.88.2/steve_space
245051808 1613184 243438624
1% /netdrive/steve_space
//192.168.88.2/steve_space
245051808 1613184 243438624
1% /netdrive/steve_space
//192.168.88.2/steve_space
245051808 1613184 243438624
1% /netdrive/steve_space
//192.168.88.2/steve_space
245051808 1613184 243438624
1% /netdrive/steve_space
$ umount /netdrive/steve_space/
umount: it seems /netdrive/steve_space is mounted multiple times
On Sat, 2008-06-14 at 17:55 -0500, Steve French (smfltc) wrote:
> > Mounts OK from Windows XP and 2000.
> Possibly because they don't do the Unix Extensions
> (unless they are a very old lanman device in which case
> smbfs has a few features which cifs does not have for such
> extremely old devices).
>
> > Can't mount from Linux
> > $ ll /mnt/users_space
> > ls: cannot open directory /mnt/users_space: Not a directory
> >
> > That is the target directory cannot be read!!
> >
> > I first tried this using smb4k with the same result.
> >
> > Often I get a failure of the mount command with
> >
> > mount error 20 = Not a directory
>
> > I can mount the device using an old version of ubuntu using smbfs
> > instead of cifs. I can access files on the device using Nautilus in Fedora 7
> > and 9 but this does mount it.
> >
> > Clearly cifs does not do everything that the previous samba client did.
> It is probably the reverse - smbfs was not doing the current unix extensions (posix
> extensions) to the protocol so did not run into some types of problems with buggy servers.
> Linux cifs.ko can drop down to not using the Unix Extensions (as Windows does)
> If "echo 0 > /proc/fs/LinuxExtensionsEnabled" before mount caused the mount to work or
> equivalently specifying the "nounix" worked - that would imply a buggy server
> implementation of the Unix Extensions.
>
> Your kernel is running cifs version 1.50 (current is cifs 1.53) some missing
> fixes include a fix when doing a second mount to the same server when the first mount
> was disconnected (the second mount can fail in this case when it should automatically
> reconnect instead).
>
More information about the linux-cifs-client
mailing list