Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic:  Slow mounting of SSD  (Read 7006 times)

Offline Mte90

  • User
  • Posts: 216
  • KDE & Debian lover
    • http://www.mte90.net
Slow mounting of SSD
« on: 2018/07/12, 12:47:18 »
I bought a new SSD with more capacity then the previous one and copied with dd.
So after that I removed the swap partition that was on that and enlarged the partition, execute a trimmer, made an update-initramfs, update-grub, add in /etc/sysctl.conf to disable swap, an e2fsck, removed also the reference on fstab of the swap partition.The only difference that i swat that the start block on the previous ssd vas 2048 and on the new one is 2049.I was thinking that was systemd the problem on launching the system because there is like a prompt for like 30 seconds and later start systemd.
This is the output of dmesg https://pastebin.com/KJaVmSUN and you can see that (apart the random issue that I saw that writing random characters on that moment of boot remove that warnings) take 33 seconds to mount my drive.
I am using the latest kernel available and I have no idea how to fix this very slow starting time.
PS: this is what journalctl -b say: https://pastebin.com/kzGHkrzp
« Last Edit: 2018/07/12, 15:21:15 by Mte90 »

Offline devil

  • Administrator
  • User
  • *****
  • Posts: 4.838
Re: Slow mounting of SSD
« Reply #1 on: 2018/07/12, 13:45:34 »
Wat does
Code: [Select]
systemd-analyze blame tell you

Offline der_bud

  • User
  • Posts: 1.072
  • member
Re: Slow mounting of SSD
« Reply #2 on: 2018/07/12, 14:15:07 »
I notice some network activity/waiting in the logs. Do you have NetworkManager-wait-online.service enabled. If yes, does disabling that make your boot faster?
Du lachst? Wieso lachst du? Das ist doch oft so, Leute lachen erst und dann sind sie tot.

Offline Mte90

  • User
  • Posts: 216
  • KDE & Debian lover
    • http://www.mte90.net
Re: Slow mounting of SSD
« Reply #3 on: 2018/07/12, 14:28:26 »
Systemd-analyze blame report -> https://pastebin.com/DwUSwZU0
As I can see nothing helpful to understand why is so slow before starting systemd itself.
For network manager I am not sure but I think that is executed after the mounting of the ssd so with systemd and I have the problem that slow is before systemd starting itself.
When I boot the laptop, after the choosing of the kernel in grub I have a black screen with a blink prompt dash (where i can write stuff without any effect). after 30 seconds systemd is executed and in less of 3 seconds the operative system is ready.

Offline absolut

  • User
  • Posts: 455
Re: Slow mounting of SSD
« Reply #4 on: 2018/07/12, 19:34:18 »
when was the last file system check on the ssd partitions?

Offline Mte90

  • User
  • Posts: 216
  • KDE & Debian lover
    • http://www.mte90.net
Re: Slow mounting of SSD
« Reply #5 on: 2018/07/12, 19:49:47 »
I made one this morning

Offline unklarer

  • User
  • Posts: 816
Re: Slow mounting of SSD
« Reply #6 on: 2018/07/12, 20:04:45 »
Quote from: Mte90
I bought a new SSD with more capacity then the previous one and copied with dd.

Quote from: Achtung
To transfer an existing system to an SSD (solid-state drive), dd should only be used with extreme caution. In the default settings, dd uses a block size of 512 bytes, which leads to unnecessary write processes with modern SSDs. If, using the parameter bs=, a block size specification corresponding to the block size or a multiple thereof of the SSD is used, this danger does not exist. Furthermore one should consider that the alignment is kept, which is most probably not the case without further parameters.
Source:

Now the question is, what was your dd command like?

Offline Mte90

  • User
  • Posts: 216
  • KDE & Debian lover
    • http://www.mte90.net
Re: Slow mounting of SSD
« Reply #7 on: 2018/07/12, 20:14:37 »
Code: [Select]
dd if=/dev/sdi of=/media/mte90/ADATA/laptop.img bs=64 status=progressThe blocksize was 64
[/code]
« Last Edit: 2018/07/12, 21:27:11 by Mte90 »

Offline absolut

  • User
  • Posts: 455
Re: Slow mounting of SSD
« Reply #8 on: 2018/07/12, 20:37:18 »
that command represents only the "backup" of the original ssd, with all partitions, etc.
personally, i find the block size to be very small for the task... i would have used bs=8M or bs=16M

i think it is quite interesting to check the command that was used to "restore" the image to the new ssd
checking with gparted the alignment of partitions after that makes sense

Offline Mte90

  • User
  • Posts: 216
  • KDE & Debian lover
    • http://www.mte90.net
Re: Slow mounting of SSD
« Reply #9 on: 2018/07/12, 21:27:03 »
Code: [Select]
dd if=/media/mte90/ADATA/portatile.img of=/dev/sdi bs=64 status=progressThis is the other one but I am not sure what can do the bs, probably the speed on that but now I don't think that is a big problem.

Online dibl

  • siduction community member
  • Global Moderator
  • User
  • *****
  • Posts: 2.345
    • Land of the Buckeye
Re: Slow mounting of SSD
« Reply #10 on: 2018/07/12, 22:21:42 »
Sounds like this may be too late to help, but you can use gparted, working on the gui desktop, to copy and paste partitions from one hdd/ssd to another.  Then later you can resize the partitions on the target device, again with gparted.
System76 Oryx Pro, Intel Core i7-11800H, SSD 970 EVO Plus;  Asus ROG STRIX X299-E, Core i7-7740X, Nvidia GTX-1060, dual monitors, SSD 860 EVO

Offline absolut

  • User
  • Posts: 455
Re: Slow mounting of SSD
« Reply #11 on: 2018/07/12, 22:47:15 »
actually, checking the partitions with gparted (and making sure these are aligned) can still be done.

Offline Mte90

  • User
  • Posts: 216
  • KDE & Debian lover
    • http://www.mte90.net
Re: Slow mounting of SSD
« Reply #12 on: 2018/07/13, 00:03:42 »
I copied with dd and with gparted enlarged the partition so I already made that step.

Offline unklarer

  • User
  • Posts: 816
Re: Slow mounting of SSD
« Reply #13 on: 2018/07/13, 12:06:35 »
Did you also check the alignment (of all partitions)?
Code: [Select]
# parted /dev/sda align-check opt

Offline Mte90

  • User
  • Posts: 216
  • KDE & Debian lover
    • http://www.mte90.net
Re: Slow mounting of SSD
« Reply #14 on: 2018/07/13, 12:36:02 »
Report that is not aligned :-/
Checking how to fix that