Sunday, June 12, 2016

Terribly slow boot on Ubuntu 17.04



I just moved on from Windows 10 to Ubuntu 17.04 Zesty Zapus one day ago. Everything is fine except the boot up time. In my Windows 10 my pc would take probably less than 10 secs to boot up. But in Ubuntu it is taking 2-3 mins to take me to the log in screen. I have run dmesg and it seems that something is getting wrong after 7 seconds. I'm attaching the result below. I also ran the boot process in cui mode and found that there was a hold for 1 min and 30 secs saying 'A start job is running for dev disc'. In other answers it has been provided that editing fstab file, checking for correct UUID will solve the matter but I have done with all this still the problem goes on.




I currently have one partition installed that is the entire disc (/dev/sda1). I did a clean install of ubuntu and erased the whole disc while installing.
My configuration is 3 GHz intel Pentium dual core CPU, 4 GB RAM, 1 TB HDD with no other os installed except Ubuntu 17.04 with latest updates.
I hope anyone could solve this problem for me. Thank you very much.



dmesg output



I solved the problem of slow booting. When I saw the boot messages it showed me that a startup process is running my dev mapper. I checked the /etc/fstab and there was a swapfile indicating /swapfile but I checked using free -m that I didn't have a swap set up. So I set up a swap but still the problem remained unchanged. The actual problem was that there was an unexisting drive listed on the /etc/crypttab which was causing the issue. I commented out the line and now it boots fine.



So if you have starup job slow boot issue, please do check:





  1. Do you have a swap? Check it using sudo swapon -s

  2. Check whether the swap is listed in fstab properly. Also check whether there are any other unexisted device listed. If there is, comment it out by putting # and a space at the starting of the line.

  3. If step 1 and 2 fails or not relevant then check whether any unexisted device listed on /etc/crypttab. If there is, comment it out.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...