Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian Changing Swap UUID

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
TNKEG
Posts: 6
Joined: 2018-03-08 14:53

Debian Changing Swap UUID

#1 Post by TNKEG »

I would like to mention that I noticed that when Debian installs alongside other Linux distro's the Debian installer is changing the /swap UUID and label.It caused timeouts in the boot of the others while looking for the old UUID of /swap for resume.This was correctable on my end with tweaks in the other OS but difficult if not impossible in the Mandriva based systems.Linux is known to work well alongside other operating systems and it was a surprise that it occurred.It would be nice if someone upstream would look into this issue?

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian Changing Swap UUID

#2 Post by bw123 »

I think this has been written about on the forum quite a bit. Would be good item in a FAQ.
http://forums.debian.net/search.php?keywords=swap+uuid

I believe the partitioning section of the installer is pretty clear about what it does. If you choose to use an existing partition, and format it, then of course the UUID will change. I don't know why it would be good idea to use an existing partition without creating a new fs on it by default? One way I have gotten around this in the past is choose no swap, then add it to fstab later after installation. The mkswap command also has options for -U and label, so you could change them back to what the other linuxes are looking for.

Anyway, the forum isn't the right place to report issues, it's for helping users. This topic is probably better placed in "installation."
resigned by AI ChatGPT

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Debian Changing Swap UUID

#3 Post by Head_on_a_Stick »

It is possible to de-select the "format" option for the swap partition and this will retain the UUID.
deadbang

User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

Re: Debian Changing Swap UUID

#4 Post by ticojohn »

Head_on_a_Stick wrote:It is possible to de-select the "format" option for the swap partition and this will retain the UUID.
+1
I am not irrational, I'm just quantum probabilistic.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian Changing Swap UUID

#5 Post by p.H »

bw123 wrote: why it would be good idea to use an existing partition without creating a new fs on it by default?
Because you want to keep the metadata or contents of the partition.
Note that swap is not a filesystem.
Head_on_a_Stick wrote:It is possible to de-select the "format" option for the swap partition
IME, it is not possible. The only option is to not use the swap partition.

TNKEG
Posts: 6
Joined: 2018-03-08 14:53

Re: Debian Changing Swap UUID

#6 Post by TNKEG »

Thank you for your quick replies.If I have to reinstall in the future I will keep in mind what you've said or just install Debian first.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Debian Changing Swap UUID

#7 Post by Head_on_a_Stick »

p.H wrote:
Head_on_a_Stick wrote:It is possible to de-select the "format" option for the swap partition
IME, it is not possible. The only option is to not use the swap partition.
Have you tried recently?

I used a 9.3 ISO image last weekend several times and I disabled formatting of the swap partition to avoid just this problem with the pre-existing Debian system, the swap partition's UUID was then not changed and the partition was indeed added to the new system's fstab.

EDIT: please don't make me load the Gtk installer to prove you wrong by scrot, I hate using that :P
deadbang

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian Changing Swap UUID

#8 Post by p.H »

I hadn't tried recently, so I booted the Debian 9.3 multiarch netinst ISOhybrid image from a USB drive and tried again, full of hope.
But still no joy : the only choice is to either not use the existing swap partition or use it as swap and format it (the default). I cannot find any option to use the partition as swap without formatting it. So I did not proceed further.
Did I miss something ? I really wish you were right !

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Debian Changing Swap UUID

#9 Post by Head_on_a_Stick »

p.H wrote:Did I miss something ?
No, you didn't miss anything at all, I am talking out of my ass on this one (again).

You are right, I've just tried in QEMU and formatting the swap is the only option, thanks for correcting my nonsense.
deadbang

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian Changing Swap UUID

#10 Post by p.H »

Thanks for taking the time to double check.

Maybe you were mistaken because you set the swap as "do not use" in order not to change its UUID but observed that after booting the new system the swap was used anyway, and assumed that it had been added to its fstab. This happens with systemd and GPT : by defaults systemd uses swap partitions on a GPT system disk even if they are not declared in fstab.

debian-2019
Posts: 39
Joined: 2019-03-20 18:25
Has thanked: 5 times
Been thanked: 4 times

Re: Debian Changing Swap UUID

#11 Post by debian-2019 »

Any idea if the Debian developers will ever provide an option not to format the swap partition during install (to prevent changing the swap UUID)? This is becoming a pain to me as I am doing test installs of different Debian ISOs every week on my multi-boot machine.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Debian Changing Swap UUID

#12 Post by Head_on_a_Stick »

Ask on the mailing lists.
deadbang

Post Reply