Mount points for USB media

Derek Broughton news at pointerstop.ca
Fri Feb 3 14:13:00 UTC 2006


Thilo Six wrote:

> Jose Gomez-Dans schrieb am 02.02.2006 19:46:
>> Hi!
>> I have an external USB disk where I store most of my media. It works
>> fine in kubuntu: I put the cable in, and I get an icon on the desktop.
>> Great, as it should be. However, when I mount said disk, it appears as
>> either /media/usbdisk0, /media/sda1, /media/sdb1, or /media/sdc1. This
>> is very annoying, as I would like things such as amarok to use the
>> collection of files on the disk, rather than point to the disk
>> everytime its mount point changes and re-scan.
>> 
>> Can anyone suggest anything? I don't have an entry for USB media on my
>> /etc/fstab entry, so I assume that this is a HAL-related issue.
> 
> My experience is that you get stable links in /media/, when you set a
> label during formating the device.
> 
> e.g. for ext2:
> mke2fs -v -L blue -j /dev/sda1
> 
> e.g. for vfat:
> mkdosfs -v -n dos-part /dev/sda1
> 
> I don?t know if it possible for you to format this device or set a label
> without formating.

This is true - hal (?) will use the label name.  If setting a label is
impossible at this point, it's easy enough to modify udev settings
(in /etc/udev/rules.d/) to ensure that it always has the same name.
-- 
derek





More information about the kubuntu-users mailing list