[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic mounting of an encrypted harddrive



Am Sonntag 25 Oktober 2009 10:28:34 schrieb Florian Kulzer:
> On Sun, Oct 25, 2009 at 00:47:38 +0200, Tobias Schula wrote:
> > Am Samstag 24 Oktober 2009 22:16:00 schrieb Florian Kulzer:
> > > On Sat, Oct 24, 2009 at 21:01:03 +0200, Tobias Schula wrote:
> 
> [...]
> 
> > > > Yes, hald is running.
> > >
> > > I would be interested in the output of this command (after the
> > > encrypted USB stick has been plugged in for at least 30 seconds):
> > >
> > > lshal -u $(hal-find-by-property --key volume.fsusage --string crypto)
> >
> > No luck with that:
> >
> > root@siduxbox:~# lshal -u $(hal-find-by-property --key volume.fsusage
> > --string crypto)
> > lshal: option requires an argument -- 'u'
> 
> That probably means that HAL does not set the crypto-related properties
> for the device, which would explain why KDE does not know how to handle
> it.
> 
> Let's try this instead:
> 
> lshal -u $(hal-find-by-property --key block.device --string '/dev/sda1')
> 
> (replace '/dev/sda1' with the correct device node for your USB stick)
> 

root@siduxbox:~# lshal -u $(hal-find-by-property --key block.device --string 
'/dev/sdc1')
udi = '/org/freedesktop/Hal/devices/volume_part1_size_640132383744'                                 
  block.device = '/dev/sdc1'  (string)                                                              
  block.is_volume = true  (bool)                                                                    
  block.major = 8  (0x8)  (int)                                                                     
  block.minor = 33  (0x21)  (int)                                                                   
  block.storage_device = 
'/org/freedesktop/Hal/devices/storage_serial_WD_6400AAK_External_57442D574D41535936373033363434_0_0'  
(string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.parent = 
'/org/freedesktop/Hal/devices/storage_serial_WD_6400AAK_External_57442D574D41535936373033363434_0_0'  
(string)
  info.product = 'Volume'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_part1_size_640132383744'  
(string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = 
'/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host4/target4:0:0/4:0:0:0/block/sdc/sdc1'  
(string)
  volume.block_size = 512  (0x200)  (int)
  volume.fstype = ''  (string)
  volume.fsusage = ''  (string)
  volume.fsversion = ''  (string)
  volume.is_disc = false  (bool)
  volume.is_mounted = false  (bool)
  volume.is_mounted_read_only = false  (bool)
  volume.is_partition = true  (bool)
  volume.label = ''  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount_point = ''  (string)
  volume.num_blocks = 1250258562  (0x4a856e82)  (uint64)
  volume.partition.flags = {} (string list)
  volume.partition.label = ''  (string)
  volume.partition.media_size = 640135028736  (0x950b056000)  (uint64)
  volume.partition.number = 1  (0x1)  (int)
  volume.partition.scheme = 'mbr'  (string)
  volume.partition.start = 32256  (0x7e00)  (uint64)
  volume.partition.type = '0x83'  (string)
  volume.partition.uuid = ''  (string)
  volume.size = 640132383744  (0x950add0400)  (uint64)
  volume.uuid = ''  (string)


Reply to: