Wednesday, January 20, 2010

How to Stop "Kinit: No Resume" Error Message in Debian Lenny

Suspend, Hibernate and Resume are great features in modern mobile computing. So, it's good to have them in your Operating System, be it Linux or OS X or Windows. However, these features require more resources in terms of physical/swap memory. And some people don't like it.

On user-level you can disable it by removing the userspace Suspend/Hibernate packages. But sometimes removing those packages don't do the job completely. You may still get an error message like the two lines I got during my Debian Lenny boot process:

kinit: Trying to resume from /dev/sda5
kinit: No resume image, doing normal boot


I had removed suspend/hibernate packages quite earlier. Wondered why that message came till I knew it's a kernel feature these days. So, to disable resume, you have to tell the kernel not to seek for it. Just add noresume in the kernel line of /boot/grub/menu.lst file. See the example:

title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd0,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro quiet noresume
initrd /boot/initrd.img-2.6.26-2-686


After adding noresume to the kernel line you will get rid of that "No resume...." error message, and may be, save a few seconds of boot time.

No comments:

How about this