Choose style:

Author Topic: Slow startup (SOLVED)  (Read 795 times)

0 Members and 1 Guest are viewing this topic.

Offline stew1411

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 3
    • View Profile
  • Peppermint version(s): 8
Slow startup (SOLVED)
« on: December 16, 2017, 07:56:10 pm »
My peppermint install is now taking a lot longer to boot than previously. I had been doing a W10 P8 dual boot. W10 had 80GB while P8 had around 19GB. I haven't booted Windows in so long that I decided to repartition and give all the space to P8. Increased my swap and now I have a 100GB P8 install.

After rebooting from the live image I got to the grub rescue mode. Manually set the boot drive and got back into P8. Figured it was slow because the system needed to configure some stuff with the size increase. Updated and reinstalled grub. Still slow boot. Figured it was because of the borked grub and updates I did. Well now everything's back to normal except the boot time is still a lot longer than previous. Is it because the install now has a 100GB filesystem vs the 19GB? 19GB would boot quicker, however the 100 GB is mostly empty.

Sent from my SAMSUNG-SM-G935A using Tapatalk

« Last Edit: December 17, 2017, 05:37:40 pm by stew1411 »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Slow startup
« Reply #1 on: December 17, 2017, 09:11:14 am »
No, the size of the  partition shouldn't make much of a difference (if any).

Can we have the output from:
Code: [Select]
systemd-analyze blame
and can you also run:
Code: [Select]
dmesg > ~/Desktop/dmesg.txt
you'll then find a file called dmesg.txt on your desktop .. can you host that online somewhere, such as:-
http://www.tinyupload.com/
and provide us with a link to it.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline stew1411

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 3
    • View Profile
  • Peppermint version(s): 8
Re: Slow startup
« Reply #2 on: December 17, 2017, 11:06:17 am »
Systemd-analyze

Dmesg

I timed it this morning. Boot was around 60 seconds from the time the Peppermint loading screen appeared. It used to be less than 10.
« Last Edit: December 17, 2017, 11:11:03 am by stew1411 »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Slow startup
« Reply #3 on: December 17, 2017, 12:08:11 pm »
Can you post the output from:
Code: [Select]
sudo blkid
and the contents of
Code: [Select]
xed /etc/fstab
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline stew1411

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 3
    • View Profile
  • Peppermint version(s): 8
Re: Slow startup
« Reply #4 on: December 17, 2017, 01:59:36 pm »
Code: [Select]
/dev/sda5: UUID="146fc0b8-8ecb-4424-bedc-551d7b539660" TYPE="ext4" PARTUUID="00063d04-05"
/dev/sda6: UUID="589bad66-0a25-4c8e-a994-3bae5e7f1ead" TYPE="ext4" PARTUUID="00063d04-06"
/dev/sda7: UUID="6ff8f7c7-1c6c-48cc-9c20-cadcbbbbdaa9" TYPE="ext4" PARTUUID="00063d04-07"
/dev/sda8: UUID="965c71b5-39f0-45f4-bef3-6b424f2ab3c4" TYPE="swap" PARTUUID="00063d04-08"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"

Code: [Select]
# /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/sda8 during installation
UUID=6ff8f7c7-1c6c-48cc-9c20-cadcbbbbdaa9 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=d91e436b-1055-4548-8b7d-ce7405645c77 none            swap    sw              0       0
« Last Edit: December 17, 2017, 04:49:56 pm by PCNetSpec »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Slow startup
« Reply #5 on: December 17, 2017, 04:44:11 pm »
Okay the UUID of the swap partition changed for some reason, causing a long delay whilst the system tries to find it....

Open a terminal and run:
Code: [Select]
sudo xed /etc/fstab
and make it read:
Code: [Select]
# /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/sda8 during installation
UUID=6ff8f7c7-1c6c-48cc-9c20-cadcbbbbdaa9 /               ext4    errors=remount-ro 0       1
#
# ORIGINAL swap was on /dev/sda6 during installation
# UUID=d91e436b-1055-4548-8b7d-ce7405645c77 none            swap    sw              0       0
#
# NEW swap which is now on /dev/sda8
UUID=965c71b5-39f0-45f4-bef3-6b424f2ab3c4 none            swap    sw              0       0
SAVE the file and exit the text editor.

Now reboot to check your boot time.
« Last Edit: December 17, 2017, 04:48:26 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline stew1411

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 3
    • View Profile
  • Peppermint version(s): 8
Re: Slow startup
« Reply #6 on: December 17, 2017, 05:37:20 pm »
Thank you so much. After reboot it took 2 seconds to boot from the Peppermint loading screen. So reading the changes to the code you made, it looks like when I resized my partitions and increased my swap file size I changed the partition by accident. I just increased the other partitions from the left then decreased from the right to get the unallocated space lower for the other partitions. I completely deleted the swap file then rebuilt it. Lesson learned for future reference.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25659
  • Karma: 2819
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Slow startup (SOLVED)
« Reply #7 on: December 17, 2017, 05:44:02 pm »
Yes if you resize them they **generally** keep the same UUID, but any NEW partition will be assigned a completely different one.

Deleting and recreating swap gave it a new UUID which was different to that listed in fstab.

So we just commented out the old fstab entry, and added the new one.

[EDIT]

Thanks for marking the topic (SOLVED) :)
« Last Edit: December 17, 2017, 05:48:09 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec