You are not logged in.

#1 2009-11-06 04:47:42

overlord_manny
Member
Registered: 2009-10-16
Posts: 11

(SOLVED)Rename usb mounts? --- hal

Does anyone know if there is a way to change the name that hal gives to the folder of automounted usb thumbdrives. I assume that the name comes from the hardware. One of my thumbdrives always mounts as 4D14-E2D2 and the other always as BC80-EDAF. Though it is a minor complaint, it would be nice to have folder names that are easier to remember.

Last edited by overlord_manny (2009-11-08 06:36:05)

Offline

#2 2009-11-06 14:09:21

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: (SOLVED)Rename usb mounts? --- hal

Personally to get a chosen label I created a /etc/hal/fdi/policy/20-storage.fdi file containing :

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
        <match key="volume.uuid" string="DA8E-98E0">
            <merge key="volume.label" type="string">storage1</merge>
        </match>
        ...  the same for each device I use
  </device>
</deviceinfo>

the volume.uuid string is seen with lshal after the device was plugged in.
With that, the memory stick is mounted in /media/storage1 which is created when the device is automounted.

Offline

#3 2009-11-06 15:15:28

robertp
Member
From: Warszawa, Poland
Registered: 2007-09-11
Posts: 123

Re: (SOLVED)Rename usb mounts? --- hal

Yes. Just set label for the partition using ntfslabel, e2label or similar program. It works nicely for my USB HDD which has 3 NTFS partitions.

Offline

#4 2009-11-08 06:34:55

overlord_manny
Member
Registered: 2009-10-16
Posts: 11

Re: (SOLVED)Rename usb mounts? --- hal

Thanks for the help worked like a charm.

Offline

Board footer

Powered by FluxBB