You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
458B

  1. # DESTROYS EVERYTHING!
  2. # DO NOT USE IF YOU DON'T KNOW WHAT YOU ARE DOING!
  3. # ONLY USE ON FRESH AND NON-PRODUCTIVE SYSTEMS
  4. kill -KILL `lsof -t /target`
  5. umount /target/boot/* /target/* /target
  6. wipefs --all /dev/dm-*
  7. vgchange -an
  8. pvremove -ff -y /dev/md*
  9. vgchange -an
  10. wipefs --all /dev/md*
  11. mdadm --stop /dev/md*
  12. mdadm --zero-superblock /dev/sd*
  13. mdadm --stop /dev/md*
  14. vgchange -an
  15. pvremove -ff -y /dev/sd*
  16. vgchange -an
  17. wipefs --all /dev/sd*
  18. wipefs --all /dev/sd*