From 2efebdb5dbe11e2691205741b7e9a39c0f349534 Mon Sep 17 00:00:00 2001 From: Richard Laager Date: Wed, 15 Feb 2023 12:49:44 -0600 Subject: [PATCH] Debian/Ubuntu: Mention blkdiscard Inspired by PR #387 Co-authored-by: Maurice Zhou [The author of PR #387.] --- docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst | 5 +++++ docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst index 4fb7e36..4091116 100644 --- a/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst +++ b/docs/Getting Started/Debian/Debian Bullseye Root on ZFS.rst @@ -189,6 +189,11 @@ Step 2: Disk Formatting wipefs -a $DISK + For flash-based storage, if the disk was previously used, you may wish to + do a full-disk discard (TRIM/UNMAP), which can improve performance:: + + blkdiscard -f $DISK + Clear the partition table:: sgdisk --zap-all $DISK diff --git a/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst b/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst index 74aa9ae..acd6f95 100644 --- a/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst +++ b/docs/Getting Started/Ubuntu/Ubuntu 22.04 Root on ZFS.rst @@ -203,6 +203,11 @@ Step 2: Disk Formatting wipefs -a $DISK + For flash-based storage, if the disk was previously used, you may wish to + do a full-disk discard (TRIM/UNMAP), which can improve performance:: + + blkdiscard -f $DISK + Clear the partition table:: sgdisk --zap-all $DISK