Score:0

Extremely Slow Boot up on Ubuntu 20.04

in flag

I have freshly installed Ubuntu 20.04 on my Sony Vaio laptop. Here is a link to the product specs.

I have updated my drivers and all the repositories still it takes a lot of time.

Output of systemd-analyze:

Startup finished in 4.678s (kernel) + 1min 24.104s (userspace) = 1min 28.782s 
graphical.target reached after 1min 21.824s in userspace

Contents of /etc/fstab:

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    # / was on /dev/sda7 during installation UUID=79843cb2-a8d1-4281-9f9b-013d7563767d /               ext4    errors=remount-ro 0       1
    # /boot/efi was on /dev/sda1 during installation UUID=C796-CF4B  /boot/efi       vfat    umask=0077      0       1
    # swap was on /dev/sda6/ during installation UUID=929863a0-6f86-4690-bb2a-4dec85813d90                           none            swap    sw              0       0
    # 186 GB external drive outside the home area UUID=1AE0C521E0C5044B /media/ashish-mehar/ASHISH_MEHAR ntfs permissions,locale=en_US.utf8    0   2

Output of sudo blkid

> /dev/sda6: UUID="929863a0-6f86-4690-bb2a-4dec85813d90" TYPE="swap"
            > PARTUUID="8b88b09e-06" /dev/sda7:
            > UUID="79843cb2-a8d1-4281-9f9b-013d7563767d" TYPE="ext4"
            > PARTUUID="8b88b09e-07" /dev/loop0: TYPE="squashfs" /dev/loop1:
            > TYPE="squashfs" /dev/loop2: TYPE="squashfs" /dev/loop3:
            > TYPE="squashfs" /dev/loop4: TYPE="squashfs" /dev/loop5:
            > TYPE="squashfs" /dev/loop6: TYPE="squashfs" /dev/loop7:
            > TYPE="squashfs" /dev/sda1: UUID="C796-CF4B" TYPE="vfat"
            > PARTUUID="8b88b09e-01" /dev/sda5: LABEL="ASHISH_MEHAR"
            > UUID="1AE0C521E0C5044B" TYPE="ntfs" PARTUUID="8b88b09e-05" /dev/loop8:
            > TYPE="squashfs" /dev/loop9: TYPE="squashfs" /dev/loop10:
            > TYPE="squashfs" /dev/loop11: TYPE="squashfs" /dev/loop12:
            > TYPE="squashfs" /dev/loop13: TYPE="squashfs"

SNAP LIST:

Name               Version             Rev    Tracking         Publisher         Notes
core18             20210611            2074   latest/stable    canonical*        base
core20             20210429            1026   latest/stable    canonical*        base
gnome-3-34-1804    0+git.3556cb3       72     latest/stable/…  canonical*        -
gtk-common-themes  0.1-52-gb92ac40     1515   latest/stable/…  canonical*        -
snap-store         3.38.0-64-g23c4c77  547    latest/stable/…  canonical*        -
snapd              2.51.1              12398  latest/stable    canonical*        snapd
telegram-desktop   2.8.11              2926   latest/stable    telegram.desktop  -
vlc                3.0.16              2344   latest/stable    videolan*         -
zoom-client        5.7.1-26030.0627    151    latest/stable    ogra              -

systemd-analyze blame output:

40.750s plymouth-quit-wait.service                                               
25.886s dev-sda7.device                                                          
16.949s systemd-journal-flush.service                                            
16.642s snapd.service                                                            
15.478s networkd-dispatcher.service                                              
15.442s dev-loop12.device                                                        
15.303s dev-loop11.device                                                        
15.296s dev-loop13.device                                                        
14.123s dev-loop9.device                                                         
13.389s dev-loop6.device                                                         
12.417s dev-loop8.device                                                         
12.351s dev-loop10.device                                                        
11.498s udisks2.service                                                          
11.076s NetworkManager-wait-online.service                                       
10.741s dev-loop5.device                                                         
 9.163s apport-autoreport.service                                                
 8.960s dev-loop7.device                                                         
 8.921s dev-loop4.device                                                         
 7.983s dev-loop3.device                                                         
 7.442s accounts-daemon.service                                                  
 6.943s dev-loop2.device                                                         
 6.914s NetworkManager.service                                                   
 6.743s polkit.service                                                           
 6.666s dev-loop1.device                                                         
 6.612s dev-loop0.device                                                         
 6.475s avahi-daemon.service                                                     
 6.472s bluetooth.service                                                        
 5.775s switcheroo-control.service                                               
 5.768s thermald.service                                                         
 5.763s systemd-logind.service                                                   
 5.536s wpa_supplicant.service                                                   
 4.844s ModemManager.service                                                     
 4.112s gpu-manager.service                                                      
 4.024s gdm.service                                                              
 2.914s plymouth-start.service                                                   
 2.799s systemd-udevd.service                                                    
 2.785s apport.service                                                           
 2.505s grub-common.service                                                      
 2.273s tlp.service                                                              
 2.006s fwupd.service                                                            
 1.891s apparmor.service                                                         
 1.780s rsyslog.service
