Slow boot on Mint 18.3 - partition issue

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
nadav325

Slow boot on Mint 18.3 - partition issue

Post by nadav325 »

Hey guys,
I am using linux mint 18.3 Cinnamon 64-bit for 2 months and I am felt my computer booting is very slow, after run the command "systemd-analyze time":
Startup finished in 4.781s (firmware) + 4.174s (loader) + 9.585s (kernel) + 19.191s (userspace) = 37.732s
and after i run "blame" i got:

Code: Select all

nadav@nadav ~ $ systemd-analyze blame
         10.125s dev-sda2.device
          9.169s lvm2-monitor.service
          8.947s ufw.service
          8.514s systemd-tmpfiles-setup-dev.service
          3.193s ModemManager.service
Probably there are many things that slow the boot but it's seems the main problem is with dev-sda.2device...After searching and reading (https://askubuntu.com/questions/711016/ ... ev-disk-by) I understand it's causing because something do with partition and SWAP.
I install Gparted and that what my partition status:
Image

when i run the command "lsblk -f" i get:

Code: Select all

NAME           FSTYPE LABEL UUID                                 MOUNTPOINT
sr0                                                              
sda                                                              
├─sda2         ext4         5426cd31-56b3-4910-a84f-4a9016d6bb5b /
├─sda3         swap         597beb02-53fd-41da-9461-eec9bc56ad08 
│ └─cryptswap1 swap         649cea59-d1cc-4cd6-ba5e-a651afd4ebc7 [SWAP]
└─sda1         vfat         38B0-42BE                            /boot/efi
this my /etc/fstab file:

Code: Select all

# /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/sda2 during installation
UUID=5426cd31-56b3-4910-a84f-4a9016d6bb5b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=38B0-42BE  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda3 during installation
#UUID=597beb02-53fd-41da-9461-eec9bc56ad08 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0
I really sure what to do, and worry to do something wrong with the system...
Many thanks!
nadav
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kukamuumuka

Re: Slow boot on Mint 18.3 - partition issue

Post by kukamuumuka »

Comment out # swap line in the /etc/fstab file and make a swap-file like.

Code: Select all

sudo -i 
dd if=/dev/zero of=/swap bs=1024 count=262144
mkswap /swap
swapon /swap
xdg-open /etc/fstab
... add the line

Code: Select all

/swap swap swap defaults 0 0
https://puolanka.info/goto/swap-file/
nadav325

Re: Slow boot on Mint 18.3 - partition issue

Post by nadav325 »

administrollaattori wrote: Wed Apr 18, 2018 5:44 am Comment out # swap line in the /etc/fstab file and make a swap-file like.

Code: Select all

sudo -i 
dd if=/dev/zero of=/swap bs=1024 count=262144
mkswap /swap
swapon /swap
xdg-open /etc/fstab
... add the line

Code: Select all

/swap swap swap defaults 0 0
https://puolanka.info/goto/swap-file/
Hey,
i comment out # from the line with swap in the fstab file,
when i run the command "swapon /swap" i got this:

Code: Select all

swapon: /swap: insecure permissions 0644, 0600 suggested.
swapon: /swap: swapon failed: Device or resource busy
it's ok?
and after i add the line, i need to run another command? cause in https://puolanka.info/goto/swap-file/ they wrote after all:
Swap file can be
swapped off by swapoff / swap
.
I continue like you said..
thanks!
kukamuumuka

Re: Slow boot on Mint 18.3 - partition issue

Post by kukamuumuka »

nadav325 wrote: Wed Apr 18, 2018 6:27 am when i run the command "swapon /swap" i got this:

Code: Select all

swapon: /swap: insecure permissions 0644, 0600 suggested.
Not serious, but you can set 0600 if you want.

Code: Select all

sudo chmod 0600 /swap
nadav325

Re: Slow boot on Mint 18.3 - partition issue

Post by nadav325 »

hey,
thank you for the quick response.
After sometime i realize that i need to set the permission for the swap file.
i repeated again (swapoff first) , and still the boot time is the same. also caused by the dev-sda2..
Any idea?
this my etc/fstab file:

Code: Select all

# /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/sda2 during installation
UUID=5426cd31-56b3-4910-a84f-4a9016d6bb5b /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=38B0-42BE  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda3 during installation
# UUID=597beb02-53fd-41da-9461-eec9bc56ad08 none            swap    sw              0       0
# /dev/mapper/cryptswap1 none swap sw 0 0
/swap swap swap defaults 0 0
many thanks!
Mute Ant

Re: Slow boot on Mint 18.3 - partition issue

Post by Mute Ant »

If you are cold-starting Mint 18.3 from a magnetic-drive in less than a minute, there's nothing to mend... that's a normal boot.
Locked

Return to “Installation & Boot”