Configuring Your SSD for Linux @DontCallMeLenny
Configuring Your SSD for Linux  @DontCallMeLenny
Uploaded November 2016 | Updated November 2026, 3 hours ago
In this video I discuss options for configuring your SSD for use in Linux. Hope you enjoy!
Show Notes:
sudo hdparm -I /dev/sdX | grep "TRIM supported"
(checks if trim is supported on your SSD) Change X to your drive letter
*****************************************************************************
sudo fstrim -v / (manual trim on command)
*****************************************************************************
add fstrim to rc.local file to trim at boot:
sudo leafpad /etc/rc.local
add "fstrim /" and save
*****************************************************************************
enable trim automatically:

sudo leafpad /etc/fstab
add discard,noatime to ext4 partitions (mounts drive as ssd with continuous trim)
************************************************************************************
Swappiness:
cat /proc/sys/vm/swappiness (to check current setting)
sudo sysctl vm.swappiness=10 (to manually set swappiness - will revert on next boot)

To set swappiness permanently:

sudo leafpad /etc/sysctl.d/99-sysctl.conf
add at end of file:
vw.swappiness=10
save file

reboot after each step
Configuring Your SSD for LinuxMy Top 5 Linux System Tray UtilitiesHow to Fix the Unable to Find Root Boot Error in Your Linux InstallBlack Lab Linux Onyx Beta 1 - First Look!!Back To Manjaro !Installing System Tray Utilities in your Linux Mint DesktopGoodbye Windows! Hello Manjaro! Episode 8 - Streaming Video and ICE-SSBXFCE Panel Switch - Does it Really Work?My Top 15 Things to do after Installing Arch LinuxEtcher - An Easy Way to Create a Bootable USB DriveAdding Conkies to Your Linux Mint DesktopManjaro Mate 16.08 Preview - First Look!
Dont Call Me Lenny! |

Configuring Your SSD for Linux

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER