You are not logged in.

#1 2009-01-21 03:13:03

future stir-fry
Member
Registered: 2008-11-29
Posts: 55

[SOLVED] Problems mounting external drive as directory in home

I have an external hdd mounted as my ~/music. The line in fstab looks like this:

UUID=blahblahblah /home/blah/music vfat rw,auto,user,exec 0 0

It is mounting on boot and I can read off of it just fine, but I can't write anything, which is odd because I put rw as an option. Did I do the fstab entry correctly, or is it something else?

TIA

Last edited by future stir-fry (2009-01-22 04:28:29)

Offline

#2 2009-01-21 03:46:20

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: [SOLVED] Problems mounting external drive as directory in home

Can you write to it as root? If so, permissions are bad somewhere along the line.

Offline

#3 2009-01-21 14:58:52

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: [SOLVED] Problems mounting external drive as directory in home

maybe umask?


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#4 2009-01-21 15:22:23

ak-89
Member
From: Finland
Registered: 2008-08-26
Posts: 86
Website

Re: [SOLVED] Problems mounting external drive as directory in home

Set uid and gid for mount point.

UUID=blahblahblah /home/blah/music vfat rw,auto,user,exec,uid=<your-username's-id>,gid=<users-group's-id>, 0 0

You can see your uid and gid from /etc/passwd. There may be command that tells id of specific user and group.

username:x:1000:100:.....
1000 = uid
100 = gid

//EDIT: Command "id" tells ids of your username, primary group and other groups.

Last edited by ak-89 (2009-01-21 15:27:38)

Offline

#5 2009-01-22 04:28:13

future stir-fry
Member
Registered: 2008-11-29
Posts: 55

Re: [SOLVED] Problems mounting external drive as directory in home

Thanks ak, that did it.

Offline

Board footer

Powered by FluxBB