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

 

 

 

UUID's messed up after install to sdb3

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
ticojohn
Posts: 1284
Joined: 2009-08-29 18:10
Location: Costa Rica
Has thanked: 21 times
Been thanked: 44 times

UUID's messed up after install to sdb3

#1 Post by ticojohn »

I have Jessie i386 on a SSD and Stretch i386 on a HDD and decide to install Stretch amd64 to a new partition on the HDD. Each drive had a swap partition. The install went okay but afterwards the UUID's for the swap partitions got changed and booting was really slow as the swap partition UUIDs no longer agreed with what was in fstab.

After a LOT of reading, I found the solutions. I needed to correct fstab for each installation, change the /etc/initramfs-tools/conf.d/resume file to agree with the new UUID in fstab, and then run update-initramfs -u on each install. What a pain.

I have no idea if the changes to the UUIDs and resulting erros in fstab were a result of something I did wrong during the install of Stretch amd64 to the new HDD partition or if it is some kind of error in the installation script. But it was a huge learning experience. Has anybody else had a similar experience?
I am not irrational, I'm just quantum probabilistic.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 462 times

Re: UUID's messed up after install to sdb3

#2 Post by sunrat »

ticojohn wrote:Has anybody else had a similar experience?
Yes.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

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

Re: UUID's messed up after install to sdb3

#3 Post by ticojohn »

sunrat wrote:
ticojohn wrote:Has anybody else had a similar experience?
Yes.
Phew! Thought it was just me. :lol:
I am not irrational, I'm just quantum probabilistic.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: UUID's messed up after install to sdb3

#4 Post by debiman »

yes, i know that problem.
but i think i recently saw an installer that allowed me to re-use an existing swap partition without formatting it. not sure it was debian though.
that should help in the future.

User avatar
NFT5
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 597
Joined: 2014-10-10 11:38
Location: Canberra, Australia
Has thanked: 10 times
Been thanked: 43 times

Re: UUID's messed up after install to sdb3

#5 Post by NFT5 »

When installing Debian select the Swap partition and the option "Do not use this partition". This will prevent the partitioner from formatting and changing the UUID.

Later in the installation process, when the configurations are being done, the Swap partition will be recognised for what it is and fstab configured correctly. This happens most of the time. Occasionally the configuration process will miss the Swap partition and it just won't be used. In those uncommon instances just edit fstab to show the correct UUID for Swap. Why does this happen? Don't know. Anyway, easy to fix and if it's not there at all it won't hold up the boot by 90 seconds as a wrong UUID does.

Some distros use a smarter installer that allows the option "Use existing Swap partition". Debian is not one of those. DIYbian.

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

Re: UUID's messed up after install to sdb3

#6 Post by ticojohn »

NFT5 wrote:When installing Debian select the Swap partition and the option "Do not use this partition". This will prevent the partitioner from formatting and changing the UUID.
Thanks for that feedback. However, I don't recall seeing that option. In any case, the fix was not that hard just a bit worrisome as I had never done those kinds of things and was afraid that I might totally bugger the system. But all is now running well.

And remember kiddies, BACKUPS ARE GOOD !
I am not irrational, I'm just quantum probabilistic.

User avatar
makh
Posts: 651
Joined: 2011-10-09 09:16

Re: UUID's messed up after install to sdb3

#7 Post by makh »

debiman wrote:... an installer that allowed me to re-use an existing swap partition without formatting it...
Hi,
Most of the installers, do allow to format or skip formatting of existing swap.
ThinkPad E14: Arch, Debian Stable
GUI: Xfce

For new: Try MX Linux, Linux Mint; later join Debian Stable

Post Reply