Re: Disks renamed after update to 'testing'...?
Urs Thuermann <urs@isnogud.escape.de> writes:
> IMO the best solution is to use LVM. I use it since 2001 on most
> drives and I don't have partitions. And I prefer to use device names
> over using the *UUID or *LABEL prefixes. With LVM, device names are
> predictable /dev/mapper/<vg-name>-<lv-name> with symlinks
> /dev/<vg-name>/<lv-name>.
Following up myself: The reason I prefer stable device names instead
of UUIDs or LABELs is that device names show up in some places even if
you use UUID or LABEL in /etc/fstab or in your command line:
On my laptop I have UUID in /etc/fstab but df still shows the device
name:
$ grep -w / /etc/fstab
# / was on /dev/nvme0n1p2 during installation
UUID=c73ff331-0ff5-44fb-8aef-228e64a96175 / ext4 errors=remount-ro 0 1
$ df | grep -w /
/dev/nvme0n1p2 237470384 107725172 117659352 48% /
On my server with LVM I get:
$ grep -w / /etc/fstab
/dev/mapper/vg0-root / ext4 errors=remount-ro 0 1
$ df | grep -w /
/dev/mapper/vg0-root 2031440 659132 1261556 35% /
urs
Reply to: