Distro Installation
You must first download the .iso file from: https://ubuntu.com/download/server.
Insert a USB flash drive and list all connected disks with
diskutil listUnmount the disk
diskutil unmountDisk /dev/disk2Create a bootable USB flash drive
sudo dd if=/home/gordonpn/Downloads/ubuntu-24.04.1-live-server-amd64.iso of=/dev/rdisk2 bs=4M status=progressFor better performance, use the raw device interface (/dev/rdiskN) instead of the block device (/dev/diskN). The r prefix allows faster data transfer.
Eject the disk after completion
diskutil eject /dev/disk2Now, you can insert the USB flash drive into the device and boot into it, follow the instructions on screen.
Once booted into the newly installed distro, if you need to write zeroes across an entire disk
lsblk
df -hsudo dd if=/dev/zero of=/dev/sdX bs=4M status=progress