Wipe off the USB drive
Windows
Mac
Insert the USB drive.
Open Terminal.
Find the location of the USB drive:
Type in the following command to list all the drives. This should show a listing of the different drives.
diskutil list
Find your USB drive in the list (it will be something like
/dev/diskX (external, physical)
where X is the number assigned to your USB drive. Look at the size of the drive to verify that it is the correct drive.
Before erasing, you may need to unmount the drive. Replace
X
with the correct disk number (e.g.,/dev/disk2
).diskutil unmountDisk /dev/diskX
Erase the drive:
Use the following command to completely erase the USB drive and remove all partitions. This will erase everything, so be sure you have selected the correct disk.
sudo diskutil eraseDisk FAT32 NEWNAME MBRFormat /dev/diskX
Replace
NEWNAME
with the name you want to assign to the USB drive, and replacediskX
with the correct disk number. You can also change the file system type (FAT32
,APFS
, etc.) and partition scheme (MBRFormat
for BIOS systems orGPT
for UEFI systems) if needed.For example,
sudo diskutil eraseDisk FAT32 UBUNTU_SERV MBRFormat /dev/disk2
Linux
Image the USB drive
Windows
Mac
This installation requires the use of Balena Etcher.
A local archive of the Balena Etcher installation files can be found on Sharepoint here: https://uofwaterloo.sharepoint.com/sites/tm-eng-ecelabinstructors/Shared%20Documents/Forms/AllItems.aspx?id=%2Fsites%2Ftm%2Deng%2Decelabinstructors%2FShared%20Documents%2FGeneral%2FLab%20Software%2FBalena%20Etcher&viewid=bd9d77ef%2Ddd67%2D4c6a%2Daccd%2Dd84e9b3c6a43
Installation files for Balena Etcher can be found on the Internet here: https://etcher.balena.io/#download-etcher