Transition to Kubuntu

Toby Dickenson toby at tarind.com
Thu Jul 13 20:07:59 UTC 2006


Ylan Segal wrote:

> Follow up question (for a workaround):
> 
> What command can I use to obtain the name of a fat volume? makedosfs
> lets you specify a volume name when creating a new file system, but I
> can't find how to read the volume name of an existing file system.
> 
> I figure that my script can check all /media/sbdXX for the name I am
> looking for and use the one that matches. Ugly workaround, but beats
> having to change the sdb each time I run it!

You can get all the information you want from hal. To see what information
is available, run:

$ hal-device

There are various programs which all start with "hal-" for querying this....
tab completion is your friend. For example, to find the device name of your
fat volume named MYVOLUME:

$ hal-get-property --udi /org/freedesktop/Hal/devices/volume_lab\
el_MYVOLUME --key block.device
/dev/sda1


I hope that helps,






More information about the kubuntu-users mailing list