LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-13-2010, 03:35 PM   #1
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Rep: Reputation: 15
mount perimissions on external HD


i've read so many threads and pages regarding this problem, I dont even know if I've having the same issue as when I started. But I am going to start over from the beginning and ask for help this time.

I have a debian machine with an external harddrive. I have a windows machine on the same network from which I can read the files from the debian drive, but I cant write to it.
At some point in time (several months ago?) I could.

currently, I have this line in my /etc/fstab:
/dev/sdb1 /media/MUSIC/ vfat user,uid=1000,gid=1000,rw,umask=000 0 0

and i've tried a hundred different mount commands (but not as many as i've tried fstab lines) but generally have been using this at start up:
sudo mount /dev/sdb1 /media/MUSIC/
(i am under the impression that i should not have to use 'sudo' when doing this, since the fstab line includes 'user' but if i dont, the command fails)

no matter what I've tried, the permissions come out as owned by root:
drwxr-xr-x 905 root root 163840 2010-10-17 17:45 Music

attempting (as root) to change ownership of the directory also does not work:
chown: changing ownership of `/media/MUSIC/': Operation not permitted

i've confirmed that i have the uid and gid number correct with
id wgato


Could someone please help me?

Thank you very much for your time
 
Old 11-13-2010, 03:48 PM   #2
Awatto
Member
 
Registered: Aug 2003
Location: Halifax, NS
Distribution: Debian, Gentoo, Ubuntu, Fedora
Posts: 128

Rep: Reputation: 30
Please try the following set of options instead:

Code:
vfat users,rw,owner,umask=000 0 0
That is USERS, not USER. If that works, modify them to fit your user/group ID if you need it specific to them.

Your drive is formatted as FAT, and therefore you can only change the permissions of the drive (through umask), chown, chmod etc will not work.
 
1 members found this post helpful.
Old 11-13-2010, 04:26 PM   #3
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Original Poster
Rep: Reputation: 15
thank you, that was foolish typo on my part, the actual line is:

/dev/sdb1 /media/MUSIC/ vfat user,uid=1000,gid=1000,rw,umask=000 0 0

but it doesnt seem to 'take' even after reboot. I can only mount the drive with the sudo command and cannot write to it unless i'm root on the debian machine.

i read, but didnt fully grasp, that you cant have users permissions on drives using a FAT file system. Good to know that chown/chmod is a dead end.

ETA:
i'm not sure what i did different (ARGH), but i can now mount the drive as a regular user.
but i still cant write to it unless i'm root.

Last edited by wgato; 11-13-2010 at 05:09 PM.
 
Old 11-13-2010, 04:57 PM   #4
mryuck
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 23
Quote:
attempting (as root) to change ownership of the directory also does not work:
chown: changing ownership of `/media/MUSIC/': Operation not permitted
Unmount /dev/sdb1. Then you will be able to change permissions and ownership of /media/MUSIC.

As Awatto said, its USERS not USER to allow normal users to mount the drive.

Try
mount -t vfat -o umask=000 /dev/sdb1 /media/MUSIC
To mount the drive.

Last edited by mryuck; 11-13-2010 at 05:06 PM.
 
1 members found this post helpful.
Old 11-13-2010, 11:15 PM   #5
wgato
Member
 
Registered: Jun 2006
Distribution: ubuntu slax dsl
Posts: 40

Original Poster
Rep: Reputation: 15
oh wow. that worked. thank you so much.
i spent the entire day on this.

thank you, thank you, thank you.
 
  


Reply

Tags
fstab, mount, permissions, vfat



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
udev rules to mount external hard drive at mount point akamikeym Gentoo 3 03-31-2010 01:12 PM
Mount External ... maas187 Linux - Newbie 3 12-11-2008 09:38 PM
External HD won't mount lionround Linux - Newbie 6 10-14-2007 01:41 PM
can not un-mount external drive, please help mhg Linux - Newbie 5 07-23-2007 01:29 AM
How to mount an external USB HD? Thakowbbery Linux - Hardware 1 05-18-2006 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:23 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