1.651s systemd-resolved.service                                                 
 1.374s [email protected]                                                         
 1.061s systemd-tmpfiles-setup.service                                           
 1.046s systemd-fsck@dev-disk-by\x2duuid-C796\x2dCF4B.service                    
 1.014s systemd-random-seed.service                                              
  990ms e2scrub_reap.service                                                     
  984ms systemd-sysusers.service                                                 
  866ms systemd-modules-load.service                                             
  811ms systemd-udev-trigger.service                                             
  720ms systemd-sysctl.service                                                   
  706ms snapd.apparmor.service                                                   
  608ms snap-core20-1026.mount                                                   
  601ms systemd-journald.service                                                 
  578ms media-ashish\x2dmehar-ASHISH_MEHAR.mount                                 
  570ms systemd-tmpfiles-setup-dev.service                                       
  566ms grub-initrd-fallback.service                                             
  555ms upower.service                                                           
  540ms keyboard-setup.service                                                   
  500ms snap-snap\x2dstore-547.mount                                             
  470ms snap-gnome\x2d3\x2d34\x2d1804-66.mount                                   
  455ms snap-telegram\x2ddesktop-2926.mount                                      
  442ms snap-core18-1988.mount                                                   
  435ms snap-zoom\x2dclient-151.mount                                            
  433ms dev-disk-by\x2duuid-929863a0\x2d6f86\x2d4690\x2dbb2a\x2d4dec85813d90.swap
  433ms systemd-timesyncd.service                                                
  427ms [email protected]                                                     
  421ms colord.service                                                           
  408ms snap-core18-2074.mount                                                   
  384ms snap-vlc-2344.mount                                                      
  330ms snap-gnome\x2d3\x2d34\x2d1804-72.mount                                   
  329ms snap-gtk\x2dcommon\x2dthemes-1514.mount                                  
  307ms pppd-dns.service                                                         
  294ms snap-gtk\x2dcommon\x2dthemes-1515.mount                                  
  249ms snap-snap\x2dstore-518.mount                                             
  247ms [email protected]                                                        
  243ms snap-snapd-12398.mount                                                   
  214ms setvtrgb.service                                                         
  209ms snap-snapd-11036.mount                                                   
  200ms dev-hugepages.mount                                                      
  200ms dev-mqueue.mount
Frittierapparat avatar
us flag
It's probably because of the 2.5" 5400 RPM SATA HDD in your Laptop. Those things tend to be very slow. I had an Acer Aspire 5 on a HDD and it took a similar Time. It seems like that would be normal.
oldfred avatar
cn flag
Some things to review & links to even more. https://askubuntu.com/questions/1284302/is-it-possible-to-make-ubuntu-20-04-boot-faster Is loop8 correct using NTFS? All the loopmounts make for slower boot. And NTFS, as not native. is also slower mounting. Did you check log files for issues? `sudo egrep -i 'warn|error' /var/log/*g` Does system even have bluetooth? And too old for fwupd? My older system I just uninstall those drivers. https://ubuntuforums.org/showthread.php?t=2450783
Ashish_Mehar avatar
in flag
i have the log file with me, but i dont know how to check for issue, also i am unable to share the contents of log file as it is too big any idea how i can share it? @oldfred
oldfred avatar
cn flag
The error list from the log file is that big? Just select the errors, often even warnings are just that, but may need review. Did you go thru the link on fixes for slow boot? My old 2006 laptop with Kubuntu boots in less than a minute, but that now is very slow compared to my newer SSD based systems. Also if not much RAM, may be better to use a lightweight flavor as full Ubuntu needs newer system with lots of RAM.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.