How to improve Manjaro Boot Speed?

Is the line GRUB_DISABLE_OS_PROBER=false in /etc/default/grub ?

After that can you execute update-grub as root on console ?

Can you show fdisk -l on console ?

how to do that…

Sorry I don’t know that much about Linux.

I am very new to Linux. That’s why am having a lot of problems :frowning:

Please help… tell me what I have to do…

BTW when I write fdisk -l it says permission denied…

outpur of last -Fx shutdown reboot | head

reboot   system boot  5.15.16-1-MANJAR Mon Jan 31 22:24:33 2022   still running
reboot   system boot  5.15.16-1-MANJAR Mon Jan 31 16:49:27 2022   still running
shutdown system down  5.15.16-1-MANJAR Mon Jan 31 16:43:14 2022 - Mon Jan 31 16:49:27 2022  (00:06)
reboot   system boot  5.15.16-1-MANJAR Mon Jan 31 12:34:45 2022 - Mon Jan 31 16:43:14 2022  (04:08)
shutdown system down  5.15.16-1-MANJAR Mon Jan 31 12:34:14 2022 - Mon Jan 31 12:34:45 2022  (00:00)
reboot   system boot  5.15.16-1-MANJAR Mon Jan 31 09:10:34 2022 - Mon Jan 31 12:34:14 2022  (03:23)
shutdown system down  5.15.16-1-MANJAR Mon Jan 31 09:09:59 2022 - Mon Jan 31 09:10:34 2022  (00:00)
reboot   system boot  5.15.16-1-MANJAR Mon Jan 31 08:28:16 2022 - Mon Jan 31 09:09:59 2022  (00:41)
shutdown system down  5.15.16-1-MANJAR Mon Jan 31 08:27:52 2022 - Mon Jan 31 08:28:16 2022  (00:00)
reboot   system boot  5.15.16-1-MANJAR Mon Jan 31 08:01:10 2022 - Mon Jan 31 08:27:52 2022  (00:26)

and output of systemd-analyze blame →

8.568s man-db.service
6.692s snapd.service
6.081s udisks2.service
5.702s systemd-fsck@dev-disk-by\x2duuid-a20bf45d\x2d0ab2\x2d45be\x2d85a2\x2dea013ffde4eb.service
5.700s systemd-fsck@dev-disk-by\x2duuid-B1DE\x2dFBFD.service
5.212s polkit.service
3.944s dev-sda1.device
3.070s cups.service
2.643s bluetooth.service
2.642s avahi-daemon.service
2.633s NetworkManager.service
2.594s systemd-logind.service
2.096s upower.service
2.035s ModemManager.service
1.686s apparmor.service
 983ms systemd-modules-load.service
 966ms ldconfig.service
 805ms systemd-sysusers.service
 724ms user@1000.service
 629ms lvm2-monitor.service
lines 1-20

All commands must be executed as root or sudo.

So:
sudo fdisk -l, sudo nano -w /etc/default/grub and then sudo update-grub or

login as root on console: su and then the password of root.

again:
your disk is slow (to read)

and: there is hybrid sleep
Windows uses that if not specifically told not to do.
It’s also available on Linux/Arch/Manjaro

The RAM is kept powered - and when you switch on the machine, the return is almost instantaneous.
Only when the RAM is not powered anymore (Battery is drained)
will it use the “saved to disk” copy of the same … which will be slower
because it has all to be read from (slow) disk

Power management/Suspend and hibernate - ArchWiki

