You are not logged in.
Pages: 1
I have arch linux installed on a USB as a persistent operating system. It works perfectly fine with the exception of being able to hibernate. I made sure to add the proper amount of swap to cover my ram to be able to hibernate into.
Each time it boots it states:
Failed to stat resume device...
followed by the swap UUID number.
But that UUID number exists and is correct:
$ blkid
/dev/sda2: LABEL="SWAP" UUID="83badbf0-4903-4729-8529-1452ca60d1d7" TYPE="swap" PARTLABEL="SWAP" PARTUUID="3b9edf5b-da65-45a4-b40f-50a6ccbfa971"
/dev/sda3: LABEL="ROOT" UUID="0341d5db-38ac-40e5-8e9c-29060d168e0c" UUID_SUB="2984163e-43b2-4975-bb93-5b02cd26ec6e" BLOCK_SIZE="4096" TYPE="btrfs" PARTLABEL="ROOT" PARTUUID="1991470b-c979-43be-8f28-13bb4741afd5"
/dev/sda1: LABEL_FATBOOT="EFI" LABEL="EFI" UUID="8E44-60E3" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="ESP" PARTUUID="9b19a514-d3d9-49dc-8c7f-51a9899e2893"
/etc/defaults/grub:
...GRUB_CMDLINE_LINUX="...resume=UUID=83badbf0-4903-4729-8529-1452ca60d1d7"
And it's also put into /etc/fstab:
...UUID=83badbf0-4903-4729-8529-1452ca60d1d7 none swap defaults 0 0...
I then tell gnome to hibernate. It appears to hibernate, taking a while before the machine shuts off. Then it turns back on and displays an error telling me it was unable to resume from the hibernation.
The exact same setup on a regular PC disk works fine but not on a USB. I've tried with several different distros and all have this same error.
Am I doing something wrong or is hibernating on an operating system that's installed on a USB simply not possible due to USB device limitations?
Offline
Did you setup the resume hook in mkinitcpio?
That said even if it would work, it's not a very good idea and will kill your USB in no time if you're dumping all your RAM contents. An USB is not a cheap SSD and it has limited write cycles.
Offline
Did you setup the resume hook in mkinitcpio?
Yes, it is defined too:
HOOKS=(base udev keyboard autodetect kms modconf block filesystems liveroot resume)
That said even if it would work, it's not a very good idea and will kill your USB in no time if you're dumping all your RAM contents. An USB is not a cheap SSD and it has limited write cycles.
Surely hibernating once in a while wouldn't cause harm if the USB is capable of thousands of read/write cycles?
Offline
Pages: 1