Tom Brown
2008-May-01 09:22 UTC
[CentOS] CentOS 4.5 - mounting remote windows fileserver using smb or cifs
Hi I need to mount a windows share on a CentOS 4.5 box running stock kernel etc - I have tried using cifs and also smbfs My fstab looks like //share/name /mount/point smbfs username=user,password=password,uid=useridhere 0 0 or the same using cifs When i try and mount that i get the following errors depending on the share type smbfs: mount_data version 1919251317 is not supported CIFS VFS: cifs_mount failed w/return code = -22 i would have thought that cifs was the way forward but any ideas? These use creds are being used on an ancient 7.3 box and they work fine thanks
Ian Blackwell
2008-May-01 09:38 UTC
[CentOS] CentOS 4.5 - mounting remote windows fileserver using smb or cifs
This works for me... In /etc/fstab:- //share/name /mount/point cifs _netdev,credentials=/etc/samba/cred.txt 0 0 In the credentials file:- username=your-windows-user password=XXXXXXXXXXX Make sure the credentials file is owned by root and only readable by root. Regards, Ian Tom Brown wrote:> Hi > > I need to mount a windows share on a CentOS 4.5 box running stock > kernel etc - I have tried using cifs and also smbfs > > My fstab looks like > > //share/name /mount/point smbfs > username=user,password=password,uid=useridhere 0 0 > > or the same using cifs > > When i try and mount that i get the following errors depending on the > share type > > smbfs: mount_data version 1919251317 is not supported > > CIFS VFS: cifs_mount failed w/return code = -22 > > i would have thought that cifs was the way forward but any ideas? > These use creds are being used on an ancient 7.3 box and they work fine > > thanks > > > > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >
Akemi Yagi
2008-May-01 10:52 UTC
[CentOS] CentOS 4.5 - mounting remote windows fileserver using smb or cifs
On Thu, May 1, 2008 at 2:22 AM, Tom Brown <tom at ng23.net> wrote:> Hi > > I need to mount a windows share on a CentOS 4.5 box running stock kernel > etc - I have tried using cifs and also smbfs > > My fstab looks like > > //share/name /mount/point smbfs > username=user,password=password,uid=useridhere 0 0 > > or the same using cifs > > When i try and mount that i get the following errors depending on the share > type > > smbfs: mount_data version 1919251317 is not supported > > CIFS VFS: cifs_mount failed w/return code = -22 > > i would have thought that cifs was the way forward but any ideas? These use > creds are being used on an ancient 7.3 box and they work fineThis wiki page may help you: http://wiki.centos.org/TipsAndTricks/WindowsShares Akemi