You are not logged in.
Hi, I've tried to add resume=/dev/sdaX (my swap partition) to grub command line but still arch booted like usual. Please help, thanks
Last edited by reed1 (2012-09-06 10:49:50)
Offline
Add 'resume' into the HOOKS array in /etc/mkinitcpio.conf and rebuild your initramfs.
Offline
Add 'resume' into the HOOKS array in /etc/mkinitcpio.conf and rebuild your initramfs.
wow it works now, thanks lahwaacz
Last edited by reed1 (2012-09-06 10:49:00)
Offline
Can somebody please explain more precisely how do i rebuild initramfs?
I added "resume" to HOOKS in /etc/mkinitcpio.conf and tried running mkinitcpio with various params but did not get any result
Offline
Can somebody please explain more precisely how do i rebuild initramfs?
I added "resume" to HOOKS in /etc/mkinitcpio.conf and tried running mkinitcpio with various params but did not get any result
https://wiki.archlinux.org/index.php/Mk … activation
Can you please list some of the parameters / post the commands you tried?
Offline
Here's what i did:
1. added to /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="resume=/dev/sdXY"
2. sudo grub-mkconfig -o /boot/grub/grub.cfg
3. added "resume" in /etc/mkinitcpio.conf in HOOKS between "block" and "filesystems"
4. mkinitcpio -p linux
5. copied /boot/grub/grub.cfg to /media/username/disk_name/boot/grub/grub.cfg (i have GRUB installed on different HDD then Arch, that HDD is selected as first boot device in BIOS and i suppose all configs should be stored there)
6. systemctl hibernate
It goes to hibernation, but when i re-start, it boots as usual.
Last edited by dr.rock (2013-07-11 15:09:00)
Offline