From b3180fd22553f072496571351f4df225597af69a Mon Sep 17 00:00:00 2001 From: Maurice Zhou Date: Tue, 14 Feb 2023 18:01:41 +0100 Subject: [PATCH] NixOS Root on ZFS: wipe flash-based storage device. Signed-off-by: Maurice Zhou --- .../NixOS/Root on ZFS/2-system-installation.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst b/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst index 4d6f3eb..5f4bd75 100644 --- a/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst +++ b/docs/Getting Started/NixOS/Root on ZFS/2-system-installation.rst @@ -10,6 +10,11 @@ System Installation for i in ${DISK}; do + # wipe flash-based storage device to improve + # performance. + # ALL DATA WILL BE LOST + # blkdiscard -f $i + sgdisk --zap-all $i sgdisk -n1:1M:+1G -t1:EF00 $i