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
Debian Changing Swap UUID
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?
Re: Debian Changing Swap UUID
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."
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
- 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
It is possible to de-select the "format" option for the swap partition and this will retain the UUID.
deadbang
- 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
+1Head_on_a_Stick wrote:It is possible to de-select the "format" option for the swap partition and this will retain the UUID.
I am not irrational, I'm just quantum probabilistic.
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Debian Changing Swap UUID
Because you want to keep the metadata or contents of the partition.bw123 wrote: why it would be good idea to use an existing partition without creating a new fs on it by default?
Note that swap is not a filesystem.
IME, it is not possible. The only option is to not use the swap partition.Head_on_a_Stick wrote:It is possible to de-select the "format" option for the swap partition
Re: Debian Changing Swap UUID
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.
- 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
Have you tried recently?p.H wrote:IME, it is not possible. The only option is to not use the swap partition.Head_on_a_Stick wrote:It is possible to de-select the "format" option for the swap partition
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
deadbang
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Debian Changing Swap UUID
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 !
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 !
- 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
No, you didn't miss anything at all, I am talking out of my ass on this one (again).p.H wrote:Did I miss something ?
You are right, I've just tried in QEMU and formatting the swap is the only option, thanks for correcting my nonsense.
deadbang
-
- Global Moderator
- Posts: 3049
- Joined: 2017-09-17 07:12
- Has thanked: 5 times
- Been thanked: 132 times
Re: Debian Changing Swap UUID
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.
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.
-
- Posts: 39
- Joined: 2019-03-20 18:25
- Has thanked: 5 times
- Been thanked: 4 times
Re: Debian Changing Swap UUID
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.
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times