Skip to content

Conversation

@c4software
Copy link
Contributor

Hi,

By default, Arch does not enable periodic TRIM. As discussed in #851, users need to enable it manually. I think this can be automated during bootstrapping.

This PR adds the detection script, installation, and migration for current users who forgot to enable it if needed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the arch wiki, https://wiki.archlinux.org/title/Solid_state_drive#TRIM the correct way to verify TRIM support for SSD drives is with lsblk --discard.

I should also add as a note that if a user encrypts their disk with LUKS. Fstrim service won't work as it's disabled by default. https://wiki.archlinux.org/title/Dm-crypt/Specialties#Discard/TRIM_support_for_solid_state_drives_(SSD)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok since LUKS is required. I close my PR

@c4software c4software closed this Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants