You are not logged in.
Hi,
when I try to mount my external usb drive I get the following error:
Error opening partition device: Permission denied
Failed to mount '/dev/sdb1': Permission denied
when I try it as root this message appears:
Failed to mount '/dev/sdb1': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:
Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.
Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:
mount -t ntfs-3g /dev/sdb1 /mnt/usbdisk -o force
Or add the option to the relevant row in the /etc/fstab file:
/dev/sdb1 /mnt/usbdisk ntfs-3g defaults,force 0 0
Here is my /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/cdrom /mnt/cdrom auto ro,user,noauto,unhide 0 0
#/dev/dvd /mnt/dvd udf ro,user,noauto,unhide 0 0
/dev/sda6 swap swap defaults 0 0
/dev/sda8 / ext3 defaults 0 1
/dev/sda7 /home reiserfs defaults 0 0
/dev/sda5 /mnt/media reiserfs defaults 0 0
/dev/sda1 /mnt/windowsC auto user,noauto 0 0
#/dev/sda2 /mnt/windowsD ntfs-3g users,noauto,uid=1000,gid=100,fmask=0113,dmask=0002,locale=en_US.utf8 0 0
/dev/sda2 /mnt/windowsD ntfs-3g defaults,users,noauto,uid=1000,umask=0 0 0
/dev/usbdisk /mnt/usbdisk ntfs-3g defaults,users,noauto,uid=1000,umask=0 0 0
/dev/usbstick /mnt/usbstick auto rw,user,noauto,umask=0000 0 0
/dev/mp3player /mnt/mp3player auto rw,user,noauto,umask=0000 0 0
and the udev-rule:
# for external usb harddisk: Seagate Free Agent Desktop 500 GB
SUBSYSTEMS=="usb", ATTRS{serial}==" 9QG5HAX0", KERNEL=="sd?[1-9]", NAME="%k", SYMLINK+="usbdisk", GROUP="storage"
# for USB-stick
SUBSYSTEMS=="usb", ATTRS{serial}=="0DC1F7716091A92E", KERNEL=="sd?[1-9]", NAME="%k", SYMLINK+="usbstick", GROUP="storage"
# for MP3-player
SUBSYSTEMS=="usb", ATTRS{serial}==" E3YB24", KERNEL=="sd?[1-9]", NAME="%k", SYMLINK+="mp3player", GROUP="storage"
Strange thing is, that the entry for windowsD in /etc/fstab worked before, but now I get the same message as for usbdisk.
The udev rules semms to be right, because the usbstick and mp3player can be mounted.
Any ideas?
Oli
Last edited by otti (2008-01-15 15:53:38)
Offline
FaunOS: Live USB/DVD Linux Distro: http://www.faunos.com
Offline
Thanks, but I think it is another problem...
Anyways, I solved my problem. It seem that the usb drive wasn't properly unmounted, when I detached it from Windows; so I had to use "-o force" with ntfs-3g.
It worked as root, but I still got the permission denied error as normal user. It seem that ntfs-3g was updated with the last system update, hence I had to
use "chmod u+s /bin/ntfs-3g". Now everything is working fine again.
Offline