Clearing disks is necessary in order for Zero OS to make use of them. I’ll explain a method that uses a live Linux distro for the job, and also link to a guide for accomplishing this within Windows. The Linux shell commands may work on MacOS too—if you try it please let me know.
You can use a distribution like gmrl that fits on a USB stick to boot the 3Node and clear the disks. This could also be done by swapping the disks into another Linux system. Please use extreme caution with these commands to avoid unintended data loss. Doing this directly on the 3Node with only disks you’re ready to wipe installed is the safest option.
Grml will present you with a shell after boot. To see what disks are connected, run:
You can identify which disk is the USB drive running gmrl with:
It actually doesn’t matter if we erase the gmrl image, because we won’t need it anymore after this step. To clear all disks, run this command:
for i in /dev/sd*; do wipefs -a $i; done
If you have any
fdisk entries that look like `/dev/nvme, you’ll need to do this too:
for i in /dev/nvme*; do wipefs -a $i; done