Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 03-15-2007, 01:26 AM   #1
LQ Newbie
Registered: Mar 2007
Posts: 9

Rep: Reputation: 0
Lightbulb How to create a persistent mount point for Linux to a windows share in FC6

How to create a persistent mount point for linux to a windows share in FC6

This may exist somewhere here already but I didn't find it.

In a terminal window, gain root access, edit your /etc/fstab

An example line to add would be this (1 line):
// /mnt/data cifs uid=username,credentials=/etc/cifscred 0 0

the // is the IP address of the windows PC and its share - I read somewhere you can use a computername instead of IP but that didn't work for me.

the /mnt/data refers to where on your linux filesysem you will mount the share. If you don't have one, you will need to create one - It might make sense to name it the windows sharename.

the cifs refers to the way to communicate with the windows share - I believe you can still use smbfs - although again it didn't work for me.

uid=username - same as one i put in creds file below - name to access the share with i imagine - the name of account with access on windows box credentials=/etc/cifscred - this is a file I created (cifscred) that you will need to as well. I put mine in /etc. this file is only 2 lines:

the - 0 0 - Honestly I am not sure what this is. I asume it has something to do
Hope this helps out.
I'm still a bit new to linux so if I made some errors please point them out.
Old 03-15-2007, 06:03 PM   #2
Registered: Jan 2004
Location: /dev/random
Distribution: Gentoo amd64, CrunchBang amd64
Posts: 350

Rep: Reputation: 32
the 0 0 relates to whether the partition needs to be auto-checked on bootup, the are a true/false field (whether to check) and a priority to determine in what order they are checked and weather a failed check is serious or not. More info can be found at "man fstab"
Old 03-16-2007, 03:54 AM   #3
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Let me just add that the "uid" -thingie doesn't work with cifs, only with smbfs.
For a user to have access to the partition I have to use the option "noperm"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount windows share drives with automounter in FC6! linzz Fedora 4 03-08-2007 12:27 AM
Can't access mount point after mounting W2K3 Svr share humbletech99 Linux - Networking 1 12-15-2006 01:58 PM
windows share automatically mount on linux box emailssent Linux - Networking 11 11-01-2004 03:02 AM
(Windows) Only one Linux box can mount a smb share Artimus General 1 07-21-2004 12:12 PM
mounting linux share point on windows jolu2000 Linux - Software 1 04-18-2003 09:36 AM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration