Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
|
|
01-03-2009, 05:07 AM
|
#1
|
Member
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65
Rep:
|
permissions and fstabs
I have a second HD where I keep all my work data... it is easier to backup that way. There are many folders and many files.
Presently I have to mount it manually, but that is a problem. I often start working and have to go back to mount the drive. The permissions on manual mount are always "mine" so I can read/write.
I have tried a number of combinations, depending on the source (including "similar threads"), to mount the drive at boot. But all of them end up with the folders/files with root permissions.... or simply do not mount.
For example, the last I tried from what seemed to be a good source was (fstab):
/dev/sdb5 /media/DATA vfat gid=100,umask=002,noexec,nosuid 0 0
But that didn't even mount the drive.
So could someone please help a slow learner how to set up the drive in fstab so that it will mount with read/write permissions for all (which in this case, is me).
Many thanks,
José
|
|
|
01-03-2009, 05:19 AM
|
#2
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
try
/dev/sdb5 /media/DATA vfat users,defaults,umask=000 0 0
|
|
|
01-03-2009, 05:38 AM
|
#3
|
Member
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65
Original Poster
Rep:
|
Thanks for comming back.
I did what you suggested, but the drive didn't mount on boot. And even worse, I cannot mount it manually.
/dev/sdb5 /media/DATA vfat users,defaults,umask=000 0 0
is what I have, and it seems to be a correct copy of what you suggested.
Soooo... something still is wrong.
José
|
|
|
01-03-2009, 05:46 AM
|
#4
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Is the drive an external HD?
Then it is best to put the line you use for manual mount in /etc/rc.local
(first remove the line from fstab)
|
|
|
01-03-2009, 05:59 AM
|
#5
|
Member
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65
Original Poster
Rep:
|
No, the drive is internal.
I looked at /etc/rc.local and there was only an explanation text. And (quote) it said that an entry there did nothing.
This is turning out more difficult than I thought it would!
But again, thanks
José
|
|
|
01-03-2009, 06:27 AM
|
#6
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529
|
Hi,
If you put the line you use to mount the drive in /etc/rc.local
it will be executed at the end of the boot process
Make sure to put the whole path of the commands eq
/sbin/mount
# By default this script does nothing.
because there is nothing in it by default
Last edited by repo; 01-03-2009 at 06:28 AM.
|
|
|
01-03-2009, 07:01 AM
|
#7
|
Member
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65
Original Poster
Rep:
|
OK... something I did not say is that I mount the drive from "places". It is listed there and I click on it and it mounts.
Really not that difficult, but if I am working in a program and want to save, it is a bother to have to go there and mount the drive.
So I am afraid that I don't understand the suggestion you made last.
José
|
|
|
01-03-2009, 07:01 AM
|
#8
|
Member
Registered: Mar 2006
Location: Austria
Distribution: Mandriva/Debian
Posts: 104
Rep:
|
First: if it's a external drive (usb?), it may have changed "driveletter".
Do a "fdisk -l" (just lists all drives and their partitions) and see if it's still sd_b_.
Otherwise, consider labelling (mlabel from the mdos tools) and referring the label at mounttime.
Next, if your drive won't mount even with proper devicename, you'll see some error message.
Most likely one that suggests a filesystem check because (sh*t happens) you forgot to unmount it last time before disconnection.
Then, it's time to do a fsck on the partition (/dev/sdb5 or the equivalent) - best from a windows machine or (dual) boot.
|
|
|
01-03-2009, 07:19 AM
|
#9
|
Member
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65
Original Poster
Rep:
|
OK... I give up. I will simply continue mounting manually it from Places.
Many thanks to those who tried to help, but it seems I am too dense to be able to apply it.
José
|
|
|
All times are GMT -5. The time now is 05:05 PM.
|
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
|
|