You are not logged in.

#51 2011-10-03 19:18:28

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: ldm - Lightweight Device Mounter

Sorry to say that, but it doesn't do anything.

If it helps, I was testing this with a fat formatted usb stick. These are supposed to work, right?

Offline

#52 2011-10-04 15:48:10

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Hrm, could you post your /var/log/daemon.log after plugging in the device along with the result of udisks --dump

Offline

#53 2011-10-04 19:02:42

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: ldm - Lightweight Device Mounter

Sure thing!

udisks --dump

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda
  native-path:                 /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/block/sda
  device:                      8:0
  device-file:                 /dev/sda
    presentation:              /dev/sda
    by-id:                     /dev/disk/by-id/ata-ST9100823A_3LG0553H
    by-id:                     /dev/disk/by-id/scsi-SATA_ST9100823A_3LG0553H
    by-path:                   /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM 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:           
  automount hint:              
  size:                        100030242816
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition table:
    scheme:                    mbr
    count:                     4
  drive:
    vendor:                    ATA
    model:                     ST9100823A
    revision:                  3.02
    serial:                    3LG0553H
    WWN:                       
    detachable:                0
    can spindown:              1
    rotational media:          Yes, unknown rate
    write-cache:               enabled
    ejectable:                 0
    adapter:                   /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e1
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e1/host0
    similar devices:
    media:                     
      compat:                 
    interface:                 ata
    if speed:                  (unknown)
    ATA SMART:                 Data not collected

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda1
  native-path:                 /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/block/sda/sda1
  device:                      8:1
  device-file:                 /dev/sda1
    presentation:              /dev/sda1
    by-id:                     /dev/disk/by-id/ata-ST9100823A_3LG0553H-part1
    by-id:                     /dev/disk/by-id/scsi-SATA_ST9100823A_3LG0553H-part1
    by-id:                     /dev/disk/by-uuid/e6d42c55-bd1f-465d-b145-760a1b329279
    by-path:                   /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0-part1
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM CEST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /boot
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        62914560
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext2
  version:                     1.0
  uuid:                        e6d42c55-bd1f-465d-b145-760a1b329279
  label:                       BOOT_ARCH
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    1
    type:                      0x83
    flags:                     boot
    offset:                    1048576
    alignment offset:          0
    size:                      62914560
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda2
  native-path:                 /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/block/sda/sda2
  device:                      8:2
  device-file:                 /dev/sda2
    presentation:              /dev/sda2
    by-id:                     /dev/disk/by-id/ata-ST9100823A_3LG0553H-part2
    by-id:                     /dev/disk/by-id/scsi-SATA_ST9100823A_3LG0553H-part2
    by-id:                     /dev/disk/by-uuid/f7240e0e-8117-497d-81c0-b340edc4baac
    by-path:                   /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0-part2
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM 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:           
  automount hint:              
  size:                        511705088
  block size:                  512
  job underway:                no
  usage:                       other
  type:                        swap
  version:                     2
  uuid:                        f7240e0e-8117-497d-81c0-b340edc4baac
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    2
    type:                      0x83
    flags:                    
    offset:                    63963136
    alignment offset:          0
    size:                      511705088
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda3
  native-path:                 /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/block/sda/sda3
  device:                      8:3
  device-file:                 /dev/sda3
    presentation:              /dev/sda3
    by-id:                     /dev/disk/by-id/ata-ST9100823A_3LG0553H-part3
    by-id:                     /dev/disk/by-id/scsi-SATA_ST9100823A_3LG0553H-part3
    by-id:                     /dev/disk/by-uuid/df1f094c-0eaa-4124-a0ff-f54b7ebb9e20
    by-path:                   /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0-part3
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM CEST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        7500464128
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext4
  version:                     1.0
  uuid:                        df1f094c-0eaa-4124-a0ff-f54b7ebb9e20
  label:                       ROOT_ARCH
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    3
    type:                      0x83
    flags:                    
    offset:                    575668224
    alignment offset:          0
    size:                      7500464128
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda4
  native-path:                 /sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0/block/sda/sda4
  device:                      8:4
  device-file:                 /dev/sda4
    presentation:              /dev/sda4
    by-id:                     /dev/disk/by-id/ata-ST9100823A_3LG0553H-part4
    by-id:                     /dev/disk/by-id/scsi-SATA_ST9100823A_3LG0553H-part4
    by-id:                     /dev/disk/by-uuid/63e43e20-34c5-4fcf-89b2-df49b715ff11
    by-path:                   /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0-part4
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM CEST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /home
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        91953823744
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext4
  version:                     1.0
  uuid:                        63e43e20-34c5-4fcf-89b2-df49b715ff11
  label:                       HOME_ARCH
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    4
    type:                      0x83
    flags:                    
    offset:                    8076132352
    alignment offset:          0
    size:                      91953823744
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb
  device:                      8:16
  device-file:                 /dev/sdb
    presentation:              /dev/sdb
    by-id:                     /dev/disk/by-id/usb-ST315003_41AS_908888888888-0:0
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM 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:           
  automount hint:              
  size:                        1500301910016
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition table:
    scheme:                    mbr
    count:                     1
  drive:
    vendor:                    ST315003
    model:                     41AS
    revision:                  0100
    serial:                    908888888888
    WWN:                       
    detachable:                1
    can spindown:              1
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 Data not collected

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1:1.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb1
  device:                      8:17
  device-file:                 /dev/sdb1
    presentation:              /dev/sdb1
    by-id:                     /dev/disk/by-id/usb-ST315003_41AS_908888888888-0:0-part1
    by-id:                     /dev/disk/by-uuid/8a60b3b7-50bc-48a7-b3ba-aa0f13f32156
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0-part1
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM 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:           
  automount hint:              
  size:                        1500299265024
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        xfs
  version:                     
  uuid:                        8a60b3b7-50bc-48a7-b3ba-aa0f13f32156
  label:                       1500GB
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    1
    type:                      0x83
    flags:                    
    offset:                    32256
    alignment offset:          0
    size:                      1500299265024
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdc
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sdc
  device:                      8:32
  device-file:                 /dev/sdc
    presentation:              /dev/sdc
    by-id:                     /dev/disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             0
  removable:                   1
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM CEST)
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    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:           
  automount hint:              
  size:                        15931539456
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition table:
    scheme:                    mbr
    count:                     1
  drive:
    vendor:                    Generic
    model:                     USB  SD Reader
    revision:                  1.00
    serial:                    12345678901234567890
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     flash_sd
      compat:                  flash_sd
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdc1
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host3/target3:0:0/3:0:0:0/block/sdc/sdc1
  device:                      8:33
  device-file:                 /dev/sdc1
    presentation:              /dev/sdc1
    by-id:                     /dev/disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0-part1
    by-id:                     /dev/disk/by-uuid/B821-AB71
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0-part1
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Tue 04 Oct 2011 08:59:29 PM 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:           
  automount hint:              
  size:                        15929966592
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        vfat
  version:                     FAT32
  uuid:                        B821-AB71
  label:                       16GB
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdc
    scheme:                    mbr
    number:                    1
    type:                      0x0b
    flags:                    
    offset:                    1048576
    alignment offset:          0
    size:                      15929966592
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sr0
  native-path:                 /sys/devices/pci0000:00/0000:00:1f.1/host1/target1:0:0/1:0:0:0/block/sr0
  device:                      11:0
  device-file:                 /dev/sr0
    presentation:              /dev/sr0
    by-id:                     /dev/disk/by-id/ata-MATSHITADVD-RAM_UJ-831S
    by-path:                   /dev/disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0
  detected at:                 Tue 04 Oct 2011 08:59:29 PM CEST
  system internal:             0
  removable:                   1
  has media:                   0
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    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:           
  automount hint:              
  size:                        0
  block size:                  0
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  drive:
    vendor:                    MATSHITA
    model:                     MATSHITADVD-RAM UJ-831S
    revision:                  1.00
    serial:                    
    WWN:                       
    detachable:                0
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 1
    adapter:                   /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e1
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a1f_2e1/host1
    similar devices:
    media:                     
      compat:                  optical_cd optical_cd_r optical_cd_rw optical_dvd optical_dvd_plus_r optical_dvd_plus_r_dl optical_dvd_plus_rw optical_dvd_r optical_dvd_ram optical_dvd_rw optical_mrw optical_mrw_w
    interface:                 scsi
    if speed:                  (unknown)
    ATA SMART:                 not available

