You are not logged in.

#1 2014-10-02 16:49:34

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

Problem accessing mounted ntfs partitions

Hi,
I have problems accessing ntfs partitions as a non root user. The user trying to acces the partition is in usergroup wheel and has sudo acces.

/etc/fstab looks like this:

/dev/sda5    /media/winC    ntfs    defaults    0 2
/dev/sdb1    /media/winD    ntfs    defaults    0 2

It does not matter where I mount them (e.g. /home/user/media/winC), if i try cd-ing into the directory, it tells me:

cd /medi/winC
-bash: cd: /media/winC: Permission denied

When i try the following, it tells me:

sudo cd /medi/winC
sudo: cd: command not found

which I find a bit strange, but ok.

Any pointers what I am doing wrong? cd-ing as root works, but i would like to acces it as a normal user too. Using the following options did not work for me:

rw,suid,dev,exec,auto,users,async

mount -l tells me the following when using the options stated above:

/dev/sda5 on /media/winC type ntfs (ro,nosuid,nodev,noexec,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=utf8,errors=continue,mtf_zone_multiplier=1)

Thanks for any pointers!

Offline

#2 2014-10-02 16:52:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Problem accessing mounted ntfs partitions

You should use ntfs-3g instead of ntfs.  I'm not sure if that will solve this problem, though it might, but it will prevent others.

As for "sudo cp" failing, that is not odd at all: `cd` is not a program, it is a shell builtin - there is no `cd` binary for sudo to execute.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-10-02 17:36:55

mrkernelpanic
Member
Registered: 2014-01-30
Posts: 43

Re: Problem accessing mounted ntfs partitions

Trilby wrote:

You should use ntfs-3g instead of ntfs.  I'm not sure if that will solve this problem, though it might, but it will prevent others.

As for "sudo cp" failing, that is not odd at all: `cd` is not a program, it is a shell builtin - there is no `cd` binary for sudo to execute.


Thanks for the explanation. I will try ntfs-3g as soon as I manage to connect to the internet again.

Offline

#4 2014-10-03 04:11:32

allonsy
Member
Registered: 2014-04-28
Posts: 26

Re: Problem accessing mounted ntfs partitions

In addition to trying ntfs-3g, how are you mounting the drive. Using the mount command will make the file system read only for users. You can try udisks --mount /dev/sdx to get read/write permission. (assuming your DE doesn't already automount the drive, in that case, you should get rw access already).

Offline

Board footer

Powered by FluxBB