Results 1 to 8 of 8

Thread: Slow boot time on ssd (~10s dev-sda2.device)

  1. #1
    Join Date
    Jan 2021
    Beans
    5

    Slow boot time on ssd (~10s dev-sda2.device)

    Hi, I have installed xubuntu 21.04 on a new ssd and I have been trying to see how fast can it boot. My pc has a very slow firmware time (nearly 13s, an asus prime a320 motherboard with csm disabled), but the userspace was something like 2 seconds so I still got around 20 secs from pressing the power on button to getting to the desktop. However, I have copied the files that were in my old /home folder from a fedora system that still exists on my secondary drive (an hdd), and after doing that my boot time went up by nearly 10 seconds. When I run systemd-analyze blame it says that the biggest culprit is the "9.438s dev-sda2.device" with sda2 being my root partition on the SSD. I had pretty much the same problem with my hdd, with nearly 10 seconds wasted in mounting the root partition (In neither of both did I separate the home folder onto it's own partition, but if it speeds thing up I might consider doing it). I have disabled fsck for sda2 and the EFI partition since and the boot time even went up, so I will be enabling it again. How can I optimize this? I just have to delete everything and reinstall, create a partition only for the /home folder or should I do something else? Thanks in advance.
    Last edited by newtonloquito; May 18th, 2021 at 06:20 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,791

    Re: Slow boot time on ssd (~10s dev-sda2.device)

    Well, this is the 21st century. Don’t reboot. Use Hibernate and Suspend, same as with a laptop machine. With a SSD, the machine will awaken instantly.

  3. #3
    Join Date
    Jan 2021
    Beans
    5

    Re: Slow boot time on ssd (~10s dev-sda2.device)

    I think I will, thanks!

  4. #4
    Join Date
    Jan 2021
    Beans
    5

    Re: Slow boot time on ssd (~10s dev-sda2.device)

    Well I runned "systemctl hibernate", the screen glitched and after that i got the same 30 sec boot time as always. Seems like my pc doesn't want to hibernate. I read that for using hibernation I should disable secure boot but my motherboard doesn't have that option (or at least is very hidden). Suspend does work, but with a very unstable power supply I'm not sure that could work for sustained periods of time XD.

  5. #5
    Join Date
    Jan 2021
    Beans
    5

    Re: Slow boot time on ssd (~10s dev-sda2.device)

    I deleted all the stuff I copied from the old hdd and now my boot time is even worse than before, seems like that wasn't the problem

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Slow boot time on ssd (~10s dev-sda2.device)

    Have you updated UEFI firmware and SSD firmware to latest available?

    Is system doing a fsck on partition when mounting.
    Years ago, it ran fsck every 40 reboots. Now with ext4, it just should do a check to see if ext4 has issue.

    Some things to review:
    Slow Boot --------------------------------
    https://ubuntuforums.org/showthread.php?t=2450783
    https://ubuntuforums.org/showthread....9#post13932499
    https://ubuntuforums.org/showthread.php?t=2417453 &
    https://ubuntuforums.org/showthread....2#post13857392 &
    https://www.dedoimedo.com/computers/...slow-boot.html
    https://askmeaboutlinux.com/2019/11/...-boots-slowly/
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Jan 2021
    Beans
    5

    Re: Slow boot time on ssd (~10s dev-sda2.device)

    Problem solved. I just reinstalled the OS, used the default formatting (before I used custom, although I don't think this is what solved the issue).

  8. #8
    GhX6GZMB is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    Jun 2019
    Beans
    1,093

    Re: Slow boot time on ssd (~10s dev-sda2.device)

    Quote Originally Posted by HermanAB View Post
    Well, this is the 21st century. Don’t reboot. Use Hibernate and Suspend, same as with a laptop machine. With a SSD, the machine will awaken instantly.
    Not quite.
    Actually, a resume from Hibernate is a bit slower than a cold boot. Hibernate will do a cold boot and then restore the session. For Suspend, I agree with you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •