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

Mounting new external storage device with same volume label as old one (want to lose the -1)



Hi,

Due to a hardware failure I have bought a new external harddisk. I gave this 
disk the same volume name as the one it replaces. This is convenient for me, 
because I use the automatically generated mountpoint in some scripts [1].

However when I mount the new disk it gets a suffix appended to it volume name 
(/media/mydisk-1 instead of just /media/mydisk). I presume the UUID of the old 
disk with the same volume label is retained somewhere causing the system to 
append the suffix in order to generate a unique name.

Could someone tell me how to get rid of this? I did some searching under /etc 
and with Google, but my Google-foo must be lacking.

[1] I know I could list it in fstab by UUID and explicitly assign a 
mountpoint, but then I would have to do that on multiple systems.

Grx HdV


Reply to: