Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #187347

Re: An answer to "Gave up waiting for suspend/resume device"

From Pascal Hambourg <pascal@plouf.fr.eu.org>
Newsgroups linux.debian.user
Subject Re: An answer to "Gave up waiting for suspend/resume device"
Date 2017-09-28 10:30 +0200
Message-ID <uuCmK-6C9-15@gated-at.bofh.it> (permalink)
References (2 earlier) <utNkd-6h0-3@gated-at.bofh.it> <utUlH-2Sr-5@gated-at.bofh.it> <uug2S-8no-17@gated-at.bofh.it> <uugYW-xV-7@gated-at.bofh.it> <uuBK2-68e-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 
nonsense :

"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.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

An answer to "Gave up waiting for suspend/resume device" Mark Luxton <truthseeker9@yahoo.ca> - 2017-09-23 06:50 +0200
  Re: An answer to "Gave up waiting for suspend/resume device" Jimmy Johnson <field.engineer@gmail.com> - 2017-09-26 04:00 +0200
    Re: An answer to "Gave up waiting for suspend/resume device" Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-26 11:30 +0200
      Re: An answer to "Gave up waiting for suspend/resume device" Jimmy Johnson <field.engineer@gmail.com> - 2017-09-27 10:40 +0200
        Re: An answer to "Gave up waiting for suspend/resume device" Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-27 11:40 +0200
          Re: An answer to "Gave up waiting for suspend/resume device" Jimmy Johnson <field.engineer@gmail.com> - 2017-09-28 09:50 +0200
            Re: An answer to "Gave up waiting for suspend/resume device" Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-28 10:30 +0200
              Re: An answer to "Gave up waiting for suspend/resume device" David Wright <deblis@lionunicorn.co.uk> - 2017-09-28 21:10 +0200
  Re: An answer to "Gave up waiting for suspend/resume device" Larry Dighera <LDighera@att.net> - 2017-09-29 18:40 +0200
    Re: An answer to "Gave up waiting for suspend/resume device" Pascal Hambourg <pascal@plouf.fr.eu.org> - 2017-09-29 19:50 +0200

csiph-web