Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-04-2012, 12:55 AM
|
#1
|
Member
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104
Rep: 
|
How to Mount Network Drives On "FSTAB"
Hello All,
I'm having Ubuntu Server with samba sharing i want to mount that samba sharing in CentOs 6.2 Permanently in fstab but i'm unable to do that.
I'm able to mount those shares temporarily with this command,
mount -t cifs -o username=gem,password=gem123 //192.168.1.200/Utils /home/test/Desktop/Windows/
This command is running perfectly but this is not permanent.
This is my fstab file.
Kindly let me know that what entry should i use to mount it permanently.
#
# /etc/fstab
# Created by anaconda on Tue Mar 20 15:28:03 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=1fef3795-2f13-4536-9f1f-4f29ceec3499 / ext4 defaults 1 1
UUID=85a41d20-3efd-4410-9bbe-e7ea7f1ddea9 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
|
|
|
04-04-2012, 12:59 AM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,443
|
|
|
|
04-04-2012, 02:08 AM
|
#3
|
Member
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104
Original Poster
Rep: 
|
Dear chrism01,
I have followed your Instructions & i have used this entry in fstab
//192.168.44.100/share /path_to/mount cifs username=server_user,password=secret,_netdev 0 0
and it works but the problem is that the drives which i mount are read only neither i can create any document nor delete any document how can i fix this problem.
|
|
|
04-04-2012, 02:20 AM
|
#4
|
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
|
add this extra option
Code:
//192.168.44.100/share /path_to/mount cifs username=server_user,password=secret,_netdev,file_mode=0777,dir_mode=0777 0 0
and test with
for further refrence follow this link
https://wiki.ubuntu.com/MountWindowsSharesPermanently
Last edited by deep27ak; 04-04-2012 at 02:21 AM.
|
|
|
04-04-2012, 03:03 AM
|
#5
|
Member
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 104
Original Poster
Rep: 
|
Dear deep27ak,
I have used your additional entry and it works but still i'm unable to create any document or copy any document in to the sharing folder, remember one thing that this only happens when i use through the mounted area but if i access the sharing through (Place --> Connect to Server) then it's working.
|
|
|
11-18-2016, 10:54 AM
|
#6
|
LQ Newbie
Registered: Jun 2014
Posts: 3
Rep: 
|
Similar problem solved
I was having a similar problem with server shares mounted via fstab
I fixed it by mounting the shares in my own home directory
|
|
|
All times are GMT -5. The time now is 08:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|