You are not logged in.

#1 2011-06-06 16:55:00

bagheera
Member
Registered: 2009-06-13
Posts: 84

[solved] can't access mounted ntfs partition

ntfs partition is being mounted during boot time by fstab:

/dev/sda1               /media/seven auto       users,rw        0       0

i can also mount/umount it manually, but only root can access /media/seven.
Why is that? What's wrong?

my user is in following groups:

adm disk wheel log network video audio optical storage camera users vboxusers
bagheera@tux:~$ ls -al /media                                                                                                                            
razem 20                                                                                                                                                     
drwxr-xr-x  5 root     root  4096 06-06 17:57 .                                                                                                              
drwxr-xr-x 23 root     root  4096 05-04 21:04 ..                                                                                                             
dr-x------  1 bagheera users 4096 06-06 15:46 EDGE                                                                                                           
drwxrwxrwx  2 root     root  4096 05-25 23:34 seven                                                                                                          
drwxr-xr-x  2 root     root  4096 04-28 20:59 usb   

Last edited by bagheera (2011-06-07 15:34:49)


arch linux user

Offline

#2 2011-06-06 17:04:22

I'mGeorge
Member
Registered: 2011-03-23
Posts: 150

Re: [solved] can't access mounted ntfs partition

a NTFS partition, as an entry for fstab should look like this

/dev/sda1    /mounting_point    ntfs-3g    defaults,locale=en_US.UTF-8    0    0

By the way if it's NTFS you should also install ntfs-3g if you didn't done it already

sudo pacman -S ntfs-3g

All the best

Last edited by I'mGeorge (2011-06-06 17:07:07)


I've first installed Arch in March

Offline

#3 2011-06-06 17:52:29

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [solved] can't access mounted ntfs partition

I'mGeorge wrote:

a NTFS partition, as an entry for fstab should look like this

/dev/sda1    /mounting_point    ntfs-3g    defaults,locale=en_US.UTF-8    0    0

By the way if it's NTFS you should also install ntfs-3g if you didn't done it already

sudo pacman -S ntfs-3g

All the best

Hmmm - should there not also be a 'umask=000' and possibly also 'uid=0,gid=0' in the stanza?
That's how I have always done it in the past - but hey - things change ....

Offline

#4 2011-06-06 18:06:31

I'mGeorge
Member
Registered: 2011-03-23
Posts: 150

Re: [solved] can't access mounted ntfs partition

perbh wrote:
I'mGeorge wrote:

a NTFS partition, as an entry for fstab should look like this

/dev/sda1    /mounting_point    ntfs-3g    defaults,locale=en_US.UTF-8    0    0

By the way if it's NTFS you should also install ntfs-3g if you didn't done it already

sudo pacman -S ntfs-3g

All the best

Hmmm - should there not also be a 'umask=000' and possibly also 'uid=0,gid=0' in the stanza?
That's how I have always done it in the past - but hey - things change ....

It's included in the option defaults. Actually if you don't have any particular preferences in the option section you can just leave defaults


I've first installed Arch in March

Offline

#5 2011-06-06 19:51:01

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [solved] can't access mounted ntfs partition

you can get write permissions by having members of a group (gid) or a user (uid) have ownership of files on the partition. you may also want to set the umask to give correct file and directory permissions to user, group and others.

an example:

/dev/sda1/       /media/seven    ntfs    gid=100,umask=007,rw      0    0

# or 

/dev/sda1/       /media/seven    ntfs    uid=1000,umask=007,rw    0    0 

you should try poking around on the wiki man. by the way you don't have to specify 'ntfs-3g' in /etc/fstab as 'ntfs' is symlinked with it - not really important though.

Last edited by roygbiv (2011-06-06 19:51:55)

Offline

#6 2011-06-06 19:53:41

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [solved] can't access mounted ntfs partition

use ntfs-3g instead of ntfs


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2011-06-06 19:59:37

roygbiv
Member
Registered: 2011-05-18
Posts: 204

Re: [solved] can't access mounted ntfs partition

I'mGeorge wrote:
perbh wrote:
I'mGeorge wrote:

a NTFS partition, as an entry for fstab should look like this

/dev/sda1    /mounting_point    ntfs-3g    defaults,locale=en_US.UTF-8    0    0

By the way if it's NTFS you should also install ntfs-3g if you didn't done it already

sudo pacman -S ntfs-3g

All the best

Hmmm - should there not also be a 'umask=000' and possibly also 'uid=0,gid=0' in the stanza?
That's how I have always done it in the past - but hey - things change ....

It's included in the option defaults. Actually if you don't have any particular preferences in the option section you can just leave defaults

the 'locale' option is deprecated if you don't mind. https://wiki.archlinux.org/index.php/Ntfs.

Offline

#8 2011-06-06 21:18:58

I'mGeorge
Member
Registered: 2011-03-23
Posts: 150

Re: [solved] can't access mounted ntfs partition

roygbiv wrote:

the 'locale' option is deprecated if you don't mind. https://wiki.archlinux.org/index.php/Ntfs.

I don't mind, thanks for the update


I've first installed Arch in March

Offline

#9 2011-06-07 12:54:11

Shashwat
Member
From: India
Registered: 2011-05-08
Posts: 101

Re: [solved] can't access mounted ntfs partition

On a quick not try mounting the disk by UUID rather than by mount point name. You can run into trouble with multiple disks https://wiki.archlinux.org/index.php/Pe … ice_naming

Offline

#10 2011-06-07 15:34:13

bagheera
Member
Registered: 2009-06-13
Posts: 84

Re: [solved] can't access mounted ntfs partition

Done. Arch wiki ftw! I should read it in the first place. Thanks anyway.


arch linux user

Offline

Board footer

Powered by FluxBB