Page 1 of 1

slow boot end no swap partition

Posted: Fri May 03, 2019 11:42 am
by betalabs
hi i have linux mint 19.1 mate 64bit.The problem is i have slow boot times over 1.55min.i dont know why my laptop boot too slow.i attach the fstab, blame,critical-chain file ,this maybe to help .in blkid not show me eny swap partition .in fstab say "swap was on /dev/sda3 during installation
UUID=46520acb-801a-4e6f-a4c5-30fa870ae2d0 none swap sw 0 0" .
in gparted not show me any swap partition.
how to make one swap partition???.

Re: slow boot end no swap partition

Posted: Fri May 03, 2019 12:04 pm
by Flemur
betalabs wrote:
Fri May 03, 2019 11:42 am
hi i have linux mint 19.1 mate 64bit.The problem is i have slow boot times over 1.55min.i dont know why my laptop boot too slow.i attach the fstab, blame,critical-chain file ,this maybe to help .in blkid not show me eny swap partition .in fstab say "swap was on /dev/sda3 during installation
UUID=46520acb-801a-4e6f-a4c5-30fa870ae2d0 none swap sw 0 0" .
in gparted not show me any swap partition.
how to make one swap partition???.
Edit: the OS waits 1:30min if it can't find the swap file: that's probably most or all of your slow boot.

In gparted, make the swap partition like any other partition, just make it type = "linux swap".
gparted -> rt-click free space -> new -> (window comes up) : "File system: (select "linux swap" from menu).
But I think Mint 19.1 uses a swap file, not a partition, but your fstab file doesn't show that.
If you make a new swap partition, make sure the UUID matches the one in fstab.

Re: slow boot end no swap partition

Posted: Fri May 03, 2019 12:21 pm
by betalabs
i have 1.02mb free space in disk.i try to boot with gparted boot cd end resize main partition.after make swap file how to change the fstab file ???.

Re: slow boot end no swap partition

Posted: Sun May 05, 2019 5:12 am
by Hendrick
According to the FSTAB, you already have a swap partition. It could be that the UUID does not reflect
the actual swap partition. This can (and will) cause delay.
Use Gparted to get information about the current UUID. After that you can use this info to modify the
FSTAB file via a text program. You will have to be Root in order to do that.

Another showstopper might be the file "rc.local" in the "etc" folder. I think it's safe to empty that file,
because most of the commands are now extecuted via SystemD.

Hendrick / Amsterdam

Re: slow boot end no swap partition

Posted: Sun May 05, 2019 11:55 am
by pbear
Flemur wrote:
Fri May 03, 2019 12:04 pm
I think Mint 19.1 uses a swap file, not a partition ...
FYI, that's true by default, but a swap partition is supported also. Indeed, it's semi-automatic. If a swap partition is present, the installer will use it and set up fstab accordingly.

Re: slow boot end no swap partition

Posted: Sun May 05, 2019 12:39 pm
by Flemur
betalabs wrote:
Fri May 03, 2019 12:21 pm
i have 1.02mb free space in disk.i try to boot with gparted boot cd end resize main partition.after make swap file how to change the fstab file ???.
Swap file or swap partition?
If you made a partition, just change your original line so the UUID (46520,,,e2d0) matches:

Code: Select all

UUID=46520acb-801a-4e6f-a4c5-30fa870ae2d0 none swap sw 0 0
Get the partition UUID with:

Code: Select all

sudo blkid
Make a backup of /etc/fstab, then edit it sudo your-text-editor /etc/fstab
and change
46520acb-801a-4e6f-a4c5-30fa870ae2d0
to the new UUID from blkid.

If it's a swap file, then mine looks like:

Code: Select all

/etc/100MB.swap swap swap defaults  0 0
IIRC, you have to make the file some special, but simple, way...