Fedora Linux Support Community & Resources Center
Old 12th June 2009, 07:17 PM
wt6g Offline
Registered User
Join Date: Jun 2005
Posts: 179
Smile Mounting a Windows Share in FC 10

Simple Instructions and Info


Usually you put external mounts in the /mnt folder, then link there with a symbolic link if you want access from somewhere else. By keeping all of your mounts in /mnt its easier to manage them as your system and ability grow.

You need to make mounts as root. Mounts take the data in the target and put it on top of an existing folder. When you mount something on top of a folder whatever was there becomes invisible until you remove the mount on top of it. If there is a problem with a mount and it does not work, any writes to the mount will go to the folder underneath, and any data you expect to read from there will not exist.

In making a mount you should realize that the \ char requires an escape char in bash to show up in the final output to the command. The escape char is also \. Therefore to show \\ in a Windows command, you need to type \\\\. Also, spaces must be escaped once with \.


# cd /mnt
# mkdir WindowsDocuments
# mount -t cifs \\\\\\My\ Documents WindowsDocuments

You should substitute your ip or name for

Make sure your Windows folder is shared read/write if you need to write to it.
You probably want to change permissions on /mnt/WindowsDocuments to 777

If you want a link from your desktop to your Windows "My Documents" folder you can
now do this:

$cd ~/Desktop
ln -s /mnt/WindowsDocuments WindowsDocs

This will make a symbolic link to /mnt/Windows, and if you execute:
ls -l ~/Desktop you should see the links information in the response

Finally, if you want to keep a local backup of what's on the windows box in a local folder you could do:

mkdir ~/WindowsDocumentsBackup
rsync -avz ~/Desktop/WindowsDocs ~/WindowsDocumentsBackup

The ~ char is shorthand for /home/<uername> and represents your home folder.

The result of the rsync command is to make a copy of WindowsDocs (which points to your mount at /mnt/WindowsDocuments which is linked to your Windows machine shared 'My Documents' folder) and put it into ~/WindowsDocumentsBackup

As always, make use of the man command if you get confused or the info command for more detail. ie man rsync

Good luck.
/Len Umina
Len Umina
El Dorado Hills, CA
Reply With Quote
Old 27th October 2010, 02:50 PM
wt6g Offline
Registered User
Join Date: Jun 2005
Posts: 179
Re: Mounting a Windows Share in FC 10

An update:

The following works quite well:

[root@mysystem ~]# mount.cifs // /home/umina/Desktop/LensCommon -o credentials=/home/umina/credentialsLensCommon

In the plain text file credentialsLensCommon I have the following on the first two lines:


The reason to use a credentials file is simply security. If its in your home you can set permissions to protect it.

To unmount the cifs share in the above example:

# umount.cifs /home/umina/LensCommon

you can find help by using "man mount.cifs" at the command line.
according to data found in "man mount" you must have the cifs-mount package installed.
(it was already in my system)
Len Umina
El Dorado Hills, CA
Reply With Quote

mounting, share, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting a Windows share Xavior Servers & Networking 7 9th January 2008 07:51 AM
Mounting a windows share PaulClarke Servers & Networking 4 8th October 2007 10:44 AM
Mounting windows share on FC5 mrshirls Servers & Networking 2 5th October 2006 03:57 PM
mounting a windows share from fc5 dmizer Servers & Networking 9 28th July 2006 02:23 AM

Current GMT-time: 09:28 (Saturday, 19-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat