Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Today's Posts

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old August 13th, 2008   #1
Theo148
A Carafe of Ubuntu
 
Theo148's Avatar
 
Join Date: Mar 2008
Location: Earth, possibly
Beans: 106
Ubuntu 9.04 Jaunty Jackalope
System hangs on "waiting for resume device" during boot

I recently resized the swap partition on one of the laptops I use, as I had upgraded its RAM and wanted it to be able to hibernate. However, whenever I boot up the machine it hangs for several seconds while displaying 'waiting for resume device'. I have already tried updating the UUIDs in /etc/fstab and /etc/initramfs-tools/conf.d/resume and running 'update-initramfs', but the system still hangs on boot (although I'm pretty sure Ubuntu is able to use the swap partition once it boots up). Oh, and resuming from hibernation doesn't work.

Can anybody help me to fix this?
Theo148 is offline   Reply With Quote
Old August 14th, 2008   #2
fabian.r
First Cup of Ubuntu
 
Join Date: Jul 2007
Beans: 4
Ubuntu 8.04 Hardy Heron
Re: System hangs on "waiting for resume device" during boot

Sorry, I have no solution (yet).

I have exactly the same problem on Ubuntu Hardy (upgraded from Gutsy), but I didn't resize the swap partition. I have also tried what you said without any success and hibernation doesn't work either (which is no problem for me).

ps: the problem seems to be related to this bug.

Last edited by fabian.r; August 14th, 2008 at 07:05 AM..
fabian.r is offline   Reply With Quote
Old August 14th, 2008   #3
Theo148
A Carafe of Ubuntu
 
Theo148's Avatar
 
Join Date: Mar 2008
Location: Earth, possibly
Beans: 106
Ubuntu 9.04 Jaunty Jackalope
Re: System hangs on "waiting for resume device" during boot

Well I'm not sure if this will help you, but I managed to solve the problem myself - it turns out that there was another file in /etc/initramfs-tools/conf.d/ called 'resume-old' that was somehow interfering with the proper resume device configuration. I deleted the file, ran 'sudo update-initramfs' again and the system no longer hanged on boot.
Theo148 is offline   Reply With Quote
Old August 14th, 2008   #4
fabian.r
First Cup of Ubuntu
 
Join Date: Jul 2007
Beans: 4
Ubuntu 8.04 Hardy Heron
Re: System hangs on "waiting for resume device" during boot

Thanks for your reply. I have no 'resume-old' file, but I found another work around on the Polish Ubuntu forum which I could more or less understand thanks to Google language tools.

The trick is to change /usr/share/initramfs-tools/scripts/local-premount/resume

replacing

Code:
. ./scripts/functions

if [ ! -e "${resume}" ] || ! /lib/udev/vol_id "${resume}" >/dev/null 2>&1; then
	log_begin_msg "Waiting for resume device..."

	# Default delay is 5s
	if [ -z "${RESUMEDELAY}" ]; then
		slumber=5
	else
		slumber=${RESUMEDELAY}
	fi
	if [ -x /sbin/usplash_write ]; then
		/sbin/usplash_write "TIMEOUT ${slumber}" || true
	fi

	slumber=$(( ${slumber} * 10 ))
	while [ ! -e "${resume}" ] || ! /lib/udev/vol_id "${resume}" >/dev/null 2>&1; do
		/bin/sleep 0.1
		slumber=$(( ${slumber} - 1 ))
		[ ${slumber} -gt 0 ] || break
	done

	if [ ${slumber} -gt 0 ]; then
		log_end_msg 0
	else
		log_end_msg 1 || true
		exit
	fi
fi
with

Code:
if [ ! -e "${resume}" ]; then
	exit
fi
This worked for me, but it will probably completely break the hibernation function for those who use it. Please rectify me if this information is wrong.
fabian.r is offline   Reply With Quote
Old August 14th, 2008   #5
Theo148
A Carafe of Ubuntu
 
Theo148's Avatar
 
Join Date: Mar 2008
Location: Earth, possibly
Beans: 106
Ubuntu 9.04 Jaunty Jackalope
Re: System hangs on "waiting for resume device" during boot

That seems to work as well (at least on the system I tried it on).

By the way, I actually followed the instructions listed here to fix the bug - I assume they worked, but were messed up by the 'resume-old' file.
Theo148 is offline   Reply With Quote

Bookmarks

Tags
boot, resume, swap


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:24 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry