You are not logged in.

#1 2018-01-25 06:35:03

Smit
Member
From: Pune
Registered: 2018-01-02
Posts: 51

Can't hibernate Arch Linux [SOLVED]

I had followed all the instruction as told here :- https://lampjs.wordpress.com/2014/09/27 … -solution/

but When I boot the computer I get this message

 ERROR: resume: no device specified for hibernation 

And system just reboots.

here is my /etc/mkinitcpio.conf

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES=(piix ide_disk reiserfs)
MODULES=()

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=()

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS=(base)
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS=(base udev autodetect block filesystems)
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS=(base udev block filesystems)
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS=(base udev block mdadm encrypt filesystems)
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS=(base udev block lvm2 filesystems)
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS=(base udev autodetect modconf block resume filesystems keyboard fsck)

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()

And here is my /etc/default/grub

# GRUB boot loader configuration

GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/sda8"
GRUB_CMDLINE_LINUX="acpi_sleep=nonvs"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK="y"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT="5"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE="auto"

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
GRUB_BACKGROUND="/home/smit/4136357-chinese-dragon-wallpapers.jpg"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires to
# set 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="false"

I also executes the following commands:-

mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg

Last edited by Smit (2018-01-26 07:52:47)


live and let live

Offline

#2 2018-01-25 08:01:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Can't hibernate Arch Linux [SOLVED]

Don't follow random blog posts, remove the acpi_sleep=nonvs it isn't as general purpose as that article means to imply. Use stable partition identifiers  /dev/sdXY are unstable and might change from boot to boot, follow

https://wiki.archlinux.org/index.php/Po … ibernation

instead.

How did you install Arch?

And please, for your and our sanity, this is the third thread where you come in with a problem, that would likely not be a problem would you follow the official documentation and practices. You are needlessly making this hard for everyone.

Last edited by V1del (2018-01-25 08:26:35)

Offline

#3 2018-01-25 10:16:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,863

Re: Can't hibernate Arch Linux [SOLVED]

cat /proc/cmdline
lsblk -f
V1del wrote:

You are needlessly making this hard for everyone.

+1
I'd understand linguistic issues, but you're insisting to follow random *english* crap instead of relying on the extensive Arch wiki.

Offline

#4 2018-01-25 12:15:07

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: Can't hibernate Arch Linux [SOLVED]

seth wrote:

but you're insisting to follow random *english* crap instead of relying on the extensive Arch wiki.

And on top of that you have 3 recent active threads that you've just abandonned when you do get good advice.

You seem to be do doing everything in your power to alienate those whom you seek help from.

This is really not the right way to engage with this community.  Please make some adjustments to your approach: read our code of conduct and stickied threads if you are not sure how to do better.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2018-01-26 07:51:49

Smit
Member
From: Pune
Registered: 2018-01-02
Posts: 51

Re: Can't hibernate Arch Linux [SOLVED]

@Trilby @seth  and @V1del

sorry ,as I am new here . I had marked this and my other threads as SOLVED . please forgive me  if I had post anything non-sense .please read https://bbs.archlinux.org/viewtopic.php … 2#p1763522 's last post that I have posted. Sorry again sad

Also ,I think this has nothing to do with the article cause hibernation is working with linux-lts .I think its a bug in normaln linux kernel.


live and let live

Offline

Board footer

Powered by FluxBB