LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-03-2009, 05:07 AM   #1
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Rep: Reputation: Disabled
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é
 
Old 01-03-2009, 05:19 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
try

/dev/sdb5 /media/DATA vfat users,defaults,umask=000 0 0
 
Old 01-03-2009, 05:38 AM   #3
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Original Poster
Rep: Reputation: Disabled
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é
 
Old 01-03-2009, 05:46 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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)
 
Old 01-03-2009, 05:59 AM   #5
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Original Poster
Rep: Reputation: Disabled
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é
 
Old 01-03-2009, 06:27 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
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.
 
Old 01-03-2009, 07:01 AM   #7
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Original Poster
Rep: Reputation: Disabled
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é
 
Old 01-03-2009, 07:01 AM   #8
Woodypecker
Member
 
Registered: Mar 2006
Location: Austria
Distribution: Mandriva/Debian
Posts: 104

Rep: Reputation: 17
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.
 
Old 01-03-2009, 07:19 AM   #9
chejose
Member
 
Registered: Jan 2008
Location: Villa Nueva, Argentina
Posts: 65

Original Poster
Rep: Reputation: Disabled
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é
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
permissions spuppett Linux - Newbie 4 04-12-2004 01:32 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM
permissions devit Linux - General 2 03-12-2004 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:05 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
Open Source Consulting | Domain Registration