Difference between revisions of "Example of cfis fstab"
From Free Knowledge Base- The DUCK Project: information for everyone
m (Admin moved page Cfis fstab example to Example of cfis fstab: cifs should be lower case) |
|||
Line 10: | Line 10: | ||
* mount the shares | * mount the shares | ||
mount -a | mount -a | ||
+ | * This provides read-only access to the network shares. |
Revision as of 15:48, 3 June 2015
There are more than one ways to do this. This example uses cifs to permanently mount the shares so that they will be available after reboot. If the system complains add the 'noauto' parameter.
- First edit your /etc/hosts file and add the hostname and IP address of the windows share or file server
- Next create mount points in /mnt for each windows share
- Make sure you have cifs installed
- Edit /etc/fstab and add a line for each windows share, see examples:
//apollo/public/ /mnt/public cifs username=nicolep,password=mythtv,iocharset=utf8,sec=ntlm 0 0 //apollo/media/ /mnt/media cifs username=nicolep,password=mythtv,iocharset=utf8,sec=ntlm 0 0 //apollo/video/ /mnt/video cifs username=nicolep,password=mythtv,iocharset=utf8,sec=ntlm 0 0
- mount the shares
mount -a
- This provides read-only access to the network shares.