Technologytech

How To Format A Solid State Drive For Linux Mint

how-to-format-a-solid-state-drive-for-linux-mint

To format an SSD for Linux Mint, you need to create an ext4 filesystem on it, which is the recommended filesystem for stability and performance. This process prepares the drive for use as additional storage or for a fresh operating system installation.

Before you format your SSD for Linux Mint: Crucial pre-formatting steps

Formatting erases all data on the drive, so back up any important files before proceeding. Identify the correct drive name using the terminal or the Disks utility to prevent accidental data loss on other drives. In the terminal, run lsblk to list all storage devices; look for entries like /dev/sda or /dev/nvme0n1. Alternatively, open the Disks utility from the main menu and click each drive to see its device name at the top of the window. Double-check that you have selected the correct SSD, not a different drive with valuable data, before moving forward.

How to format an SSD using the Linux Mint Disks utility

  1. Open the Disks utility from the main menu.
  2. Select your SSD from the list of drives on the left.
  3. This erases all existing partitions.
  4. Click the "+" button to create a new partition. Choose the size (for a root partition, allocate at least 100GB to allow for software and growth).
  5. Select "Ext4" as the filesystem type.
  6. The partition is now formatted and ready for use.

If you are preparing the drive for a fresh OS installation, repeat the steps to create an EFI System Partition (ESP) of about 512MB formatted as FAT32, mounted at /boot/efi during the installation process. You may also create a separate /home partition and a swap partition if desired.

How to format an SSD using the terminal

For advanced users, the command-line method offers precise control. After identifying the correct device name (e.g., /dev/sdb or /dev/nvme0n1p1), use the mkfs.ext4 command to format a specific partition. Run:

sudo mkfs.ext4 /dev/sdX1

Replace /dev/sdX1 with your actual partition. This command creates an ext4 filesystem on that partition. A clear warning: targeting the wrong device, such as /dev/sda instead of /dev/sdb, will erase all data on that drive. Always verify the device name with lsblk before running the command. For a full disk setup, you may first need to create a GPT partition table using sudo parted /dev/sdX mklabel gpt and then create partitions with sudo parted /dev/sdX mkpart primary ext4 1MiB 100%.

Mount your newly formatted SSD

To access the formatted SSD, mount it manually from the terminal. First, create a mount point directory:

sudo mkdir /mnt/ssd

Then mount the partition:

sudo mount /dev/sdX1 /mnt/ssd

Verify the mount with df -h. For automatic mounting at boot, edit the /etc/fstab file. Open it with a text editor:

sudo nano /etc/fstab

Add a line at the end with the following format:

/dev/sdX1 /mnt/ssd ext4 defaults 0 2

Replace /dev/sdX1 with your partition and /mnt/ssd with your mount point. Save the file and exit. On the next reboot, the SSD will mount automatically. If you encounter issues where the Linux installer does not see your SSD even after setting AHCI, ensure the drive is connected properly and that the partition table is GPT for UEFI systems.

Enable TRIM to optimize SSD lifespan and performance

TRIM helps maintain SSD performance and lifespan by allowing the drive to efficiently manage unused blocks. Linux Mint includes a systemd timer that runs fstrim periodically. Check if it is active with:

sudo systemctl status fstrim.timer

If it shows as active, no further action is needed. If it is not active, enable it with:

sudo systemctl enable --now fstrim.timer

Do not add the discard mount option to /etc/fstab. This continuous TRIM method can cause performance degradation and high CPU usage on modern systems. The periodic fstrim.timer is the preferred and default method. After enabling it, you can verify that TRIM is working by running sudo fstrim -v /mnt/ssd. This step is essential to enable fstrim and optimize SSD lifespan on Linux after install. If you plan to install Linux on SSD, following these formatting and TRIM steps ensures the drive performs optimally for years.

Sources

The steps on this page were checked against the following documentation. Last verified 17 September 2026.

  1. Everything-linux-101 — https://everything-linux-101.com
  2. Superuser — https://superuser.com
  3. Howtogeek — https://www.howtogeek.com/format-a-disk-on-ubuntu/
  4. Scribd — https://www.scribd.com/document/971195261/Installing-Linux-Mint-on-SSD-Safely-Grok
  5. Navvis — https://vlx2.docs.navvis.com/system-administration/how-to-format-an-ssd-to-use-with-navvis-vlx/…
  6. Altervista — https://incastro.altervista.org/en/manual-partitioning-with-linux-mint-a-detailed-guide-for-a-c…

About the author

The Digital Marketing Maestro Digital Marketing Dynamo: Hailing from the bustling streets of New York, New York , Neilla Pete stands as a beacon of knowledge in the digital marketing arena.

View all 82 articles by Neilla Pete  ·  Our editorial policy

Leave a Reply

Your email address will not be published. Required fields are marked *