1

I've been reading up on SSDs under both Windows and Linux. While Windows seems to do most of the aligning automatically and frankly all this information found online baffles me, I thought about installing a windows first and then setting up the partitions using their disk management tool.

Will this work? How would I have to set up the partitions for me to be able to install linux on it?

Here's what I thought.

  1. Install Windows
  2. Partition the SSD*
  3. use a Linux live CD to change the file system of the partitions to ext4 or whatever I'll be using
  4. Install Linux using the created partitions
  5. Hopefully enjoy my new SSD

Now, how many partitions would I have to create for Linux and what file system would they have to be?

If it's ext4, I'll turn of journaling manually.

2 Answers 2

1

I myself done following instructions nicely without any problem:

  1. After installing Windows, download GParted iso from gparted.sourceforge and write it to CD.
  2. Boot from the CD; you'll see an amazing tool to work with partitions. Resize your Windows partition to your desired size if required. delete all un-used partitions.
  3. Now, create a new partition (at-least 10GB) with ext{3,4} file-system.
  4. Then created a new partition (with size your ram * 2) with swap file-system.
  5. Reboot and continue with your desired Linux installation from CD.
  6. Linux will recognize your Windows installation and adds it to boot menu

These steps are enough for who is new to Linux, in my idea.

3
  • Sounds like a plan to me, appreciate the help, thank you! May 14, 2012 at 19:22
  • But that reminds me, though; does gparted ignore alignment or does it ignore automatically? May 14, 2012 at 19:30
  • @user1227453: Unfortunately I'm almost new to Linux but please see if gparted.sourceforge.net/… has information which you need. May 15, 2012 at 8:36
0

Yes, online information about partition alignment is confusing. Neither Wikipedia nor the top Google results as of today do a decent job at explaining the benefits. ChatGPT however, says this (which makes sense but I haven't fact checked it):

Partition alignment is important for SSDs because of the way they store data. SSDs use a type of memory called NAND flash memory to store data. NAND flash memory is organized into blocks, with each block containing multiple pages. When data is written to an SSD, it is written to one or more pages within a block.

If a partition is not aligned with the underlying block boundaries, then the SSD may have to read and write data across multiple blocks. This can lead to decreased performance and increased wear on the SSD. In some cases, it can even cause data corruption.

To avoid these issues, it is important to align partitions with the underlying block boundaries of the SSD. This can be done by creating partitions that start at a multiple of the block size, which is typically 4KB or 8KB for modern SSDs. Many operating systems, including Windows and Linux, will automatically align partitions correctly by default

Further, it also explains why sometimes there's a bit of unallocated space after the last partition:

there can be benefits to leaving unallocated space on an SSD, especially at the end of the drive. This is known as overprovisioning, which means leaving some of the NAND flash memory unused by the file system.

Overprovisioning provides a number of benefits, such as improving performance and increasing the lifespan of the SSD. By leaving unallocated space on the drive, the SSD has more space to perform wear-leveling, which is the process of distributing writes evenly across all NAND flash memory cells to prevent any one cell from wearing out faster than the others. This can help to prevent performance degradation and extend the lifespan of the drive.

In addition, overprovisioning can also help to improve write amplification, which is the ratio of data written to the drive versus the amount of data that is actually stored on the NAND flash memory. By leaving some space unused, the SSD has more space to perform garbage collection and consolidate data, which can help to reduce write amplification and improve overall performance.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .