Browse Source

:memo: Commande to wipe a disk with sleep disabled

DricomDragon 2 months ago
parent
commit
c712ca2038
1 changed files with 8 additions and 0 deletions
  1. 8 0
      Guides/os.md

+ 8 - 0
Guides/os.md

@@ -32,6 +32,14 @@ Edit the file `/etc/netplan/00-installer-config.yaml` and fix your interface nam
 
 Tips to set Ubuntu desktop.
 
+### Wipe a disk without sleep
+
+```sh
+sudo systemd-inhibit shred -n 2 -zf /dev/sdX
+```
+
+`systemd-inhibit` prevent computer to sleep during commande.
+
 ### Change default terminal to Xfce terminal
 
 Install xfce terminal with **Ubuntu software**.