You are not logged in.

#1 2009-01-04 16:27:21

gjoellee
Member
Registered: 2008-12-12
Posts: 82

[Solved] External HDD permission isue...

For christmas I got  an 1TB extternal HDD. I works fine on a Windows machine, but I have Arch Linux on my computer and I get permission issues with the external HDD. How do I get perimission to use my own external HDD?

I have tried right click and changing permissions as root but I does not work. I see whats in the external HDD when I am root, but can't even create a folder!

Last edited by gjoellee (2009-01-05 14:17:57)


Entertain yourself in a stupid way: www.stupidreality.org

Offline

#2 2009-01-04 17:40:36

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [Solved] External HDD permission isue...

What filesystem is the drive formatted as ?
If it's ntfs, do you have ntfs-3g ?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#3 2009-01-04 17:47:08

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [Solved] External HDD permission isue...

Define it in /etc/fstab, and add the 'user' option.

Offline

#4 2009-01-04 19:24:43

gjoellee
Member
Registered: 2008-12-12
Posts: 82

Re: [Solved] External HDD permission isue...

OK, I have added it to /etc/fstab and added the user option, this is how the line looks like:

/dev/sde1 /media/hdd ntfs-3g user,defaults,locale=en_NO.utf8 0    0

here is the whole:

# cat /etc/fstab
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/sde1 /media/hdd ntfs-3g user,defaults,locale=en_NO.utf8 0    0
/dev/cdrom /media/cdrom   auto    ro,user,noauto,unhide   0      0
/dev/cdrom1 /media/cdrom1   auto    ro,user,noauto,unhide   0      0
/dev/dvd /media/dvd   auto    ro,user,noauto,unhide   0      0
/dev/dvd1 /media/dvd1   auto    ro,user,noauto,unhide   0      0
UUID=10512ef5-9c47-46a7-9602-f9137ea11d82 swap swap defaults 0 0
UUID=9656f93a-365f-4dee-a00e-301fa58001c6 / ext3 defaults 0 1
UUID=af63f66e-d508-49e8-8bdf-9d1160a6b24b /home ext3 defaults 0 1

it mounts fine on root (I have not checked user yet) but it is still Read Only

NOTE: I have not tested it on a normal user yet after I added the "user" option in the line:


Entertain yourself in a stupid way: www.stupidreality.org

Offline

#5 2009-01-04 19:40:18

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [Solved] External HDD permission isue...

If you are using NTFS, see this wiki page.
NTFS behaves differently.

Offline

#6 2009-01-04 19:41:54

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [Solved] External HDD permission isue...

I think it has to be "users", not "user"...
Anyways, you could try something like this for options: "users,uid=1000,gid=100,fmask=0113,dmask=0002,locale=pl_PL.utf8"; change the locale to what it is that you're using, of course.  This should mount the drive with [your user]:users ownership and reasonable permissions.

This is taken from the wiki: http://wiki.archlinux.org/index.php/NTF … ng_fstab_2

Offline

#7 2009-01-04 19:55:40

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [Solved] External HDD permission isue...

fwojciec wrote:

I think it has to be "users", not "user"...

..For ntfs-3g, I think you're right.

Offline

#8 2009-01-05 14:17:37

gjoellee
Member
Registered: 2008-12-12
Posts: 82

Re: [Solved] External HDD permission isue...

It works great when I am root user now, and that is good enough for me. Threat solved


Entertain yourself in a stupid way: www.stupidreality.org

Offline

#9 2009-01-05 14:29:41

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [Solved] External HDD permission isue...

IMO just to access an external hard drive as root is not a good idea. I will use the root previlage only to do any maintenance work that too not frequent. I have similar problem to access external HD with ntfs partition in lxde with pcmanfm. I got it solved by remounting with rw access.

sudo mount -t ntfs-3g /dev/sdb1 /media/<mount_point> -o rw,users,auto

Last edited by kgas (2009-01-05 14:30:01)

Offline

#10 2009-01-05 18:02:55

gjoellee
Member
Registered: 2008-12-12
Posts: 82

Re: [Solved] External HDD permission isue...

kgas wrote:

IMO just to access an external hard drive as root is not a good idea. I will use the root previlage only to do any maintenance work that too not frequent. I have similar problem to access external HD with ntfs partition in lxde with pcmanfm. I got it solved by remounting with rw access.

sudo mount -t ntfs-3g /dev/sdb1 /media/<mount_point> -o rw,users,auto

Thanks a lot..! Now this thread is totally solved! I made this tutorial if someone wonder what I did: http://kshoster.net/content/howto-mount … ile-system

Last edited by gjoellee (2009-01-05 18:14:18)


Entertain yourself in a stupid way: www.stupidreality.org

Offline

#11 2009-01-08 16:16:39

kgas
Member
From: Qatar
Registered: 2008-11-08
Posts: 718

Re: [Solved] External HDD permission isue...

Hello gjoellee,  if you have installed hal then setting the policy will also help. Have a look at this thread
http://bbs.archlinux.org/viewtopic.php? … 08#p476208.

Offline

Board footer

Powered by FluxBB