You are not logged in.
Pages: 1
Hi,
first of all I followed the instructions from the wiki [1] but it's not working for me.
I identified the UUID of the partition containing the swap file
$ findmnt -no UUID -T /swapfile
---------
51557bdf-b990-4a05-bf4f-4d2626f47457and the file offset
$ sudo filefrag -v /swapfile | head -n 10
---------
Filesystem type is: ef53
File size of /swapfile is 12884901888 (3145728 blocks of 4096 bytes)
ext: logical_offset: physical_offset: length: expected: flags:
0: 0.. 0: 18286592.. 18286592: 1:
1: 1.. 2047: 18286593.. 18288639: 2047: unwritten
2: 2048.. 6143: 3717120.. 3721215: 4096: 18288640: unwritten
3: 6144.. 8191: 2793472.. 2795519: 2048: 3721216: unwritten
4: 8192.. 12287: 2766848.. 2770943: 4096: 2795520: unwritten
5: 12288.. 14335: 2775040.. 2777087: 2048: 2770944: unwritten
6: 14336.. 16383: 1701888.. 1703935: 2048: 2777088: unwrittenWhich resulted in the following configuration
$ cat /etc/mkinitcpio.conf | grep ^HOOKS
---------
HOOKS=(base udev autodetect microcode modconf kms keyboard keymap consolefont block filesystems resume=UUID=51557bdf-b990-4a05-bf4f-4d2626f47457 resume_offset=18286592 fsck)But building the initramfs image results in an error
$ sudo mkinitcpio -p linux
---------
...
==> ERROR: Hook 'resume=UUID=51557bdf-b990-4a05-bf4f-4d2626f47457' cannot be found
==> ERROR: Hook 'resume_offset=18286592' cannot be found
...Did I overlooked something?
[1] https://wiki.archlinux.org/title/Power_ … _initramfs
Last edited by M5Hc6UsQ (2024-07-25 13:53:04)
Offline
The UUIDs should be applied as a kernel parameter. They do not belong in the HOOKS array.
Jin, Jîyan, Azadî
Offline
Oh boy... Thank you! ![]()
Offline
Pages: 1