========================================================================

(external fat- and xfs-formatted drives are connected, none is being mounted)

/var/log/daemon.log

Oct  4 22:59:26 Archlinux vnstatd[1136]: vnStat daemon 1.11 started.
Oct  4 22:59:26 Archlinux vnstatd[1136]: Monitoring: eth0 wlan0 
Oct  4 20:58:46 Archlinux ntpd[1164]: set local clock to Tue Oct  4 20:58:46 CEST 2011 (offset -7241.024388s)
Oct  4 20:59:07 Archlinux dbus[975]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
Oct  4 20:59:28 Archlinux dbus[975]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Oct  4 20:59:28 Archlinux dbus[975]: [system] Successfully activated service 'org.freedesktop.UDisks'
Oct  4 20:59:28 Archlinux dbus[975]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Oct  4 20:59:29 Archlinux polkitd[1298]: started daemon version 0.102 using authority implementation `local' version `0.102'
Oct  4 20:59:29 Archlinux dbus[975]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'

Nothing relevant in there.

Offline

#54 2011-10-05 01:48:16

lowie82ph
Member
Registered: 2008-08-10
Posts: 22

Re: ldm - Lightweight Device Mounter

Hi TheLemonMan,

I plugged in my external hdd with two partitions and only the first partition was mounted

Thanks

Offline

#55 2011-10-05 12:03:15

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

@Army : That means ldm isnt even launched, doublecheck the version you're using as i fear you have an old git commit

Ill add support for multipartitioned disks as soon as i can, can you please add it as issue in the github page ?

Offline

