USB drive naming: used to be "disc" now its "413a6509-bf..."

Hey all-

I have a question about USB drive naming.

My Maxtor external drive used to ALWAYS be named “disc” when I’d plug it into my SuSE (11.x) installs no matter which machine. Now the name is “413a6509-bf73-4945-a53b-311d8f7c6307”.

How do I set the default USB name back to “disc” so that the path is once again, “/media/disk/myfile.txt”.

I’ve got backup scripts written that use this path.

Thanks all- I hope everybody had happy holidays! Cheers.

PS, …btw, I’ve compared fstabs between an install the uses a default name of “disc” and one that uses the long string and the fstabs are identical.

I am a bit amazed by your fstab story. From the main part of what you tell my impression is that the partition is mounted by HAL. And HAL does not use fstab. So what is there in your fstab and who put it there?

AFAIK (HAL on 10.3, I have not thouroughly tested 11.2 because the kernel has a problem with my system), HAL uses the volume label of a file system to use as a mount point in /media to mount the partition. When there is none it reverts to the class of the device, which in your case is ‘disk’. It adds a number to the name when it is already in use as a mount point (it become disk-1, etc.).

It now looks as if HAL uses other characteristics od the device then the class. To find out which one, can you please give the output of

# ls -l /dev/disk/by*

I hope it is not to long. And to see what is mounted where

# mount

As you may have understand from the above, even when ‘disk’ is used you can not be sure of consistent mount point naming when you have more of those class. Thus it is preferable to put a volume label on the file system. It then wiil always be mounted on the same mount point (when you do not use the same volume label again and again of course :wink: .

Or, when you have the device ‘always’ connected to the system (that means not plug in/out regularly, but use it as every other partition inside the box), you may give it an entry in /etc/fstab. That will see that it is mounted at boot and that HAL keep its fingers of. You can also mount it then to a mountpoint of your choice instead of being restricted to /media/.