Re: how to change the name of an USB stick?



On Sat, Nov 21, 2009 at 9:02 PM, Dieter Lukas <DieLuk1 web de> wrote:
>
> Hello,
>
> pardon the poor english of this text, please.
> I am using opensuse 11.1 and gnome 2.24.1.
>
> how to change the name of an USB stick or any other storage medium using
> Nautilus?
>
Persistent device names can be created by means of hal. Edit
/etc/hal/fdi/policy/ and add a rule like the following:

  <?xml version="1.0" encoding="UTF-8"?>
  <deviceinfo version="0.2">
  <device>
  <match key="volume.uuid" string="XXXX">
  <merge key="volume.label" type="string">my_device</merge>
  </match>
  </device>
  </deviceinfo>

In a file called for instance "mydevice.fdi".

Replace "my_device" by the name you want to give to the device, and
replace "XXXX" by the corresponding uuid of your device. To obtain the
uudi, look at ls /dev/disk/by-uuid/ -l with the device plugged and
with the device unplugged, so that you can see which name is assigned
to it.

After that restart hal.

Cheers,
Damian.


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