Mount Windows Share with Fedora 12
The file system type for the mount command has been changed from smbfs to cifs. So using “-t smbfs” will not work any more. Instead you need to enter something like this:
mount -t cifs -o username=user[,uid=500,gid=500] //machine/share[/path] /mountpoint
There seems to be a documentation bug in the man pages, because they still mention smbfs.
Posted: December 30th, 2009 under Technical Stuff.
Tags: CIFS, Fedora, Linux, mount.cifs, mount.smbfs, Samba, Share, SMB, smbfs, Windows
Comments
Comment from Paul Dasalla
posting from
United States
Time January 26, 2010 at 4:06 am
Thank you for posting this info, I have just upgrade to FC12 and it has been almost 4 days looking for answer why “mount -t cifs -o username=user,passwrod=password //server/shared /mountpoint stop working. Replacing with “uid” and gid” solved my problem. I had to revert back back to fc11 since I am using amanda for backup and mount command is incorrectly printed. I know this was a free OS but something like this simple should not be over look.
Again I cant say thank you enough for taking your time looking this over.
Comment from John Reeve
posting from
United States
Time February 5, 2010 at 3:32 pm
I have tried mounting a shared in fedora using the above example, of course with my own preference and I got this error message “CIFS VFS: cifs_mount failed w/return code = -22″.
Any ideas?
Comment from Christoph Jahn
posting from
Germany
Time February 5, 2010 at 5:02 pm
Have you checked the respective log entries on the CIFS server? They should give you some idea about what’s going on.
