Creating a UEFI-Bootable Clonezilla USB Drive on macOS Ventura

Cory
4 min readDec 14, 2022

--

Clonezilla is one of my most-used tech tools. It lets me take backups of systems before I touch them, and restore those backups trivially if I break something. I keep an ISO of it on my trusty Easy2Boot drive that I carry around with me, but sometimes I find myself wanting a standalone USB drive purpose-built to boot Clonezilla and store an image. Beyond that, more and more systems are now UEFI-only boot systems, which won’t recognize legacy bootable USB drives. I recently spent a bunch of time figuring out how to make one of these purpose-built drives from my Mac, and figured I’d save you the hassle.

The steps below will show you how to format a USB drive with two partitions. We’ll install a bootable Clonezilla image on the first one, and the second one remains available for storing the images you take or restore with Clonezilla.

Step 1 — Find the USB Drive

Connect the USB drive you want to use to your Mac, then open a Terminal window and find the disk number assigned to your USB drive.

diskutil list

Verify that you’ve chosen the External (1) disk that you connected to the system, and that the (2) Size matches the size of your external drive. In this case, the external drive is addressable as disk4.

Be careful! Choosing the wrong disk number can irrevocably destroy data on your computer!

Step 2 — Format the Drive

In this case we’ll format the drive with two partitions, the first as a FAT-32 partition (required by UEFI), and the second as ExFAT. (The second parition can be any format, really, but using ExFat means it won’t show up in the boot menu which reduces confusion/complexity.)

The first partition just needs to be large enough to hold the Clonezilla files, and 1GB is plenty for that. We allocate the rest of the drive to the second partition, for storing the Clonezilla images.

Using these assumptions, we can use this command to do the format:

diskutil partitionDisk disk4 MBR MS-DOS CLONEZILLA 1G ExFAT IMAGES R

This command, broken down, does the following:

  1. diskutil — the macOS command to format and partition drives
  2. partitionDisk — use the disk formatting feature of diskutil
  3. disk4 — the disk to format, which we found in Step 1
  4. MBR — format the drive with a Master Boot Record (as opposed to GPT)
  5. MS-DOS — format the first partition as a FAT-32/MS-DOS partition
  6. CLONEZILLA — label the first partition as “CLONEZILLA”
    Note: This label can be anything you want!
  7. 1G — allocate 1GB space for the first partition
  8. ExFat — create a second partition after the first, formatted as ExFAT
  9. IMAGES — label the second parition as “IMAGES”
    Note: This label can be anything you want!
  10. R — use the remainder of the space on the drive for this partition

Run this command, and you should see output like this:

Step 3 — Installing Clonezilla

Now that we have the drive formatted, we need to install the Clonezilla files onto the first partition so that there’s something there to boot from.

Download the Clonezilla files here, choosing the amd64 architecture, the zip file type, and auto for the repository.

Once downloaded, run this command to extract the files to your USB drive, noting that you may have to adjust the path to the downloaded zip file:

unzip ~/Downloads/clonezilla-live-*-amd64.zip -d /Volumes/CLONEZILLA

After that command completes, run this command to observe the files now present on the drive:

ls -al /Volumes/CLONEZILLA

You should see output like this:

Step 4 — Boot a System with Clonezilla

You’re done! The USB drive should be fully functional now. Plug it into a UEFI-bootable system and you should see another boot option that lets you boot from your USB drive.

Happy Cloning!

--

--