RESUME variable unter Debian setzen

Da sich die UUID meiner Swap-Partition unter Debian geändert hatte, kam es zu einer Fehlermeldung beim Systemupdate:

update-initramfs: Generating /boot/initrd.img-4.9.0-6-686-pae
W: initramfs-tools configuration sets RESUME=UUID=6c35f139-43e3-492a-926c-9a2726508f16
W: but no matching swap device is available.
I: The initramfs will attempt to resume from /dev/sda2
I: (UUID=a295fc10-94ae-4df8-b9f8-20a30fa2c351)
I: Set the RESUME variable to override this.
Trigger für libc-bin (2.24-11+deb9u3) werden verarbeitet ...
Trigger für libreoffice-common (1:5.2.7-1+deb9u3) werden verarbeitet ...

Zunächst musste also geprüft werden, welches die korrekte ID ist. Das lässt sich mit fdisk und blkid sehr leicht herausfinden:

root:~# fdisk -l
Disk /dev/sda: 59,6 GiB, 64023257088 bytes, 125045424 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0004b959

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 63 117187562 117187500 55,9G 83 Linux
/dev/sda2 117188608 125045423 7856816 3,8G 83 Linux
root:~# blkid /dev/sda2
/dev/sda2: UUID=”a295fc10-94ae-4df8-b9f8-20a30fa2c351″ TYPE=”swap” PARTUUID=”0004b959-02″

Nachdem die korrekte id gefunden war, wurde diese nun noch in /etc/initramfs-tools/conf.d/resume eingetragen. und das System aktualisiert.

root:~# cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=6c35f139-43e3-492a-926c-9a2726508f16
root:~# echo "RESUME=UUID=a295fc10-94ae-4df8-b9f8-20a30fa2c351" > /etc/initramfs-tools/conf.d/resume
root:~# update-initramfs -u -k all
update-initramfs: Generating /boot/initrd.img-4.9.0-6-686-pae
update-initramfs: Generating /boot/initrd.img-4.9.0-5-686-pae

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

*