![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
General Help All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() 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? |
|
|
|
|
|
#2 |
|
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.. |
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() 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.
|
|
|
|
|
|
#4 |
|
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
Code:
if [ ! -e "${resume}" ]; then
exit
fi
|
|
|
|
|
|
#5 |
|
A Carafe of Ubuntu
![]() 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. |
|
|
|
| Bookmarks |
| Tags |
| boot, resume, swap |
|
|