Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does anybody have some expirence with udisks, because HAL won't be longer supported on the most linux distribution, so I am thinking of to use udisks

    for UDI in $(hal-find-by-property --key storage.bus --string usb)
    HAL_TMP=`hal-get-property --udi $UDI --key storage.removable.media_available`
    if [ "$HAL_TMP" = "true" ]; then
        HAL_DEV=$(hal-get-property --udi $UDI --key block.device)
        HAL_SIZE=$(hal-get-property --udi $UDI --key storage.removable.media_size)
        HAL_TYPE=$(hal-get-property --udi $UDI --key storage.drive_type)

How do I have to adapt the above mentioned commands but use udisks instead of hal


share|improve this question

closed as off topic by SvW, Scott Pack, mdpc, Brent Pabst, rnxrx Nov 7 '12 at 20:20

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

I post it on serverfault because this script runs on a server, it checks all connected devices with HL right now. –  MeJ Nov 8 '12 at 6:51

Browse other questions tagged or ask your own question.