#56 2011-10-05 15:11:11

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: ldm - Lightweight Device Mounter

Ok, I don't exactly know why there wasn't anything in the daemon.log (nothing changed, well, at least not that I knew..), but I found my problem. My usb drives were connected when the computer booted. This way ldm doesn't mount them (bug!). If I unplug them and plug them in again, THEN they get mounted. I didn't do that when I tested ldm the days before.

Now that ldm works here, I mounted my fat formatted stick. But unfortunately I cannot write on it, because the permissions aren't good for fat drives. I think, since fat doesn't support rights management, it would be ok to allow each and everyone to do anything on that drive. But I'm no expert on this. The rights I use in the udev rule which also does automounting of external drives

relatime,users,utf8,quiet,nodev,noexec,shortname=mixed,uid=1000,gid=100,umask=022,dmask=022,fmask=133,utf8,iocharset=iso8859-1

I'm not sure if everything's needed, but it works perfect with these options. Of course they won't work on every system, because not every user has the uid=1000 etc.

Offline

#57 2011-11-09 10:38:46

ludovico
Member
From: Oslo, Norway
Registered: 2008-08-24
Posts: 75

Re: ldm - Lightweight Device Mounter

I just found this, and it looks great. But as far as I can see, the last commit was made over a month ago. Is it still active?


Sin? What's all this about sin?

Offline

#58 2011-11-27 20:11:59

inch
Member
Registered: 2010-12-21
Posts: 49

Re: ldm - Lightweight Device Mounter

Would also love to use this, however it just does plain nothing for me.

Offline

#59 2012-01-05 14:14:49

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

New version ahead! This time permission issues should be fixed forever thanks to a nice trick that collects the 1st logged in user uid/gid at compile time (+1 leet point for the idea), then just a bunch of fixes here and there smile
I'd like to add a more confortable way of unmounting devices from whitin ldm but havent made yet a decision about how, ideas are welcome!

Offline

#60 2012-01-05 18:52:45

milso
Member
Registered: 2010-11-16
Posts: 112
Website

Re: ldm - Lightweight Device Mounter

Wow this project is awesome, thanks.

Offline

#61 2012-01-07 20:35:37

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: ldm - Lightweight Device Mounter

I just tried the new version:

1. I started it as a daemon, and it does not automount devices that are connected at boot.

2. When I disconnected/reconnected my USB hard disk, it only mounted one partition.

udisks --dump

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda
  device:                      8:0
  device-file:                 /dev/sda
    presentation:              /dev/sda
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    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:           
  automount hint:              
  size:                        500107862016
  block size:                  512
  job underway:                no
  usage:                       raid
  type:                        isw_raid_member
  version:                     1.1.00
  uuid:                        
  label:                       
  partition table:
    scheme:                    
    count:                     7
  drive:
    vendor:                    ATA
    model:                     WDC WD5001AALS-00L3B2
    revision:                  01.03B10
    serial:                    WD-WCASYC879434
    WWN:                       50014ee259c6ed42
    detachable:                0
    can spindown:              1
    rotational media:          Yes, unknown rate
    write-cache:               enabled
    ejectable:                 0
    adapter:                   /org/freedesktop/UDisks/adapters/0000_3a00_3a08_2e0
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a08_2e0/host4
    similar devices:
    media:                     
      compat:                 
    interface:                 ata
    if speed:                  (unknown)
    ATA SMART:                 Updated at Sat 07 Jan 2012 12:31:33 PM PST
      overall assessment:      Good
===============================================================================
 Attribute       Current|Worst|Threshold  Status   Value       Type     Updates
