My laptop has a built in SD card adapter, which is unfortunately the only way to extend its storage as it does not have SATA or M.2 connectors inside.
I wanted to set up hibernation with a fast 128 GB SD card that I have been using with the laptop for 2 years. I have a 10 GB swap partition on the card, which I set up in fstab, and is generally working fine. I also added the resume=UUID=xxxxkernel parameter to GRUB with the UUID of the swap partition, and /proc/cmdline confirms that linux knows about it.
When I first tried to hibernate, it went down as expected, but it did not even try to resume. On my PC where I hibernate to SSD, while resuming the log stops at a systemd line from which I recognize that its loading back the hibernation state. But not here.
Logs according to sudo journalctl --bootalso do not have any lines containing “resume” other than those including the kernel parameters.
Then I added resumedelay=10, updated grub and rebooted, and now when resuming from hibernation the same thing happens but with a 10 second delay at a certain point in the boot process, and nothing about it in the logs. From that what I suspect is that early boot does not detect the SD card or the filesystems on it.
But I dont know how to figure out why is that. Could you please help in figuring this out?
The fstab entry:
UUID=77954a31-5af4-4a5b-828b-e95796f2deb4 none swap defaults,auto 0 0
lsblk showing the device name and UUID:
MODEL NAME LABEL PATH SIZE FSSIZE FSTYPE MOUNTPOIN UUID PARTUUID
STORAGE DEVICE sda /dev/sda 116,1G
├─sda1 /dev/sda1 10G swap [SWAP] 77954a31-5af4-4a5b-828b-e95796f2deb4 3327a387-01
└─sda2 sdpool /dev/sda2 106,1G zfs_member 7531262699245233092 3327a387-02
/proc/cmdline:
BOOT_IMAGE=/boot/vmlinuz-6.4.0-150600.21-default root=UUID=a9f5b3dd-55ed-4b94-980a-1fdc61c5b09b splash=verbose preempt=full quiet security=apparmor zswap.enabled=1 zswap.compressor=lz4 zswap.max_pool_percent=30 zswap.zpool=zsmalloc delayacct i915.dmc_firmware_path= mitigations=auto resume=UUID=77954a31-5af4-4a5b-828b-e95796f2deb4 resumedelay=10
My laptop is a lenovo 500e chromebook 2nd gen, with 8 GB RAM and soldered MMC main storage.
The SD card reader shows up both in lsusb and lspci:
sudo lspci
[...]
00:1c.0 SD Host controller: Intel Corporation Celeron/Pentium Silver Processor SDA Standard Compliant SD Host Controller (rev 06)
[...]
sudo lsusb
Bus 002 Device 002: ID 05e3:0747 Genesys Logic, Inc. USB Storage
[...]