[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Hidden UUID?



On 18.10.2023 12:01, Hans wrote:
Hi folks,

maybe you can help. I am running into a strange problem.

It is the following:

My swap partition is a logical partition on an extended partition.
This swap was formerly luks encrypted and got an UUID beginning with 
UUID=30e885.....

Then I deciced, to format the swap partitition and use it as a normal swap 
partition. So I erased all keys (using cryptsetup erase /dev/sda5) and then 
reformatted it with swapon.

Additionally I removed the entry from /etc/crypttab and edited /etc/fstab.

So far, everything worked fine, except next boot. 

When booting, cryptsetup wants to open my other encrypted partitions and then 
it is hanging, saying "searching for encrypted device UUID=30e885....".

I looked everywhere, but I found no entry, where the system gets this UUID.

Did you also changed initramfs resume config file, which designates a swap partition to use for Hibernation?
$ /sbin/blkid | grep swap
/dev/sdb6: LABEL="swap" UUID="e990fa6d-3f82-4d65-b6a1-542e240718fc" TYPE="swap" PARTLABEL="Debian-swap" PARTUUID="addbc03b-f50e-4175-95b4-91b7b1c8fdca"
$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=e990fa6d-3f82-4d65-b6a1-542e240718fc
Don't forget to update initrd file if you change resume file:
$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.1.0-13-amd64

--
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

Reply to: