Friday, April 26, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 49972  / 2 Years ago, wed, august 31, 2022, 5:02:51

I just installed ubuntu on my new intel SSD. Now I am not sure, whether paritions are properly aligned in respect to my specific SSD.



Here's my fdisk output.



$ fdisk -l

Platte /dev/sda: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spur, 14593 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a6294

Gerät boot. Anfang Ende Blöcke Id System
/dev/sda1 * 1 1913 15360000 83 Linux
/dev/sda2 1913 14058 97558528 83 Linux
/dev/sda3 14058 14594 4300800 82 Linux Swap / Solaris


Also, do I still need to align my SSD at all, since I am using TRIM on the ext4 partitions by mounting them with the discard flag.



If it is the case, that my partitions are not properly aligned, what could I do to fix this without having to reinstall everything?


More From » partitioning

 Answers
5

Ensuring SSD alignment with parted tool looks like a pretty good guide for aligning your filesystem on the SSD:




  1. Get the block size of your SSD in bytes (there are heaps of tips, and I don't know which ones will work for which hardware).

  2. Start the partition editor:



    sudo parted

  3. Show the partition table:



    p

  4. Verify that the numbers in the Start and Size columns are divisible by the block size.


[#44460] Wednesday, August 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skaing

Total Points: 462
Total Questions: 124
Total Answers: 113

Location: Nauru
Member since Thu, Feb 2, 2023
1 Year ago
skaing questions
;