From MattWiki
Jump to navigation Jump to search

Mounting a Windows Share on Fedora

To test if your Linux machine sees the shares on the Windows box:

smbclient -L <windows-box> -U <username>

Note: The syntax -username=<username>,password=<password> saves the password.

  • Make a directory for the mountpoint:
mkdir /mnt/<name-of-mount-point>
  • Mount the share:
mount -t smbfs -o username=<username>,password=<password> //<win-box>/<share> /mnt/<name-of-mountpoint> 
  • Create a symbolic link to the mounted drive:
ln -s /mnt/<name-of-mount-point> /<path-of-symlink>

Mounting a Windows Share

mount -t cifs /mythtv -ouser=username,password=password

or in /etc/fstab

//WindowsSystem/Share /mnt/mountpoint smbfs credentials=/home/user/.smbpasswd,uid=1000,gid=1000 0 0


//WindowsSystem/Share /mnt/mountpoint smbfs username=WindowsUser,password=WindowsPass,umask=000  0 0