[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

TRIM support for ext4



Hi all,

Add the mount option 'discard' for ext4 filesystems so, during partitioning, TRIM can be activated for SSDs in the installed system.

--
Melhores cumprimentos/Best regards,

Miguel Figueiredo
diff --git a/debian/partman-basicfilesystems.templates b/debian/partman-basicfilesystems.templates
index f615c4b..877e03c 100644
--- a/debian/partman-basicfilesystems.templates
+++ b/debian/partman-basicfilesystems.templates
@@ -367,3 +367,10 @@ Type: text
 # a 65 columns limit (which means 65 characters in single-byte languages)
 _Description: shortnames - only use the old MS-DOS 8.3 style filenames
 
+Template: partman-basicfilesystems/text/discard
+Type: text
+# :sl4:
+# Note to translators: Please keep your translations of this string below
+# a 65 columns limit (which means 65 characters in single-byte languages)
+_Description: discard - provide discard/TRIM for SSDs. Use with caution.
+
diff --git a/mountoptions/ext4 b/mountoptions/ext4
index 25bc519..3215239 100644
--- a/mountoptions/ext4
+++ b/mountoptions/ext4
@@ -8,3 +8,4 @@ sync
 usrquota
 grpquota
 user_xattr
+discard

Reply to: