Re: An answer to "Gave up waiting for suspend/resume device"
- Date: Thu, 28 Sep 2017 10:29:27 +0200
- From: Pascal Hambourg <pascal@xxxxxxxxxxxxxxx>
- Subject: Re: An answer to "Gave up waiting for suspend/resume device"
Le 28/09/2017 à 09:39, Jimmy Johnson a écrit :
On 09/27/2017 02:38 AM, Pascal Hambourg wrote:
Le 27/09/2017 à 10:37, Jimmy Johnson a écrit :
But if everything is correct and you are using lets say sda1 as
root in your fstab your system will use sda1 as the LABEL, I've seen
this over and over.
Nonsense. sda1 is the block device name and does not have anything to
do with the LABEL which is a filesystem metadata field.
But all this is advanced setup for people running more than one Linux
system and having to edit UUID on all systems because you install a
new system is undesirable.
No it does not have anything to do with multiple Linux systems.
In fstab a label is used as a device name, a uuid is used as a device
name and /dev/sda1 is a device name, you are just trying to make
nonsense out of nothing.
A label or a UUID are not really used as device names, they are used
*instead* of a device name.
Anyway, this is not the same as what you wrote earlier and is pure
"your system will use sda1 as the LABEL"
Unless you meant "define 'sda1' as the filesystem/swap label and use
LABEL='sda1' in /etc/fstab", which is a really bad use of labels leading
to confusion between labels and device names. Labels are meant to be
explicit about the contents, not the container.
And editing multiple fstab config files because I've installed a new
system is, like I said undesirable and why I use device names in both my
fstab and grub boot menu. As you know when a new system is installed
swap is formatted and it's uuid gets changed every time it's formatted.
The Debian installer does this, but I am not sure that all other distro
installers do the same. Moreover, the Debian installer will format an
existing swap only if that swap is marked for use (the trick is that all
existing swaps are automatically marked for use by default, so you have
to pay attention and unmark them if you do not want them to be
formatted). IMO this is a real bug in the installer.
So my general policy when installing Debian is to mark any existing swap
as "not used", and if I want to share an existing swap, I add the line
manually in /etc/fstab in the new system after the installation.
To address this swap sharing issue you may be interested in the GPT
partition scheme : among other advantages, it supports partition labels
and UUIDs (PARTLABEL and PARTUUID) which are independent of the contents
of the partition, so they do not change when the partition is formatted.
Debian supports them in /etc/fstab since Jessie.
Recent kernel emulates partition UUIDs with legacy MBR/DOS partition
scheme, but they are less reliable because these PARTUUID contain the
partition number, and logical partitions may be renumbered after
creating or removing another logical partition. That is another reason
not to use logical partition device names in /etc/fstab.