Changes

From SME Server
Jump to navigationJump to search
489 bytes added ,  01:21, 12 December 2010
Line 206: Line 206:  
  hal-get-property --udi /org/freedesktop/Hal/devices/volume_uuid_AD6E_01EE --key block.device  
 
  hal-get-property --udi /org/freedesktop/Hal/devices/volume_uuid_AD6E_01EE --key block.device  
 
  /dev/sda1
 
  /dev/sda1
 +
 +
A useful script
 +
#! /bin/bash
 +
hal-find-by-property --key volume.fsusage --string filesystem |
 +
while read udi ; do
 +
    # ignore optical discs
 +
    if [[ "$(hal-get-property --udi $udi --key volume.is_disc)" == "false" ]]; then
 +
        dev=$(hal-get-property --udi $udi --key block.device)
 +
        fs=$(hal-get-property --udi $udi --key volume.fstype)
 +
        lb=$(hal-get-property --udi $udi --key volume.label)
 +
        echo $dev": label "$lb",file system: "$fs ",uid: "$udi
 +
    fi
 +
done
    
Then check a mount point exists or create one, and monut
 
Then check a mount point exists or create one, and monut

Navigation menu