You are not logged in.

#1 2006-06-02 07:36:48

Gretschy
Member
From: Bielefeld, Germany
Registered: 2006-06-01
Posts: 21

USB Harddrive

i am trying to mount my usb harddrive but i cannot access the folder i mounted it to as user.
It says permission denied.
As root everything is fine.
Here is my fstab entry:
/dev/sda1 /mnt/USB ntfs user,noauto,noexec,nosuid 0 0

Offline

#2 2006-06-02 08:46:10

miausX
Member
From: Spain
Registered: 2006-06-02
Posts: 17

Re: USB Harddrive

Hello!

This is how it works for me:

1) Modify /etc/fstab:

/dev/sda1 /mnt/pendrive vfat user,exec,noauto,umask=111,dmask=000 0 0

You can safely ignore the umask and dmask options, that's not the problem.

2) Create the mount point: [look at the permissions here]

# mkdir /mnt/pendrive

# ls -ld /mnt/pendrive/
drwxr-xr-x  2 root root 6 2006-06-02 10:41 /mnt/pendrive/

3) Try to mount as a user:

$ mount /mnt/pendrive/

$ mount | grep pendrive
/dev/sda1 on /mnt/pendrive type vfat (rw,nosuid,nodev,umask=111,dmask=000,user=manu)

Hope this helps.

Regards,

  miausX.


='.'=  <-- Cat powered by Arch Linux

Offline

#3 2006-06-02 17:13:35

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: USB Harddrive

Or you could use Udev check wiki for details


Mr Green

Offline

Board footer

Powered by FluxBB