Loki Really slow boot time

Discussion in 'Hardware Support' started by doc_hudson, Feb 19, 2017.

Tags:
  1. doc_hudson

    doc_hudson Thread Starter
    Expand Collapse
    New Member

    Joined:
    Feb 19, 2017
    Messages:
    4
    Likes Received:
    0
    I everybody! I'm new to Linux, and I gave a chance to ElementaryOs.
    I installed the ElementaryOs alongside Windows 10, in a different partition. But I'm experiencing really slow boot time. From Elementary and Windows. Before installing elementary I only have windows and the boot is really fast.

    I runned the command "dmesg", and I obtained this output. - http://imgur.com/a/OEmk1
    Any ideias of what it could be?

    My SSD is an SanDisk SD8SN8U256G1122.

    Thank you in advance! :)
     
  2. Artificial Intelligence

    Artificial Intelligence
    Expand Collapse
    Elementary Supporter

    Joined:
    Jan 24, 2017
    Messages:
    127
    Likes Received:
    23
    Did you remember to add swap space when making partitions? Did you know when shut down windows 8 or 10 they go in hibernation instead that's why they boot fast.
    Code (Text):
    systemd-analyze
    Also
    Code (Text):

    sudo nano /etc/systemd/system.conf
    uncomment:
    DefaultTimeoutStartSec=10s
    DefaultTimeoutStopSec=10s

    and set your prefer time.
    <cttrl>+<o> Save
    <ctrl>+<x> exit
     
    #2 Artificial Intelligence, Feb 19, 2017
    Last edited: Feb 19, 2017
  3. doc_hudson

    doc_hudson Thread Starter
    Expand Collapse
    New Member

    Joined:
    Feb 19, 2017
    Messages:
    4
    Likes Received:
    0
    Thanks, but none of this seems to be the solution :(
    I have the swap partion, yes.
     
  4. Frederik Vos

    Frederik Vos
    Expand Collapse
    Active Member

    Joined:
    Feb 2, 2017
    Messages:
    26
    Likes Received:
    2
    systemd-analyze blame
    is idd a very good idea,
    furthermore: cleanup /etc/fstab, put only linux filesystems in it. Or even better: migrate everything except the rootfs to systemd mount units
     
  5. doc_hudson

    doc_hudson Thread Starter
    Expand Collapse
    New Member

    Joined:
    Feb 19, 2017
    Messages:
    4
    Likes Received:
    0
    I am a bit noob at linux, so I don't understant anything :p
     
  6. Frederik Vos

    Frederik Vos
    Expand Collapse
    Active Member

    Joined:
    Feb 2, 2017
    Messages:
    26
    Likes Received:
    2
    find the terminal application in the menu and type:
    cat /etc/fstab
    and
    sudo systemd-analyze blame
    use your mouse to copy and paste it here, we'll help you
     
  7. doc_hudson

    doc_hudson Thread Starter
    Expand Collapse
    New Member

    Joined:
    Feb 19, 2017
    Messages:
    4
    Likes Received:
    0
    #fstab
    # <file system> <mount point> <type> <options> <dump> <pass>
    # / was on /dev/sda6 during installation
    UUID=b022679d-d80d-4ef9-8b43-7ded2e15fe2b / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=accd5ff4-6641-4e65-b3ea-63c6ccecfe1e none swap sw 0 0


    #analyse blame
    399ms dev-sda6.device
    314ms lightdm.service
    252ms plymouth-quit-wait.service
    235ms ModemManager.service
    223ms accounts-daemon.service
    182ms systemd-logind.service
    169ms thermald.service
    165ms bluetooth.service
    161ms irqbalance.service
    154ms systemd-udev-trigger.service
    148ms apport.service
    142ms NetworkManager.service
    138ms grub-common.service
    135ms avahi-daemon.service
    129ms ondemand.service
    122ms apparmor.service
    122ms upower.service
    113ms networking.service
    103ms speech-dispatcher.service
    83ms binfmt-support.service
    79ms keyboard-setup.service
    67ms console-setup.service
    61ms pantheon-parental-controls.service
    54ms packagekit.service
    51ms gpu-manager.service
    44ms systemd-user-sessions.service
    43ms udisks2.service
    36ms rsyslog.service
    35ms systemd-journal-flush.service
    32ms systemd-modules-load.service
    31ms systemd-journald.service
    24ms plymouth-start.service
    23ms systemd-tmpfiles-clean.service
    22ms iio-sensor-proxy.service
    22ms polkitd.service
    20ms colord.service
    19ms resolvconf.service
    16ms pppd-dns.service
    16ms plymouth-read-write.service
    15ms systemd-udevd.service
    14ms user@1000.service
    13ms sys-kernel-debug.mount
    12ms systemd-update-utmp.service
    11ms proc-sys-fs-binfmt_misc.mount
    10ms rc-local.service
    10ms dev-disk-by\x2duuid-accd5ff4\x2d6641\x2d4e65\x2db3ea\x2d63c6ccecfe1e.swap
    10ms wpa_supplicant.service
    10ms dev-mqueue.mount
    10ms systemd-update-utmp-runlevel.service
    10ms dev-hugepages.mount
    9ms systemd-timesyncd.service
    9ms kmod-static-nodes.service
    8ms openvpn.service
    8ms systemd-tmpfiles-setup.service
    8ms systemd-random-seed.service
    7ms systemd-tmpfiles-setup-dev.service
    6ms ufw.service
    5ms systemd-remount-fs.service
    4ms systemd-sysctl.service
    3ms setvtrgb.service
    3ms rtkit-daemon.service
    3ms ureadahead-stop.service
    2ms sys-fs-fuse-connections.mount
    1ms systemd-backlight@backlight:intel_backlight.service
    244us systemd-rfkill.service
     
  8. Frederik Vos

    Frederik Vos
    Expand Collapse
    Active Member

    Joined:
    Feb 2, 2017
    Messages:
    26
    Likes Received:
    2
    some things really takes their time... If you don't need a modem:
    sudo systemctl disable ModemManager.service
    sudo systemctl mask ModemManager.service
    same for bluetooth
    and you can disable:
    - speech-dispatcher.service (unless you need text-to-voice)
    - apport.service (unless you have an unstable system)
    - vpn.service (unless you need a vpn)
    - pantheon-parental-controls.service (unless you have kids on your system)
    - rsyslog.service (unless you'll need remote logging)
    - pppd-dns.service (unless you'll have a modem or dial-in via pppoa/pppoe)
    but i have no explenation for 399ms dev-sda6.device ...
     
    Geoffroy likes this.
  9. vamcs

    vamcs
    Expand Collapse
    New Member

    Joined:
    Jun 26, 2017
    Messages:
    1
    Likes Received:
    0
    I'm also having a really slow boot and I can't seem to fix it.

    The scenario: I have a SDD + HDD on my computer and previously I had Windows 10 on the SSD and Ubuntu 17.04 on my HDD (which was shared with Windows data storage). My Windows installation was broken, so I formatted my SSD and installed Elementary OS on top of it and later reinstalled Windows on my HDD on top of Ubuntu. So I had to reinstall GRUB in order for it to show Windows using boot-repair. It accused an error in the and didn't give me the log file, but also said it was successful (and well grub is fine, it lists elementary os and windows correctly).

    The only problem is that Elementary OS takes 3 mins to boot now.

    Code (Text):
    systemd-analyze

    Startup finished in 3.731s (firmware) + 7.582s (loader) + 8.313s (kernel) + 3min 383ms (userspace) = 3min 20.011s
    Code (Text):
    cat /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>
    /dev/mapper/elementary--vg-root /               ext4    errors=remount-ro 0       1
    # /boot was on /dev/sda2 during installation
    UUID=c5cb7654-353d-42f1-a4d0-e12085da2422 /boot           ext2    defaults        0       2
    # /boot/efi was on /dev/sda1 during installation
    #UUID=A7F7-C47D  /boot/efi       vfat    umask=0077      0       1
    /dev/mapper/elementary--vg-swap_1 none            swap    sw              0       0
    # swap was on /dev/sdb5 during installation
    UUID=9183ee89-60f4-4fe7-bcd4-0c34da15836b none            swap    sw              0       0
    UUID=A7F7-C47D    /boot/efi    vfat    defaults    0    1
     
    And I uploaded the output of
    Code (Text):
    systemd-analyze plot
    Any help is really appreciated!

    ---

    EDIT: I fixed it, I posted in the official forum: https://elementaryos.stackexchange.com/questions/12523/slow-boot-after-reinstalling-grub/12533
     

    Attached Files:

    #9 vamcs, Jun 26, 2017
    Last edited: Jun 26, 2017

Share This Page

Loading...