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
|