No hibernation after reallocation of root and swap partitions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
I had a fresh install of Ubuntu 11.10 with correctly working suspend/hibernate.
I had to re/move some partitions, so UUIDs of partitions have been changed - after that hibernation obviously become broken.
But even after fixing UUIDs/device paths in initramfs/resume, fstab and grub, and updating initramfs image (update-initramfs -u) and updating grub configuration (update-grub) hibernation still not working.
Here current values for partitions:
root device = /dev/sda5
root UUID = 568501ed-
swap device = /dev/sda6
swap UUID = f3636075-
Now system boots correctly, and swap partition is available in the system, but if I try to hibernate:
- on hibernation looks like that system image are compressing correctly
- on resuming looks like that system image are decompressing correctly (according to booting logs)
- but after that screen goes black, and system automatically rebooted
- next time on booting I can see cold boot start
Also I've tried to re-format swap parition and manually setup previous UUID:
$ sudo mkswap -L SWAP -U f3636075-
No any changes.
Also I've tried to upgrade packages:
$ sudo apt-get upgrade
No any changes.
Also I've tried to change UUIDs to device names in grub/fstab/
My current config files:
$ cat /etc/fstab | grep -v "^#"
proc /proc proc nodev,noexec,nosuid 0 0
UUID=568501ed-
UUID=f3636075-
$ cat /etc/initramfs-
RESUME=
$ cat /proc/cmdline
BOOT_IMAGE=
I guess, that if I'll do a fresh install, then hibernate will be working correctly again;
so just looks like that some other configuration files must be updated to fix UUID/device path.
If this is a real not particular hardware-related bug, then it should be reproducible;
Steps to reproduce (I will be very appreciate, if someone really will try to reproduce it):
- take testing HDD and Ubuntu 11.10 live cd/usb and start installation
- during installation, make the following partitions:
* /dev/sda1 for data (8GB)
* /dev/sda2 for data (2GB)
* /dev/sda3 for root (8GB)
* /dev/sda4 for swap (2GB)
- install system, make sure that it boots correctly and hibernation works correctly as well
- now boot from live cd/usb
- backup system data from root to /dev/sda1, something like that:
$ sudo mkdir /mnt/root-new
$ sudo mkdir /mnt/root
$ sudo mount /dev/sda3 /mnt/root
$ sudo mount /dev/sda1 /mnt/root-new
$ sudo cp -rfax /mnt/root/* /mnt/root-new/*
$ sudo umount /mnt/root
$ sudo umount /mnt/root-new
- delete used partitions:
$ sudo swapoff -a
$ sudo parted /dev/sda rm 4
$ sudo parted /dev/sda rm 3
- find out new UUIDs for root and swap partitions:
$ ls -la /dev/disk/by-uuid/
- fix config files on new root:
$ sudo mount /dev/sda1 /mnt/root-new
$ sudo gedit /etc/fstab /etc/initramfs-
* now replace UUIDs for root and swap by current values for /dev/sda1 and /dev/sda2 respictaevly
* save changes, close gedit
- update system information:
$ sudo grub-install --root-directory /mnt/root-new /dev/sda
$ sudo mount --bind /proc /mnt/root-new/proc
$ sudo mount --bind /dev /mnt/root-new/dev
$ sudo mount --bind /sys /mnt/root-new/sys
$ sudo chroot /mnt/root-new/
# update-initramfs -u
# update-grub
# exit
$ sync
- now try to boot "new" system
What should happen:
- booting into system just like it hasn't been moved
- hibernate/suspend and other features should works correctly
What happens:
- system is booting
- swap space is available in system
- looks like that system can hibernating correctly, but on resume it goes in reboot
See reports for pretty similar issues:
bug #499940
bug #577916
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: linux-image-
ProcVersionSign
Uname: Linux 3.0.0-12-generic x86_64
NonfreeKernelMo
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
ArecordDevices:
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
Card hw:0 'Intel'/'HDA Intel at 0xd0900000 irq 46'
Mixer name : 'Intel IbexPeak HDMI'
Components : 'HDA:111d7605,
Controls : 18
Simple ctrls : 10
Date: Sat Mar 17 20:21:05 2012
HibernationDevice: RESUME=
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
Lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 04f2:b1cc Chicony Electronics Co., Ltd
MachineType: Hewlett-Packard HP ProBook 5320m
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.60.1
SourcePackage: linux
StagingDrivers: brcmutil mei brcmsmac
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/16/2011
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: 68AFU Ver. F.20
dmi.board.name: 149B
dmi.board.vendor: Hewlett-Packard
dmi.board.version: KBC Version 82.13
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.modalias: dmi:bvnHewlett-
dmi.product.name: HP ProBook 5320m
dmi.sys.vendor: Hewlett-Packard
Changed in linux (Ubuntu): | |
status: | New → Confirmed |
After complete re-formatting partitions and re-installation of Ubuntu the problem is still exists.