Choose style:

Author Topic: Slow P9 startup after repartitioning hard drive(SOLVED)  (Read 563 times)

0 Members and 1 Guest are viewing this topic.

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 986
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Slow P9 startup after repartitioning hard drive(SOLVED)
« on: March 24, 2019, 11:46:16 am »
Hello Peppermint people. Well it seems I'm not out of the woods yet. After swapping hard drives, the system was booting up n bout 25 seconds but after I went in and made new partitions on the unallocated area, which involved moving the swap partition to the right so I could grow the DATA partition and creating about 5 more smaller 30g partitions. boot up was horrendous again like it had been after I tried copying partitions from one hard drive to this one.  It took about 3 minutes to boot up into P9. Well this time i remembered about checking the fstab of the swap partition and sure enough, it had changed. So after changing the entry in fstab, now it takes about a minute and a half to boot up. I want to get back to 25 seconds. What can I do?

Here is some info:
Code: [Select]
albert@albert-desktop ~ $ systemd-analyze time
Startup finished in 14.309s (firmware) + 16.902s (loader) + 36.467s (kernel) + 24.835s (userspace) = 1min 32.514s
graphical.target reached after 24.821s in userspace


albert@albert-desktop ~ $ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @24.821s
└─udisks2.service @7.166s +17.654s
  └─basic.target @7.116s
    └─sockets.target @7.116s
      └─dbus.socket @7.116s
        └─sysinit.target @7.113s
          └─systemd-timesyncd.service @988ms +371ms
            └─systemd-tmpfiles-setup.service @922ms +38ms
              └─local-fs.target @900ms
                └─run-user-1000-doc.mount @9.984s
                  └─run-user-1000.mount @8.648s
                    └─swap.target @867ms
                      └─dev-disk-by\x2duuid-138182a8\x2dba6b\x2d4120\x2d8908\x2de76f9d
                        └─dev-disk-by\x2duuid-138182a8\x2dba6b\x2d4120\x2d8908\x2de76f

There are a couple of things I need guidance on. First of all, what can I change and secondly, how do I make those changes. Remember, I have no idea of how to do what "tweaks" people perform, like VinDSL(man I hope he jumps in on this).Thanks guys. Incidentally, The other distro I have installed is Ubuntu, not Lubuntu, and after changing the swap fstab entry for it, it booted up relatively quick. It seems like it is taking an eternity to get where the screen gives the message "gave up on waiting..." Thanks guys   :)
« Last Edit: March 25, 2019, 05:56:17 pm by alynur »
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25327
  • Karma: 2794
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Slow P9 startup after repartitioning hard drive
« Reply #1 on: March 24, 2019, 12:08:53 pm »
Can we have the output from
Code: [Select]
sudo fdisk -l
and
Code: [Select]
blkid
and
Code: [Select]
cat /etc/initramfs-tools/conf.d/resume
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 alynur

  • Trusted User
  • Member
  • *****
  • Posts: 986
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Slow P9 startup after repartitioning hard drive
« Reply #2 on: March 24, 2019, 04:21:08 pm »
Sure
Code: [Select]
albert@albert-desktop ~ $ sudo fdisk -l
[sudo] password for albert:
Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors
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: gpt
Disk identifier: 2AB1FE11-631B-4B38-90EB-EC65F8BB0688

Device         Start       End   Sectors   Size Type
/dev/sda1       2048   1050623   1048576   512M EFI System
/dev/sda2    1050624 103032831 101982208  48,6G Linux filesystem
/dev/sda3  103032832 164493311  61460480  29,3G Linux filesystem
/dev/sda4  164493312 569862143 405368832 193,3G Linux filesystem
/dev/sda5  569862144 586254335  16392192   7,8G Linux swap
/dev/sda6  586254336 647888895  61634560  29,4G Linux filesystem
/dev/sda7  647888896 709701631  61812736  29,5G Linux filesystem
/dev/sda8  709701632 771493887  61792256  29,5G Linux filesystem
/dev/sda9  771493888 833300479  61806592  29,5G Linux filesystem
/dev/sda10 833300480 894799871  61499392  29,3G Linux filesystem

