LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How to create a persistent mount point for Linux to a windows share in FC6 (https://www.linuxquestions.org/questions/fedora-35/how-to-create-a-persistent-mount-point-for-linux-to-a-windows-share-in-fc6-537617/)

geetarman 03-15-2007 01:26 AM

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):
//10.10.10.9/data /mnt/data cifs uid=username,credentials=/etc/cifscred 0 0

the //10.10.10.9/data 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:
username=yourusername
password=yourpassword

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.
Thanks,
Steve

verdeboy2k 03-15-2007 06:03 PM

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"

pingu 03-16-2007 03:54 AM

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"


All times are GMT -5. The time now is 01:10 AM.