Tip: When pasting terminal output on Discourse forums, one can either…

  • Use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    type or paste code here
    ```

  • Use HTML:

    <pre><code>
    type or paste code here
    </pre></code>

I’ve done it for you this time. :wink:

Because you need sudo. Correct command is

sudo fdisk -l

Also, did you encrypt any partition or whole disk?

Please share as well output of

inxi -Fza
sudo blkid
cat /etc/fstab

Output of ‘sudo fdisk -l’, ‘sudo nano -w /etc/default/grub’ are


8.568s man-db.service
6.692s snapd.service
6.081s udisks2.service
5.702s systemd-fsck@dev-disk-by\x2duuid-a20bf45d\x2d0ab2\x2d45be\x2d85a2\x2dea013ffde4eb.service
5.700s systemd-fsck@dev-disk-by\x2duuid-B1DE\x2dFBFD.service
5.212s polkit.service
3.944s dev-sda1.device
3.070s cups.service
2.643s bluetooth.service
2.642s avahi-daemon.service
2.633s NetworkManager.service
2.594s systemd-logind.service
2.096s upower.service
2.035s ModemManager.service
1.686s apparmor.service
 983ms systemd-modules-load.service
 966ms ldconfig.service
 805ms systemd-sysusers.service
 724ms user@1000.service
 629ms lvm2-monitor.service
lines 1-20

GRUB_DEFAULT=saved
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=hidden
GRUB_DISTRIBUTOR="Manjaro"
GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor udev.log_priority=3"
GRUB_CMDLINE_LINUX=""

# If you want to enable the save default function, uncomment the following
# line, and set GRUB_DEFAULT to saved.
GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

Edit: I changed the grub bootloader to 0 because I don’t use anyother operating system :slight_smile:

Thanks for your suggestion. BTW I thought that tags might not work there :sweat_smile:

I also have a swap memory of something 8gb that is recommended. If it is necessary to increase it then also I can I have lot of free spaces. But seriously all of them for just perfomance in boot speed. Actually, Manjaro works very smooth here but the problem is just with boot power. It is kind of slow. I hope you get it.

As boot speed also matters with SSD which differs from a HDD disk. So, you use SSD or HDD? In my case I use HDD. And it takes almost more than a min to boot.

As people say hibernating help a lot in boot speed. So, why not in my case it is same as before.

When I go to KDE partition manager for checking how much files are stored in Swap it says 0bytes.

What is the reason? Is somthing wrong with the installation?

By the way my goal is to learn Linux. I chose Manjaro as the best linux for me as it is #1 in field of programming and developing. And also it run very smoothly in laptop.

I am just writing post just because I can get the solution. And also if someone get the solution ofcourse the people will remember that for a long term of time. So, that is my deal :slight_smile:

Edit: I have posted my all the output above please go and find out and please tell me what to do next.

You should not set the grub timeout to 0s.

your “systemd-analyze blame” indicates you are booting from a HDD. no configuration would give you the speed bump you can get from upgrading to a SDD. i use to run the manjaro installation i use now on my HDD and get the same kinda numbers. then i migrated same installation to SDD and the speed now is nothing short of great. then i did manage to do arch wiki’s recommendations as well. (the improvements from these are very marginal if not negligible). i’m thinking you are relative noobie into linux and would not recommend you meddle with these configurations now till you get accustomed to it well enough. one small mishap you will be back to square one needing massive rollback, or worse complete re-installation.

https://wiki.archlinux.org/title/Improving_performance

https://wiki.archlinux.org/title/Improving_performance/Boot_process

1 Like

@Jitesh you ask for help but don’t provide the required information. You have been asked several time to show output of

sudo fdisk -l
inxi -Fza
1 Like

@Wollie I thought I might have given all the outputs.

Ok,
these are the outputs respectively…


Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS541010A9
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 036A4F3F-0E1B-4442-9058-10F9779EBC26

Device          Start        End   Sectors  Size Type
/dev/sda1        2048  419432447 419430400  200G Linux filesyste
/dev/sda2   419432448  629147647 209715200  100G Linux filesyste
/dev/sda3   629147648  645924863  16777216    8G Linux swap
/dev/sda4   645924864  646971391   1046528  511M BIOS boot
/dev/sda5   646973440  856688639 209715200  100G Microsoft basic
/dev/sda6   856688640 1066403839 209715200  100G Microsoft basic
/dev/sda7  1066403840 1953525134 887121295  423G Microsoft basic


Disk /dev/sdb: 28.88 GiB, 31004295168 bytes, 60555264 sectors
Disk model: x740w           
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7b9073ed

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1        2048 60547071 60545024 28.9G  7 HPFS/NTFS/exFAT

System:
  Kernel: 5.15.16-1-MANJARO x86_64 bits: 64 compiler: gcc
    v: 11.1.0 parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=d5c3546d-c26a-437d-b07c-21a2fa07977c rw quiet
    apparmor=1 security=apparmor udev.log_priority=3
  Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux
    base: Arch Linux
Machine:
  Type: Laptop System: Hewlett-Packard product: HP Notebook
    v: Type1ProductConfigId serial: 
    Chassis: type: 10 serial: 
  Mobo: Hewlett-Packard model: 80C1 v: 96.51
    serial:  UEFI: Insyde v: F.27
    date: 07/05/2018
Battery:
  ID-1: BAT1 charge: 4.0 Wh (100.0%)
    condition: 4.0/41.4 Wh (9.6%) volts: 16.7 min: 14.8
    model: COMPAL PABAS0241231 type: Li-ion serial: 
    status: Full
CPU:
  Info: model: Intel Core i3-5010U bits: 64 type: MT MCP
    arch: Broadwell family: 6 model-id: 0x3D (61) stepping: 4
    microcode: 0x2F
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4
    smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
    L3: 3 MiB desc: 1x3 MiB
  Speed (MHz): avg: 1707 high: 2002 min/max: 500/2000
    scaling: driver: intel_cpufreq governor: schedutil cores:
    1: 914 2: 2002 3: 2000 4: 1914 bogomips: 16804
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2
  ssse3
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX unsupported
  Type: l1tf mitigation: PTE Inversion
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass mitigation: Speculative Store
    Bypass disabled via prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and
    __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline,
    IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Hewlett-Packard
    driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:1616
    class-ID: 0300
  Device-2: Suyin HP Truevision HD type: USB
    driver: uvcvideo bus-ID: 2-5:6 chip-ID: 064e:930b
    class-ID: 0e02 serial: 
  Display: x11 server: X.org 1.21.1.3 compositor: kwin_x11
    driver: loaded: modesetting alternate: fbdev,vesa
    resolution: 
  Message: Unable to show advanced data. Required tool
    glxinfo missing.
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 00:03.0
    chip-ID: 8086:160c class-ID: 0403
  Device-2: Intel Wildcat Point-LP High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    bus-ID: 00:1b.0 chip-ID: 8086:9ca0 class-ID: 0403
  Sound Server-1: ALSA v: k5.15.16-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.20 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000
    bus-ID: 07:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: enp7s0 state: up speed: 100 Mbps duplex: full
    mac: 
  Device-2: Broadcom BCM43142 802.11b/g/n
    vendor: Hewlett-Packard driver: bcma-pci-bridge v: N/A
    modules: bcma bus-ID: 0d:00.0 chip-ID: 14e4:4365
    class-ID: 0280
Bluetooth:
  Device-1: Broadcom BCM43142A0 Bluetooth 4.0 type: USB
    driver: btusb v: 0.8 bus-ID: 2-4:5 chip-ID: 0a5c:216d
    class-ID: fe01 serial: 
  Report: rfkill ID: hci0 rfk-id: 0 state: up
    address: see --recommends
Drives:
  Local Storage: total: 960.39 GiB used: 43.28 GiB (4.5%)
  SMART Message: Unable to run smartctl. Root privileges
  required.
  ID-1: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi)
    model: HTS541010A9E680 size: 931.51 GiB block-size:
    physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD
    rpm: 5400 serial:  rev: A7G0 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 type: USB vendor: HP
    model: x740w size: 28.88 GiB block-size: physical: 512 B
    logical: 512 B type: N/A serial:  rev: PMAP
    scheme: MBR
  SMART Message: Unknown USB bridge. Flash
    drive/Unsupported enclosure?
Partition:
  ID-1: / raw-size: 200 GiB size: 195.8 GiB (97.90%)
    used: 22.64 GiB (11.6%) fs: ext4 dev: /dev/sda1
    maj-min: 8:1
  ID-2: /boot/efi raw-size: 511 MiB size: 510 MiB (99.80%)
    used: 288 KiB (0.1%) fs: vfat dev: /dev/sda4 maj-min: 8:4
  ID-3: /home raw-size: 100 GiB size: 97.87 GiB (97.87%)
    used: 20.64 GiB (21.1%) fs: ext4 dev: /dev/sda2
    maj-min: 8:2
Swap:
  Kernel: swappiness: 60 (default)
    cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8 GiB
    used: 2 MiB (0.0%) priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
  System Temperatures: cpu: 27.8 C pch: 41.5 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 214 Uptime: 13m wakeups: 1 Memory: 3.75 GiB
  used: 2.76 GiB (73.5%) Init: systemd v: 250 tool: systemctl
  Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: pacman: 1244
  lib: 334 flatpak: 0 Shell: Zsh v: 5.8 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.12

BTW what is the normal boot speed of an Manjaro on HDD Hard Drive?

if it is something min then please tell if there is something that I can do to boot in just 20seconds something :slight_smile:

As there I have been told that windows use hibernation then why that hibernation not occuring with my laptop? Can’t see swap files? It is actually like I have shutdown my pc, same boot speed and everything like a shutdown but written hibernation which actually do shutdown and nothing :frowning:

What is file indexing service and how to disable it?

you can disable the file at the system-settings → search