Slow boot on Mint 18.3 - partition issue

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
nadav325
Level 1
Level 1
Posts: 3
Joined: Wed Apr 18, 2018 4:41 am

Slow boot on Mint 18.3 - partition issue

Post by nadav325 » Wed Apr 18, 2018 5:10 am

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

User avatar
administrollaattori
Level 14
Level 14
Posts: 5003
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Slow boot on Mint 18.3 - partition issue

Post by administrollaattori » 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/

nadav325
Level 1
Level 1
Posts: 3
Joined: Wed Apr 18, 2018 4:41 am

Re: Slow boot on Mint 18.3 - partition issue

Post by nadav325 » Wed Apr 18, 2018 6:27 am

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!

User avatar
administrollaattori
Level 14
Level 14
Posts: 5003
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Slow boot on Mint 18.3 - partition issue

Post by administrollaattori » Wed Apr 18, 2018 12:12 pm

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
Level 1
Level 1
Posts: 3
Joined: Wed Apr 18, 2018 4:41 am

Re: Slow boot on Mint 18.3 - partition issue

Post by nadav325 » Thu Apr 19, 2018 5:27 am

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
Level 13
Level 13
Posts: 4893
Joined: Tue Sep 03, 2013 7:45 pm

Re: Slow boot on Mint 18.3 - partition issue

Post by Mute Ant » Thu Apr 19, 2018 6:14 am

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.
Data stored in an encrypted volume will only be accessible with the original password. Without this key, all the data will remain scrambled beyond hope of recovery.

Post Reply

Return to “Installation & Boot”