===============================================================================
 raw-read-error-rate         200|200| 51   good    0           Pre-fail Online 
 spin-up-time                159|159| 21   good    5.0 secs    Pre-fail Online 
 start-stop-count            100|100|  0    n/a    168         Old-age  Online 
 reallocated-sector-count    200|200|140   good    0 sectors   Pre-fail Online 
 seek-error-rate             100|253|  0    n/a    0           Old-age  Online 
 power-on-hours               95| 95|  0    n/a    154.8 days  Old-age  Online 
 spin-retry-count            100|100|  0    n/a    0           Old-age  Online 
 calibration-retry-count     100|100|  0    n/a    0           Old-age  Online 
 power-cycle-count           100|100|  0    n/a    166         Old-age  Online 
 power-off-retract-count     200|200|  0    n/a    38          Old-age  Online 
 load-cycle-count            200|200|  0    n/a    168         Old-age  Online 
 temperature-celsius-2       112|102|  0    n/a    35C / 95F   Old-age  Online 
 reallocated-event-count     200|200|  0    n/a    0           Old-age  Online 
 current-pending-sector      200|200|  0    n/a    0 sectors   Old-age  Online 
 offline-uncorrectable       200|200|  0    n/a    0 sectors   Old-age  Offline
 udma-crc-error-count        200|200|  0    n/a    0           Old-age  Online 
 multi-zone-error-rate       200|200|  0    n/a    0           Old-age  Offline

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda1
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda/sda1
  device:                      8:1
  device-file:                 /dev/sda1
    presentation:              /dev/sda1
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434-part1
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434-part1
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42-part1
    by-id:                     /dev/disk/by-uuid/10F87723F87705EE
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part1
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    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:           1
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        104857600
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ntfs
  version:                     1.1.00
  uuid:                        10F87723F87705EE
  label:                       System Reserved
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    1
    type:                      0x07
    flags:                     boot
    offset:                    1048576
    alignment offset:          0
    size:                      104857600
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda2
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda/sda2
  device:                      8:2
  device-file:                 /dev/sda2
    presentation:              /dev/sda2
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434-part2
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434-part2
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42-part2
    by-id:                     /dev/disk/by-uuid/EE2079BC20798BF9
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part2
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    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:           1
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        249951158272
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ntfs
  version:                     1.1.00
  uuid:                        EE2079BC20798BF9
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    2
    type:                      0x07
    flags:                    
    offset:                    105906176
    alignment offset:          0
    size:                      249951158272
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda3
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda/sda3
  device:                      8:3
  device-file:                 /dev/sda3
    presentation:              /dev/sda3
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434-part3
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434-part3
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42-part3
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part3
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    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:           
  automount hint:              
  size:                        1024
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    3
    type:                      0x05
    flags:                    
    offset:                    250057064448
    alignment offset:          0
    size:                      250050772992
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda5
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda/sda5
  device:                      8:5
  device-file:                 /dev/sda5
    presentation:              /dev/sda5
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434-part5
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434-part5
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42-part5
    by-id:                     /dev/disk/by-uuid/72941e09-ecd8-4c93-9d4a-ac3811a584e7
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part5
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /boot
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        104857600
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext2
  version:                     1.0
  uuid:                        72941e09-ecd8-4c93-9d4a-ac3811a584e7
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    5
    type:                      0x83
    flags:                    
    offset:                    250058113024
    alignment offset:          0
    size:                      104857600
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda6
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda/sda6
  device:                      8:6
  device-file:                 /dev/sda6
    presentation:              /dev/sda6
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434-part6
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434-part6
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42-part6
    by-id:                     /dev/disk/by-uuid/44f1ac7c-4896-47fe-a903-1588c8c79950
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part6
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    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:           
  automount hint:              
  size:                        268435456
  block size:                  512
  job underway:                no
  usage:                       other
  type:                        swap
  version:                     2
  uuid:                        44f1ac7c-4896-47fe-a903-1588c8c79950
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    6
    type:                      0x82
    flags:                    
    offset:                    250164019200
    alignment offset:          0
    size:                      268435456
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda7
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda/sda7
  device:                      8:7
  device-file:                 /dev/sda7
    presentation:              /dev/sda7
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434-part7
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434-part7
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42-part7
    by-id:                     /dev/disk/by-uuid/b7a01984-794b-4beb-adba-6d18d53f396e
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part7
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        6442450944
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext4
  version:                     1.0
  uuid:                        b7a01984-794b-4beb-adba-6d18d53f396e
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    7
    type:                      0x83
    flags:                    
    offset:                    250433503232
    alignment offset:          0
    size:                      6442450944
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sda8
  native-path:                 /sys/devices/pci0000:00/0000:00:08.0/host4/target4:0:0/4:0:0:0/block/sda/sda8
  device:                      8:8
  device-file:                 /dev/sda8
    presentation:              /dev/sda8
    by-id:                     /dev/disk/by-id/ata-WDC_WD5001AALS-00L3B2_WD-WCASYC879434-part8
    by-id:                     /dev/disk/by-id/scsi-SATA_WDC_WD5001AALS-_WD-WCASYC879434-part8
    by-id:                     /dev/disk/by-id/wwn-0x50014ee259c6ed42-part8
    by-id:                     /dev/disk/by-uuid/da1aaa70-bba9-440c-8cf1-d6af1dda72fc
    by-path:                   /dev/disk/by-path/pci-0000:00:08.0-scsi-0:0:0:0-part8
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             1
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /home
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        243230834688
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext4
  version:                     1.0
  uuid:                        da1aaa70-bba9-440c-8cf1-d6af1dda72fc
  label:                       
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sda
    scheme:                    mbr
    number:                    8
    type:                      0x83
    flags:                    
    offset:                    256877002752
    alignment offset:          0
    size:                      243230834688
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb
  native-path:                 /sys/devices/pci0000:00/0000:00:02.1/usb1/1-9/1-9:1.0/host7/target7:0:0/7:0:0:0/block/sdb
  device:                      8:16
  device-file:                 /dev/sdb
    presentation:              /dev/sdb
    by-id:                     /dev/disk/by-id/ata-WDC_WD3200BEVT-00A0RT0_WD-WXH0A99P8134
    by-id:                     /dev/disk/by-id/scsi-SWDC_WD3200BEVT-00A0RT0_801130168383
    by-id:                     /dev/disk/by-id/wwn-0x50014ee258d96590
    by-path:                   /dev/disk/by-path/pci-0000:00:02.1-usb-0:9:1.0-scsi-0:0:0:0
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    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:           
  automount hint:              
  size:                        320072933376
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  partition table:
    scheme:                    mbr
    count:                     2
  drive:
    vendor:                    WDC WD32
    model:                     WDC WD3200BEVT-00A0RT0
    revision:                  01.01A10
    serial:                    WD-WXH0A99P8134
    WWN:                       50014ee258d96590
    detachable:                1
    can spindown:              0
    rotational media:          Yes, at 5400 RPM
    write-cache:               enabled
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb1
  native-path:                 /sys/devices/pci0000:00/0000:00:02.1/usb1/1-9/1-9:1.0/host7/target7:0:0/7:0:0:0/block/sdb/sdb1
  device:                      8:17
  device-file:                 /dev/sdb1
    presentation:              /dev/sdb1
    by-id:                     /dev/disk/by-id/ata-WDC_WD3200BEVT-00A0RT0_WD-WXH0A99P8134-part1
    by-id:                     /dev/disk/by-id/scsi-SWDC_WD3200BEVT-00A0RT0_801130168383-part1
    by-id:                     /dev/disk/by-id/wwn-0x50014ee258d96590-part1
    by-id:                     /dev/disk/by-uuid/289E71EC9E71B2C4
    by-path:                   /dev/disk/by-path/pci-0000:00:02.1-usb-0:9:1.0-scsi-0:0:0:0-part1
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    detects change:            0
    detection by polling:      0
    detection inhibitable:     0
    detection inhibited:       0
  is read only:                0
  is mounted:                  1
  mount paths:             /media/Windows
  mounted by uid:              0
  presentation hide:           0
  presentation nopolicy:       0
  presentation name:           
  presentation icon:           
  automount hint:              
  size:                        160039240704
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ntfs
  version:                     
  uuid:                        289E71EC9E71B2C4
  label:                       Windows
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    1
    type:                      0x07
    flags:                    
    offset:                    32256
    alignment offset:          0
    size:                      160039240704
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdb2
  native-path:                 /sys/devices/pci0000:00/0000:00:02.1/usb1/1-9/1-9:1.0/host7/target7:0:0/7:0:0:0/block/sdb/sdb2
  device:                      8:18
  device-file:                 /dev/sdb2
    presentation:              /dev/sdb2
    by-id:                     /dev/disk/by-id/ata-WDC_WD3200BEVT-00A0RT0_WD-WXH0A99P8134-part2
    by-id:                     /dev/disk/by-id/scsi-SWDC_WD3200BEVT-00A0RT0_801130168383-part2
    by-id:                     /dev/disk/by-id/wwn-0x50014ee258d96590-part2
    by-id:                     /dev/disk/by-uuid/b224cc05-eaee-49ef-95a0-91fc5297f218
    by-path:                   /dev/disk/by-path/pci-0000:00:02.1-usb-0:9:1.0-scsi-0:0:0:0-part2
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             0
  removable:                   0
  has media:                   1 (detected at Sat 07 Jan 2012 12:31:33 PM PST)
    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:           
  automount hint:              
  size:                        160031047680
  block size:                  512
  job underway:                no
  usage:                       filesystem
  type:                        ext4
  version:                     1.0
  uuid:                        b224cc05-eaee-49ef-95a0-91fc5297f218
  label:                       Linux
  partition:
    part of:                   /org/freedesktop/UDisks/devices/sdb
    scheme:                    mbr
    number:                    2
    type:                      0x83
    flags:                    
    offset:                    160039272960
    alignment offset:          0
    size:                      160031047680
    label:                     
    uuid:                      

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sr0
  native-path:                 /sys/devices/pci0000:00/0000:00:06.0/host2/target2:0:0/2:0:0:0/block/sr0
  device:                      11:0
  device-file:                 /dev/sr0
    presentation:              /dev/sr0
    by-id:                     /dev/disk/by-id/ata-_NEC_DVD_RW_ND-3550A
    by-path:                   /dev/disk/by-path/pci-0000:00:06.0-scsi-0:0:0:0
  detected at:                 Sat 07 Jan 2012 12:31:33 PM PST
  system internal:             0
  removable:                   1
  has media:                   0
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    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:           
  automount hint:              
  size:                        0
  block size:                  0
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  drive:
    vendor:                    _NEC
    model:                     _NEC DVD_RW ND-3550A
    revision:                  1.07
    serial:                    
    WWN:                       
    detachable:                0
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 1
    adapter:                   /org/freedesktop/UDisks/adapters/0000_3a00_3a06_2e0
    ports:
      /org/freedesktop/UDisks/adapters/0000_3a00_3a06_2e0/host2
    similar devices:
    media:                     
      compat:                  optical_cd optical_cd_r optical_cd_rw optical_dvd optical_dvd_plus_r optical_dvd_plus_r_dl optical_dvd_plus_rw optical_dvd_r optical_dvd_rw optical_mrw optical_mrw_w
    interface:                 scsi
    if speed:                  (unknown)
    ATA SMART:                 not available

