Re: Mounting new external storage device with same volume label as old one (want to lose the -1)
On Sb, 28 aug 10, 11:48:25, J.A. de Vries wrote: 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. It might depend on your (auto)mount method. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic signature.asc Description: Digital signature
Re: Mounting new external storage device with same volume label as old one (want to lose the -1)
Hi Andrei, I use the KDE device notifier to mount the disk. I am not really sure if that has its own automount mechanism though. Grx HdV -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201008281218.29340.hdv.ja...@gmail.com
Re: Mounting new external storage device with same volume label as old one (want to lose the -1)
On Sat, 28 Aug 2010 11:48:25 +0200, J.A. de Vries wrote: 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. Enforce the use of the label in /etc/fstab and mount the disk out of / media which is handle automatically by udev. Static mount point should be defined in /etc/fstab. You could also create your own udev rule to supersede the auto-renaming of udev system. I assume the nature of the udev /media mount point is precisely to avoid name collisions. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pan.2010.08.28.11.33...@gmail.com
Re: Mounting new external storage device with same volume label as old one (want to lose the -1)
Hi Camaleon, Enforce the use of the label in /etc/fstab and mount the disk out of / media which is handle automatically by udev. Static mount point should be defined in /etc/fstab. Yes, I know that is an option, but as I wrote I don't want to have to edit fstab on all the systems involved. If possible I'd like to remove the reference to the old disk so the '-1' suffix won't be used anymore. Grx HdV -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201008281500.15731.hdv.ja...@gmail.com