Clonezilla & Images on the same Flash Drive using MacOS
It took me some time to get this to work bu I've finally got a process for this so decided to jot that down here for anyone else that might run into this need!
Software you will need
- Balena Etcher
- Clonezilla ISO
Hardware you will need
- Flash drive, at least 256GB
Step 1: Flash Clonezilla to the Entire Drive
- Use balenaEtcher to flash the Clonsezilla ISO to the entire flash drive. Note: This will overwrite any exisiting partitions, but it's a necessary first step to make the drive bootable!
Step 2: Create the Images Partition
-
After balenaEtcher completes imaging the flash drive, MacOS will complain that it needs to intialize the drive, go ahead and click initialize.
-
Open Terminal (CMD + Space) type Terminal and press enter!
-
In Terminal, enter the following,
diskutil list -
Note the
/dev/diskXwhere X is the number of the flash drive that has Clonezilla on it! -
In Terminal enter the following,
sudo fdisk /dev/diskX -
Create a new partition
sudo fdisk -e /dev/diskXedit 2- Parition id:
0x0C - Do you wish to edit in CHS mode?
No - Partition offset: Default
- Partition size: Default
writequit
-
MacOS will complain and want to initialize. Go ahead and click on initialize!
-
Format the new Partition as FAT32, in Terminal enter the following,
sudo newfs_msdos -F 32 -v IMAGES /dev/diskXs2 -
Remove the falsh drive and re-insert!
You should now have an IMAGES partition mounted automaticatlly. You can place all of your images onto this partition and then when you need to restore an image, you can simply boot with this flash drive and then select local device when prompted where the images are, choose the partition we just created.