========================================================================

/var/log/daemon.log

Jan  7 12:28:46 localhost [    0.542363] udevd[62]: starting version 175
Jan  7 12:28:46 localhost [    3.108286] udevd[264]: starting version 175
Jan  7 12:28:46 localhost ldm: ldm 0.2
Jan  7 12:28:46 localhost ldm: Starting up...
Jan  7 12:28:46 localhost ldm: Entering the main loop
Jan  7 12:28:48 localhost dhcpcd[689]: version 5.2.12 starting
Jan  7 12:28:48 localhost dhcpcd[689]: eth0: broadcasting for a lease
Jan  7 12:28:48 localhost dhcpcd[689]: eth0: offered 192.168.1.64 from 192.168.1.254 `dslmodem'
Jan  7 12:28:48 localhost dhcpcd[689]: eth0: acknowledged 192.168.1.64 from 192.168.1.254 `dslmodem'
Jan  7 12:28:48 localhost dhcpcd[689]: eth0: checking for 192.168.1.64
Jan  7 12:28:54 localhost dhcpcd[689]: eth0: leased 192.168.1.64 for 86400 seconds
Jan  7 12:28:54 localhost dhcpcd[689]: forked to background, child pid 764
Jan  7 12:29:37 localhost ldm: Error while executing mount
Jan  7 12:29:37 localhost ntfs-3g[846]: Version 2011.4.12 external FUSE 28
Jan  7 12:29:37 localhost ntfs-3g[846]: Mounted /dev/sdb1 (Read-Write, label "Windows", NTFS 3.1)
Jan  7 12:29:37 localhost ntfs-3g[846]: Cmdline options: rw,uid=1000,gid=100
Jan  7 12:29:37 localhost ntfs-3g[846]: Mount options: rw,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jan  7 12:29:37 localhost ntfs-3g[846]: Global ownership and permissions enforced, configuration type 1
Jan  7 12:31:33 localhost dbus[625]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper)
Jan  7 12:31:33 localhost dbus[625]: [system] Successfully activated service 'org.freedesktop.UDisks'
Jan  7 12:31:33 localhost dbus[625]: [system] Activating service name='org.freedesktop.PolicyKit1' (using servicehelper)
Jan  7 12:31:33 localhost polkitd[916]: started daemon version 0.103 using authority implementation `local' version `0.103'
Jan  7 12:31:33 localhost dbus[625]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'

