Quote:
Originally Posted by michaelmalak
Using the Fedora 8 desktop GUI (running under VMWare on Windows XP), I can connect to my Buffalo TeraServer Network Attached Storage by simply specifying 192.168.0.9/share as the server name. The network is a Windows Workgroup (no domain controller).
How can I do the same thing from the Linux command line?
I'm assuming I need to do something with Samba? (Is that what the Fedora 8 desktop doing behind the scenes?) I have tried the following:
smbmount //192.168.0.9/share
smbmount: command not found
mount -t smbfs //192.168.0.9/share ts
unknown filesystem type 'smbfs'
|
Here, the problem most likely that you need to use "cifs" instead of smbfs. Depending on the kernel version, smbfs is either depreciated or even dropped. Cifs has additional support for Unix/Linux filesystems. If the filesystem being shared doesn't support options like ownership and permissions, then the smbfs style options are a fall-back.
Read the mount and mount.cifs manpages for the mount options. Look in particular at the "uid","gid","dmask","fmask", "username" and "password" options.
Look at the "cred" option to point to a credentials file instead of having "username" and "password" in the /etc/fstab file. (Assuming you aren't using a public share).
mount.cifs isn't normally run on its own. Run "mount" with the "-t cifs" filesystem. The mount command will call the "mount.cifs" program.
If you create an entry in /etc/fstab for this share, then you could simply use the mount point in your mount command, and the gory details (IP, password, options) can be left out. The mount command will get them from the fstab file. If you don't want it mounted when you boot up, use the "noauto" option. Otherwise use the "_netdev" option to defer mounting until after the network is up.