Code: [Select]
albert@albert-desktop ~ $ blkid
/dev/sda1: UUID="AE4E-959E" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="a214246a-8542-4466-9c4a-1df2c816f958"
/dev/sda2: UUID="b4054ac1-50c6-4114-8cd2-cc8384f1d361" TYPE="ext4" PARTLABEL="peppermint" PARTUUID="57ec59fa-6ea7-4c2f-bd07-a8494e062af7"
/dev/sda3: UUID="4e4bdc2e-92d0-4cf5-8fef-5f0a746a9afc" TYPE="ext4" PARTLABEL="Ubuntu" PARTUUID="009c32e5-2b58-433f-be02-07bc4c7a99d1"
/dev/sda4: UUID="ec363331-1864-4320-8998-df762df7e905" TYPE="ext4" PARTUUID="082c684e-bea9-472b-a123-ce1380b4d599"
/dev/sda5: UUID="138182a8-ba6b-4120-8908-e76f9da6d92c" TYPE="swap" PARTUUID="7a49a2b9-0572-48f2-90e6-e0665bd90026"
/dev/sda6: UUID="4cf3537b-96fa-435c-9b31-e6fb66b3b4bb" TYPE="ext4" PARTUUID="831b96ce-95b1-4c0c-a536-67ff1fbabeaf"
/dev/sda7: UUID="a083c444-a5dc-491e-be39-d328168e0f1d" TYPE="ext4" PARTUUID="2bffbc02-e806-4d40-a0de-412cbd124a26"
/dev/sda8: UUID="9e87fdba-6418-4271-bbc2-a8619fab4b48" TYPE="ext4" PARTUUID="70cc89e5-6a94-48b1-8bc4-0b3ae56e6bc5"
/dev/sda9: UUID="31c8b681-eddd-42c3-9d06-3d639e89bbc3" TYPE="ext4" PARTUUID="bbd40eb2-85cb-4e4a-877e-3a15f0f5122e"
/dev/sda10: UUID="a42c1bbd-54e8-42d0-bc00-2d95c8d4991c" TYPE="ext4" PARTUUID="97dcbb4b-ab07-42d7-9f41-9af74060a6f3"

Code: [Select]
albert@albert-desktop ~ $ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=bdb99a9a-a822-4264-9dbd-3299aa5d31f2

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/sda2 during installation
UUID=b4054ac1-50c6-4114-8cd2-cc8384f1d361 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=AE4E-959E  /boot/efi       vfat    umask=0077      0       1
# swap was on /dev/sda5 during installation
UUID=138182a8-ba6b-4120-8908-e76f9da6d92c none            swap    sw              0       0
#
# User created DATA partition, mounted at /mnt/DATA
UUID=ec363331-1864-4320-8998-df762df7e905  /mnt/DATA  ext4
defaults,discard   0  2


What was I thinking?

Offline pin

  • Trusted User
  • Veteran
  • *****
  • Posts: 1823
  • Karma: 250
    • View Profile
Re: Slow P9 startup after repartitioning hard drive
« Reply #3 on: March 24, 2019, 04:31:54 pm »
WTF  :o ...hepta-booting  :D

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5193
  • Karma: 939
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Slow P9 startup after repartitioning hard drive
« Reply #4 on: March 24, 2019, 05:35:59 pm »
I had the same prob during one of my 'experiments', the other day. Never could figure out what caused it, but...

Once I manually changed the entries in 'fstab' to match the entries in 'blkid', it was all good again.

EDIT

BTW, one of the little tricks I learned, years ago, when looking at long numbers like those - ID numbers, VIN numbers, serial numbers, part numbers, et cetera - is to look at the last 4 numbers, and disregard the rest. Of course, once you spot the number you're looking for, you need to use the entire number.

It's almost impossible for ridiculously long numbers, like those, to contain the same last four (4) digits. 99.9% of the time it works out.

Just saying...
« Last Edit: March 24, 2019, 05:48:50 pm by VinDSL, Reason: Addendum »

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 986
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Slow P9 startup after repartitioning hard drive
« Reply #5 on: March 24, 2019, 07:06:35 pm »
WTF  :o ...hepta-booting  :D

Since i don't know how to actually change a distro's personality, i like to check out  how the other distro's look and feel.