Offline

#62 2012-01-08 15:35:41

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

anonymous_user wrote:

1. I started it as a daemon, and it does not automount devices that are connected at boot.

2. When I disconnected/reconnected my USB hard disk, it only mounted one partition.

1. Thats a feature ive never needed as i usually plug stuff once the system is booted, ill put it in the todo list anyway since looks like many users want that
2. Ill give a look at this asap, sounds like an easy fix

Edit : Both the issues are fixed in the head, just update and enjoy smile

Last edited by TheLemonMan (2012-01-09 13:50:09)

Offline

#63 2012-01-09 18:05:08

riivo
Member
Registered: 2008-08-25
Posts: 112

Re: ldm - Lightweight Device Mounter

Won't build

~ > pac ldm-git
:: ldm-git package not found, searching for group...
:: ldm-git group not found, searching AUR...

==> Installing the following packages from AUR
Targets (1): ldm-git  

==> Proceed with installation? [Y/n] 
==> Downloading ldm-git...
==> Customizing ldm-git...
==> WARNING: Packages from the AUR are potentially dangerous!
Edit the PKGBUILD? (recommended) [Y/n] n
==> Determining latest git revision...
  -> Version found: 20120109
==> Making package: ldm-git 20120109-1 (Mon Jan  9 20:04:52 EET 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
==> Connecting to GIT server....
Already up-to-date.
==> The local files are updated.
==> GIT checkout done or server timeout
==> Starting make...
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
gcc ldm.c -g -ludev -o ldm
ldm.c: In function ‘device_mount’:
ldm.c:424:48: error: expected expression before ‘,’ token
ldm.c:442:54: error: expected expression before ‘,’ token
make: *** [all] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

Offline

#64 2012-01-09 18:58:21

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Git builds fine here, try clearing the cache and retry. If doesnt work post the output of

cat /etc/passwd | grep `who | awk '{print$1}'` |  awk -F':' '{print$4}'

Offline

#65 2012-01-10 00:47:00

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

Edit : Both the issues are fixed in the head, just update and enjoy smile

Thanks it works.

BTW on my NTFS drive, all files are marked as executable. I know NTFS doesn't support Linux permissions, but is this normal?

Offline

#66 2012-01-10 02:10:11

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

Git builds fine here, try clearing the cache and retry. If doesnt work post the output of

cat /etc/passwd | grep `who | awk '{print$1}'` |  awk -F':' '{print$4}'

I haven't looked at your code but if you do that, please don't. It's tottaly unsafe and unneeded.
if you want to get the user id(3rd) or the group id(4th column) for that user use 'id'
also the current username is stored in "$USER" variable

$ id -u "$USER"  # get user id
$ id -g "$USER"  # get group id for the specified user
$ man id      # the essential line

Last edited by c00kiemon5ter (2012-01-10 02:11:22)


.:[ git me! ] :.

Offline

#67 2012-01-10 14:27:50

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Its now using a config file editable at runtime (even if bash magic was kewl)

Offline

#68 2012-01-17 15:04:34

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

The branch that has support for iphone/ipod touch is actually behind of some commits, if someone finds that useful and is willing to do some harmless testing i'll update it and merge it to the main version.

Offline

#69 2012-02-28 01:57:25

mkaito
Member
From: Spain
Registered: 2010-06-12
Posts: 126
Website

Re: ldm - Lightweight Device Mounter

This is screaming for a PKGBUILD in AUR.

EDIT: Also, do you guys just sudo umount when done? Or am I doing something wrong as to not being able to unmount as regular user?

Last edited by mkaito (2012-02-28 03:48:43)


Fear me! I have root! Sometimes...

Offline

#70 2012-02-28 05:51:07

c00kiemon5ter
Member
From: Greece
Registered: 2010-06-01
Posts: 562
Website

Re: ldm - Lightweight Device Mounter

I think it's

$ ldm remove ..

.:[ git me! ] :.

Offline

#71 2012-02-28 16:57:14

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

This is the aur package big_smile
The unmount can be easily done using the pumount utility that can be found in the pmount package

Offline

#72 2012-03-12 16:59:46

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: ldm - Lightweight Device Mounter

I've got a very weird device which ldm doesn't seem to see at all: an Agfa digital photo frame. dmesg throws up /dev/sdc, sdd, sde, and sdf when it's plugged in; sdf is where the photos are actually stored. This can be manually mounted by udisks. Output which might be of use follows:

dmesg

[ 5410.926152] usb 1-6: new high-speed USB device number 5 using ehci_hcd
[ 5411.054222] usb-storage 1-6:1.0: Quirks match for vid 067b pid 1063: 20000
[ 5411.054251] scsi5 : usb-storage 1-6:1.0
[ 5412.056967] scsi 5:0:0:0: Direct-Access     PL1063   USB              0100 PQ: 0 ANSI: 4
[ 5412.059001] sd 5:0:0:0: Attached scsi generic sg4 type 0
[ 5412.060235] scsi 5:0:0:1: Direct-Access     PL1063   ALLIN1           0100 PQ: 0 ANSI: 4
[ 5412.060578] sd 5:0:0:1: Attached scsi generic sg5 type 0
[ 5412.063495] scsi 5:0:0:2: Direct-Access     PL1063   IDE              0100 PQ: 0 ANSI: 4
[ 5412.063839] sd 5:0:0:2: Attached scsi generic sg6 type 0
[ 5412.064470] sd 5:0:0:0: [sdc] Attached SCSI removable disk
[ 5412.067712] sd 5:0:0:1: [sdd] Attached SCSI removable disk
[ 5412.068483] scsi 5:0:0:3: Direct-Access     PL1063   OBNAND           0100 PQ: 0 ANSI: 4
[ 5412.068824] sd 5:0:0:3: Attached scsi generic sg7 type 0
[ 5412.071340] sd 5:0:0:2: [sde] Attached SCSI removable disk
[ 5412.071840] sd 5:0:0:3: [sdf] 222000 512-byte logical blocks: (113 MB/108 MiB)
[ 5412.072587] sd 5:0:0:3: [sdf] Write Protect is off
[ 5412.072595] sd 5:0:0:3: [sdf] Mode Sense: 27 00 00 00
[ 5412.074465] sd 5:0:0:3: [sdf] Incomplete mode parameter data
[ 5412.074473] sd 5:0:0:3: [sdf] Assuming drive cache: write through
[ 5412.076842] sd 5:0:0:3: ioctl_internal_command return code = 8000002
[ 5412.076848]    : Sense Key : 0x0 [current] 
[ 5412.076852]    : ASC=0x0 ASCQ=0x1
[ 5412.080464] sd 5:0:0:3: [sdf] Incomplete mode parameter data
[ 5412.080471] sd 5:0:0:3: [sdf] Assuming drive cache: write through
[ 5412.097901]  sdf:
[ 5412.102445] sd 5:0:0:3: [sdf] Incomplete mode parameter data
[ 5412.102452] sd 5:0:0:3: [sdf] Assuming drive cache: write through
[ 5412.102457] sd 5:0:0:3: [sdf] Attached SCSI removable disk
[ 5412.104831] sd 5:0:0:3: ioctl_internal_command return code = 8000002
[ 5412.104837]    : Sense Key : 0x0 [current] 
[ 5412.104842]    : ASC=0x0 ASCQ=0x1

udisks --dump (relevant devices only):

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdc
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host5/target5:0:0/5:0:0:0/block/sdc
  device:                      8:32
  device-file:                 /dev/sdc
    presentation:              /dev/sdc
    by-id:                     /dev/disk/by-id/usb-PL1063_USB_3135204E6F76-0:0
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:6:1.0-scsi-0:0:0:0
  detected at:                 Mon 12 Mar 2012 15:56:49 GMT
  system internal:             0
  removable:                   1
  has media:                   0
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    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:           
  automount hint:              
  size:                        0
  block size:                  0
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  drive:
    vendor:                    PL1063
    model:                     USB
    revision:                  0100
    serial:                    3135204E6F76
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdd
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host5/target5:0:0/5:0:0:1/block/sdd
  device:                      8:48
  device-file:                 /dev/sdd
    presentation:              /dev/sdd
    by-id:                     /dev/disk/by-id/usb-PL1063_ALLIN1_3135204E6F76-0:1
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:6:1.0-scsi-0:0:0:1
  detected at:                 Mon 12 Mar 2012 15:56:49 GMT
  system internal:             0
  removable:                   1
  has media:                   0
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    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:           
  automount hint:              
  size:                        0
  block size:                  0
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  drive:
    vendor:                    PL1063
    model:                     ALLIN1
    revision:                  0100
    serial:                    3135204E6F76
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sde
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host5/target5:0:0/5:0:0:2/block/sde
  device:                      8:64
  device-file:                 /dev/sde
    presentation:              /dev/sde
    by-id:                     /dev/disk/by-id/usb-PL1063_IDE_3135204E6F76-0:2
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:6:1.0-scsi-0:0:0:2
  detected at:                 Mon 12 Mar 2012 15:56:49 GMT
  system internal:             0
  removable:                   1
  has media:                   0
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    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:           
  automount hint:              
  size:                        0
  block size:                  0
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  drive:
    vendor:                    PL1063
    model:                     IDE
    revision:                  0100
    serial:                    3135204E6F76
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

========================================================================
Showing information for /org/freedesktop/UDisks/devices/sdf
  native-path:                 /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host5/target5:0:0/5:0:0:3/block/sdf
  device:                      8:80
  device-file:                 /dev/sdf
    presentation:              /dev/sdf
    by-id:                     /dev/disk/by-id/usb-PL1063_OBNAND_3135204E6F76-0:3
    by-path:                   /dev/disk/by-path/pci-0000:00:1d.7-usb-0:6:1.0-scsi-0:0:0:3
  detected at:                 Mon 12 Mar 2012 15:56:51 GMT
  system internal:             0
  removable:                   1
  has media:                   1 (detected at Mon 12 Mar 2012 15:56:51 GMT)
    detects change:            1
    detection by polling:      1
    detection inhibitable:     1
    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:           
  automount hint:              
  size:                        113664000
  block size:                  512
  job underway:                no
  usage:                       
  type:                        
  version:                     
  uuid:                        
  label:                       
  drive:
    vendor:                    PL1063
    model:                     OBNAND
    revision:                  0100
    serial:                    3135204E6F76
    WWN:                       
    detachable:                1
    can spindown:              0
    rotational media:          Yes, unknown rate
    write-cache:               unknown
    ejectable:                 0
    adapter:                   Unknown
    ports:
    similar devices:
    media:                     
      compat:                 
    interface:                 usb
    if speed:                  480000000 bits/s
    ATA SMART:                 not available

Could ldm be made to handle this odd device? (It works fine for other removable devices I have.)
wink

Offline

#73 2012-03-12 17:17:19

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

Could you please post me your /var/log/daemon.log ?

Offline

#74 2012-03-12 17:41:57

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: ldm - Lightweight Device Mounter

TheLemonMan wrote:

Could you please post me your /var/log/daemon.log ?

Sure, here's what happens after restarting the ldm daemon; I note that it automatically mounts my NTFS sda1 drive first, but then I plug in the digital photo frame and nothing new appears in the log at all:

Mar 12 17:36:44 localhost ldm: ldm 0.2
Mar 12 17:36:44 localhost ldm: Starting up...
Mar 12 17:36:44 localhost ntfs-3g[1848]: Version 2012.1.15 external FUSE 28
Mar 12 17:36:44 localhost ntfs-3g[1848]: Mounted /dev/sda1 (Read-Write, label "sda1", NTFS 3.1)
Mar 12 17:36:44 localhost ntfs-3g[1848]: Cmdline options: rw,nosuid,nodev,noauto,users,uid=1000,gid=100,uid=1000,gid=100,umask=0022
Mar 12 17:36:44 localhost ntfs-3g[1848]: Mount options: rw,nosuid,nodev,users,allow_other,nonempty,relatime,fsname=/dev/sda1,blkdev,blksize=4096,default_permissions
Mar 12 17:36:44 localhost ntfs-3g[1848]: Global ownership and permissions enforced, configuration type 1
Mar 12 17:36:44 localhost ldm: Error while executing mount
Mar 12 17:36:44 localhost ldm: Entering the main loop

Looks as though it's blissfully unaware of it ....

Offline

#75 2012-03-12 17:50:22

TheLemonMan
Member
From: Italy
Registered: 2011-09-04
Posts: 214
Website

Re: ldm - Lightweight Device Mounter

What filesystem is on the device ?

Offline

Board footer

Powered by FluxBB