LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-04-2021, 04:31 PM   #1
BernardSmith
LQ Newbie
 
Registered: Jan 2021
Posts: 18

Rep: Reputation: Disabled
Slow boot after upgrading to SSD


Hi I have recently upgraded from mint 18.1 to 20.1
When every thing was working ok , I swapped the Hdd to a SSD (Crucial 240gb) and reinstalled system from a Timeshift backup.
However I now find it takes 2min 28 seconds from power on to the login prompt when booting.
I didn't time it on the HDD but guess it was about 35 seconds.
I have checked Stacer and there are no startup apps running.
Any ideas please ?

hardware :-
Toshiba satellite laptop about 9 years old C870-17F , 4gb memory, external Seagate 2TB usb drive.
booting into Linux mint 20.1 cinnamon 64 bit only (no dual boot, windows partition deleted at last upgrade)
 
Old 03-04-2021, 05:07 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,671

Rep: Reputation: Disabled
Alignment and make sure the controller is in AHCI mode.
 
Old 03-04-2021, 05:41 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,161

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
That will affect I/O any time, not just at boot - and yes is should definitely be checked. I'd be suspecting a mismatch of device(s) causing systemd to timeout. Was the SSD inserted into a different slot, or did it go into the same slot as the HDD was in ?.
 
Old 03-04-2021, 05:56 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,671

Rep: Reputation: Disabled
Any delays will be registered in dmesg.
 
Old 03-04-2021, 09:47 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,814

Rep: Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960Reputation: 5960
systemd-analyze shows timing for the boot process and system-analyze blame sorts to show the longest boot process first. Although a setting or an alignment problem may not be apparent in the output.
 
Old 03-05-2021, 02:29 AM   #6
BernardSmith
LQ Newbie
 
Registered: Jan 2021
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
That will affect I/O any time, not just at boot - and yes is should definitely be checked. I'd be suspecting a mismatch of device(s) causing systemd to timeout. Was the SSD inserted into a different slot, or did it go into the same slot as the HDD was in ?.
It is a laptop - only the one slot.
Reading the article on alignment - do I understand it is best to have 2mb unused before each partition ? Or is that just HDD ?
 
Old 03-05-2021, 04:13 PM   #7
BernardSmith
LQ Newbie
 
Registered: Jan 2021
Posts: 18

Original Poster
Rep: Reputation: Disabled
Here is output of systemd-analyze-blame & print all in parted :-
I dont quite understand the post by Jarret W Buse on "Solid State Drive (SSD) – Info and Alignment"
He states "For example, my system shows 'Sector size (logical/physical): 512B/512B' You also need to find the starting position for the partition. For example, mine shows partition 1 starting at 1.05 MB. So, I multiply the starting point by the sector size (105*512). The result is 53760 for the size of the boot record. Then, I divide the result by 4,096. If the result is not a whole number, then the drive is misaligned."

this gives a result of 13.125 ! not a whole number - he does not go on to rectify this - surely it would mean changing the sector to 1.12 or 1.04mb ?
I think I grasp the concept , just need a bit of clarity.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2021-03-05 21-51-01.png
Views:	13
Size:	243.4 KB
ID:	35795   Click image for larger version

Name:	Screenshot from 2021-03-05 22-01-17.jpg
Views:	11
Size:	160.5 KB
ID:	35796  
 
Old 03-08-2021, 09:38 AM   #8
BernardSmith
LQ Newbie
 
Registered: Jan 2021
Posts: 18

Original Poster
Rep: Reputation: Disabled
Help please !
I am getting used to resizing and moving my partitions in Gparted , but when I view the results in Parted, the start position and size differ from what Gparted states.
How then can I change anything to align my drive properly ?
For example :-
Gparted results :- too follow in edit
Parted results :-
 
Old 03-08-2021, 09:53 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,671

Rep: Reputation: Disabled
I wouldn't trust Gparted, it is merely a frontend for command line tools, but what tools and how it is using them is not clear for me. Anyhow, gdisk and modern versions of fdisk both align partitions on 2048-sector boundaries, these are the tools to use.
 
Old 03-08-2021, 09:56 AM   #10
BernardSmith
LQ Newbie
 
Registered: Jan 2021
Posts: 18

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
I wouldn't trust Gparted, it is merely a frontend for command line tools, but what tools and how it is using them is not clear for me. Anyhow, gdisk and modern versions of fdisk both align partitions on 2048-sector boundaries, these are the tools to use.
Great that could save me a bit of time , the info on this subject seems limited or not available , seems there are tools available for Windows but not Linux.
 
Old 03-08-2021, 12:30 PM   #11
BernardSmith
LQ Newbie
 
Registered: Jan 2021
Posts: 18

Original Poster
Rep: Reputation: Disabled
Great , sorted with Gdisk on a distro usb , then reinstalled to ssd , boot time now 15 seconds.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading boot SSD in dual boot system davide445 Linux - Hardware 10 06-14-2019 06:45 AM
How to create a single-boot Win 10 ssd from a dual-boot ssd Robert.Thompson Linux - Newbie 5 03-28-2019 02:29 PM
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
Very slow copying on SSD and HDD - slow IO operations firedrake Linux - General 33 09-02-2014 01:18 PM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration