From e95b74978254015773c4e4788b5cff70944340cd Mon Sep 17 00:00:00 2001 From: Markus Katharina Brechtel Date: Fri, 13 Oct 2017 12:17:05 +0000 Subject: [PATCH] better clean command --- CLEAN-COMMAND | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CLEAN-COMMAND b/CLEAN-COMMAND index 931f0e5..1d702d6 100644 --- a/CLEAN-COMMAND +++ b/CLEAN-COMMAND @@ -1,11 +1,17 @@ # DESTROYS EVERYTHING! DON'T USE IF YOU DON'T KNOW WHAT YOU ARE DOING! # ONLY USE ON FRESH AND NON-PRODUCTIVE SYSTEMS +kill -KILL `lsof -t /target` umount /target/boot/* /target/* /target wipefs --all /dev/dm-* vgchange -an -wipefs --all /dev/md* pvremove -ff -y /dev/md* +vgchange -an +wipefs --all /dev/md* mdadm --stop /dev/md* mdadm --zero-superblock /dev/sd* mdadm --stop /dev/md* +vgchange -an +pvremove -ff -y /dev/sd* +vgchange -an +wipefs --all /dev/sd* wipefs --all /dev/sd*