I just completed a Timeshift snapshot recover of a snapshot with the 4.15 kernel, boot time decreased to just under a minute. I then reinstalled the 5.0 kernel and boot time is now down to about 43 seconds. so that's a whole lot better but i was booting at 25 seconds so there is room for improvement.
here are the new boot logs,

Code: [Select]
albert@albert-desktop ~ $ systemd-analyze time
Startup finished in 11.186s (firmware) + 7.460s (loader) + 4.196s (kernel) + 1min 7.491s (userspace) = 1min 30.334s
graphical.target reached after 1min 7.476s in userspace

Code: [Select]
albert@albert-desktop ~ $ systemd-analyze critical-chain
The time after the unit is active or started is printed after the "@" character.
The time the unit takes to start is printed after the "+" character.

graphical.target @1min 7.476s
└─multi-user.target @1min 7.475s
  └─vboxautostart-service.service @1min 7.465s +9ms
    └─vboxdrv.service @12.492s +54.964s
      └─basic.target @12.477s
        └─paths.target @12.477s
          └─acpid.path @12.477s
            └─sysinit.target @12.473s
              └─systemd-timesyncd.service @1.006s +320ms
                └─systemd-tmpfiles-setup.service @948ms +39ms
                  └─local-fs.target @944ms
                    └─run-user-1000-doc.mount @15.227s
                      └─run-user-1000.mount @14.001s
                        └─swap.target @895ms
                          └─dev-disk-by\x2duuid-138182a8\x2dba6b\x2d4120\x2d8908\x2de7
                            └─dev-disk-by\x2duuid-138182a8\x2dba6b\x2d4120\x2d8908\x2d
lines 1-19/19 (END)

What was I thinking?

Online VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5193
  • Karma: 939
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Slow P9 startup after repartitioning hard drive
« Reply #6 on: March 24, 2019, 07:38:37 pm »
That VBoxDrv service is killing your times...








Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 986
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Slow P9 startup after repartitioning hard drive
« Reply #7 on: March 25, 2019, 10:46:14 am »
That VBoxDrv service is killing your times...


Oh boy, now we are getting somewhere. Thanks VinDSL for pointing that out, now how do I fix that?

I installed Virtualbox from the deb file. I have   Version 6.0.4 r128413 (Qt5.9.5) installed.
« Last Edit: March 25, 2019, 10:54:47 am by alynur »
What was I thinking?

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 986
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Slow P9 startup after repartitioning hard drive
« Reply #8 on: March 25, 2019, 12:31:58 pm »
This is what my user/bin looks like:::


i think the duplicate entries are from originally installing version 5.2 or maybe it was 5.3 and then deleting it and then installing  version 6.0.4.
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25327
  • Karma: 2794
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Slow P9 startup after repartitioning hard drive
« Reply #9 on: March 25, 2019, 03:21:56 pm »
What duplicates .. I'm not seeing any ?



Try something out....

Run:
Code: [Select]
sudo xed /etc/initramfs-tools/conf.d/resume
make the file EMPTY .. SAVE the file, and reboot to test.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 986
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Slow P9 startup after repartitioning hard drive
« Reply #10 on: March 25, 2019, 05:55:12 pm »
What duplicates .. I'm not seeing any ?



Try something out....

Run:
Code: [Select]
sudo xed /etc/initramfs-tools/conf.d/resume
make the file EMPTY .. SAVE the file, and reboot to test.

You're right, my visual recognition must be failing along with my memory. AND your test was successful. Reboot took 20 seconds, even quicker than the original SSD. Thank you so much  "Oh tremendous one", you did it again.   ;D
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25327
  • Karma: 2794
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Slow P9 startup after repartitioning hard drive(SOLVED)
« Reply #11 on: March 25, 2019, 06:13:08 pm »
LOL :))
(your memory obviously isn't that bad)
« Last Edit: March 26, 2019, 10:06:35 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 986
  • Karma: 54
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Slow P9 startup after repartitioning hard drive(SOLVED)
« Reply #12 on: March 25, 2019, 06:55:09 pm »
LOL :))
(you memory obviously isn't that bad)

 ;D  ;D
What was I thinking?