You are not logged in.

#1 2010-04-18 16:24:19

aze489
Member
Registered: 2009-12-23
Posts: 19

External storage device not mounted automatically

Hello,
I when i plug an USB storage device, it isn't mounted automatically. Instead, i have an error message:

Error mounting: mount exited with exit code 1: helper failed with:
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged

The thing is, the error occur even when the device has no NTFS partition...

$ udisks --show-info /dev/sdb1
Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path:                 /sys/devices/pci0000:00/0000:00:02.1/usb1/1-7/1-7:1.0/host9/target9:0:0/9:0:0:0/block/sdb/sdb1
  device:                      8:17
  device-file:                 /dev/sdb1
    presentation:              /dev/sdb1
    by-id:                     /dev/disk/by-id/usb-Kingston_DataTraveler_G2_00137298C955F9A1E67F1047-0:0-part1
    by-id:                     /dev/disk/by-uuid/e731f7fa-33de-499a-89ac-910473b920f4
    by-path:                   /dev/disk/by-path/pci-0000:00:02.1-usb-0:7:1.0-scsi-0:0:0:0-part1
  detected at:                 dim. 18 avril 2010 18:18:13 CEST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at dim. 18 avril 2010 18:18:13 CEST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  0
  mount paths:             
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  size:                        4006937088
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext4
  version:                     1.0
  uuid:                        e731f7fa-33de-499a-89ac-910473b920f4
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    1
    type:                      0x83
    flags:                     boot
    offset:                    32256
    alignment offset:          0
    size:                      4006937088
    label:                     
    uuid:        
$ udisks --mount /dev/sdb1
Mount failed: Error mounting: mount exited with exit code 1: helper failed with:
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged

Has anyone had similar issues ?

aze489.

Offline

#2 2010-04-18 16:31:35

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: External storage device not mounted automatically

Did you check Hal Troubleshooting already?

Last edited by hokasch (2010-04-18 16:31:58)

Offline

#3 2010-04-18 16:42:03

aze489
Member
Registered: 2009-12-23
Posts: 19

Re: External storage device not mounted automatically

I thought devicekit-disk/udisks and HAL were two differents things ?

Offline

#4 2010-04-19 22:19:25

aze489
Member
Registered: 2009-12-23
Posts: 19

Re: External storage device not mounted automatically

bump

Last edited by aze489 (2010-04-19 22:19:31)

Offline

#5 2010-04-20 13:47:17

abraham10
Member
Registered: 2010-04-20
Posts: 77

Re: External storage device not mounted automatically

I think you have an issue with privileges, have you tried editing the permissions with chmod?

Last edited by abraham10 (2010-04-20 13:47:40)


Most of the question asked can be solved just by reading:
Beginner's Wiki.
Pacman Man.
AUR.

Offline

#6 2010-04-20 13:50:21

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: External storage device not mounted automatically

Please post the output of 'fdisk -l <device>'.

Offline

#7 2010-04-20 19:53:14

aze489
Member
Registered: 2009-12-23
Posts: 19

Re: External storage device not mounted automatically

# fdisk -l /dev/sdb

Disk /dev/sdb: 4007 MB, 4007624704 bytes
32 heads, 63 sectors/track, 3882 cylinders
Units = cylinders of 2016 * 512 = 1032192 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4c290fee

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        3882     3913024+  83  Linux

Offline

#8 2010-04-21 02:30:06

tinhtruong
Member
From: Australia
Registered: 2008-12-18
Posts: 117

Re: External storage device not mounted automatically

I fixed the problem with 'ntfsfix /dev/<ntfs-partition>'. I've also updated the NTFS-3g wiki page.

Offline

#9 2010-04-21 04:11:38

aze489
Member
Registered: 2009-12-23
Posts: 19

Re: External storage device not mounted automatically

Thanks, but i have no NTFS partitions on my devices. And this is why this error message is so weird...

Last edited by aze489 (2010-04-21 04:13:13)

Offline

#10 2010-04-21 06:01:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: External storage device not mounted automatically

Probably not the solution you want, but you can automount with udev instead of udisks - details in the wiki.

Offline

#11 2010-04-21 21:52:49

aze489
Member
Registered: 2009-12-23
Posts: 19

Re: External storage device not mounted automatically

I recompiled udisks with debug flags and debugged it using GDB, and i found the cause of my problem...
I already had an entry for /dev/sdb1 in my /etc/fstab specifying it as a ntfs partiton. I did that a long time ago, for another device, and forgot about it.
I think i need to read http://wiki.archlinux.org/index.php/Per … ice_naming tongue

Offline

Board footer

Powered by FluxBB