Boot hangs for 30 seconds at "Begin: Running /scripts/local-premount"
Try the following:
- open
/etc/initramfs-tools/conf.d/resume
- replace
RESUME=UUID=xxx
withRESUME=none
- issue
sudo update-initramfs -u
- reboot your system
(create the file if it does not exist and just add RESUME=none
in it)
The file should contain the UUID of your swap partition, you can check this with sudo blkid | grep swap
.
I found the following bug on launchpad which is supposed to be Lubuntu specific but the commands above also resolved the same issue on my Xubuntu installation.
See comments #27 and #28.
This file seems to be related to hibernate/suspend, I can confirm suspend
still works on my system after the changes.
In my case, the hang at Running /scripts/local-premount
was caused by grub configs. So the workaround that I found is updating GRUB_CMDLINE_LINUX
config to noresume
.
Type this in your terminal:
sudoedit /etc/default/grub
Find GRUB_CMDLINE_LINUX
and change its value to noresume
.
GRUB_CMDLINE_LINUX="noresume"
If you don't find that line, you can add it at the end of file. You can update the default one, too:
GRUB_CMDLINE_LINUX_DEFAULT="noresume"
For me, I did both. Save the configs. Then update the grub:
sudo update-grub
Reboot the computer. It should now be faster.
Btw, you can combine noresume
with quite
and splash
, if you use splash boot.
See also related answers on askubuntu and superuser, as well as documentation about this parameter on linuxtopia