LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-18-2016, 10:32 PM   #1
ramsforums
Member
 
Registered: Jun 2007
Posts: 58

Rep: Reputation: 0
Smile Mounting network share and local drive during Login


Greetings Experts


I have edited /etc/fstab files and added script as follows


# mount local windows drive dual OS Windows 8.1 now future windows 10.0 may be
UUID=7712DBA02CFAB55A /home/rams/Documents/mnt/ddrive ntfs-3g uid=1000,gid=1000,umask=0022,sync,auto,rw 0 0

During boot unable to mount. Possibly I am trying to mount in user directory before login.

Code:
Note:
It works if I mount in 

/media/ddrive
How do I resolve? I want to mount in my home Directory because I also have another mount (USB HDD connected to Asus router RT- AC66U, if I mount in /media/homeshare I am unable to write as a user even though I have write permission and credentials. If I mount in my home directory I can mount and write. So I would like to consolidate all my mount under home directory. Thanks

Thank you

Last edited by ramsforums; 09-19-2016 at 12:12 AM.
 
Old 09-19-2016, 03:35 PM   #2
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,170
Blog Entries: 10

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
Have a look at https://help.ubuntu.com/community/Mo...dowsPartitions
 
1 members found this post helpful.
Old 09-19-2016, 04:10 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 8 Jessie
Posts: 1,688
Blog Entries: 5

Rep: Reputation: 163Reputation: 163
Quote:
Originally Posted by ramsforums View Post
UUID=7712DBA02CFAB55A /home/rams/Documents/mnt/ddrive ntfs-3g uid=1000,gid=1000,umask=0022,sync,auto,rw 0 0

During boot unable to mount. Possibly I am trying to mount in user directory before login.

It works if I mount in

/media/ddrive

How do I resolve? I want to mount in my home Directory because I also have another mount (USB HDD connected to Asus router RT- AC66U, if I mount in /media/homeshare I am unable to write as a user even though I have write permission and credentials. If I mount in my home directory I can mount and write. So I would like to consolidate all my mount under home directory. Thanks

Thank you
I would suggest you mount in /media/ddrive, and modify the permissions on /media/ddrive to give your user the required permission. I would do so using:
Code:
(running as root)
chown rams:rams /media/ddrive
chmod 755 /media/ddrive
I'd then use a symbolic link to place a link within your home directory:
Code:
(running as rams)
ln -s /media/ddrive/ /home/rams/Documents/mnt/ddrive
It's not such a great idea to try and put the actual mount point within a home directory, if it's going to be nested within a network share.
 
1 members found this post helpful.
Old 09-19-2016, 11:08 PM   #4
ramsforums
Member
 
Registered: Jun 2007
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by IsaacKuo View Post
I would suggest you mount in /media/ddrive, and modify the permissions on /media/ddrive to give your user the required permission. I would do so using:
Code:
(running as root)
chown rams:rams /media/ddrive
chmod 755 /media/ddrive
I'd then use a symbolic link to place a link within your home directory:
Code:
(running as rams)
ln -s /media/ddrive/ /home/rams/Documents/mnt/ddrive
It's not such a great idea to try and put the actual mount point within a home directory, if it's going to be nested within a network share.

Thank you. Since I want this to be mounted during boot or login. I am not sure it will work if I place this below in fstab.

Code:
chown rams:rams /media/ddrive
chmod 755 /media/ddrive
ln -s /media/ddrive/ /home/rams/Documents/mnt/ddrive
 
Old 09-20-2016, 02:04 AM   #5
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 8 Jessie
Posts: 1,688
Blog Entries: 5

Rep: Reputation: 163Reputation: 163
You run chown, chmod, and ln on the command line just once. It is not necessary to do them every time before mounting, so nothing about them needs to be put in /etc/fstab.
 
1 members found this post helpful.
Old 09-20-2016, 08:35 PM   #6
ramsforums
Member
 
Registered: Jun 2007
Posts: 58

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by IsaacKuo View Post
You run chown, chmod, and ln on the command line just once. It is not necessary to do them every time before mounting, so nothing about them needs to be put in /etc/fstab.
Thank you IsaacKuo. It worked. Appreciate
 
  


Reply


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
[SOLVED] how to share a same screen by local login and remote VNC login arnold.kang Linux - Server 2 07-24-2013 12:45 AM
Mounting a standard user, windows share at login metallica1973 Linux - General 3 12-01-2011 06:08 PM
Mounting a smb share as a local folder on Fedora 9 accessing a Windows Server AustinMarton Linux - Networking 2 11-15-2009 08:21 PM
mounting network samba drive using cifs in /etc/rc.local file rioguia Linux - Server 2 09-09-2009 09:22 PM
Mounting A Smb Share At Login - For Domain Users nm2588 Linux - Networking 3 12-07-2006 11:05 AM


All times are GMT -5. The time now is 04:31 PM.

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