Skip to content

Instantly share code, notes, and snippets.

@chuggerguy
chuggerguy / format
Created September 27, 2025 16:15
standard 2 partition Mint partitioner scripted with fdisk
#!/bin/bash
# Performs a two partition format
# Partition 1: The first 500MB is partitioned and formatted as FAT32 for EFI boot files
# Partition 2: The remaining space is partitioned and formatted as EXT4 for /
# This script does not allow for creating a /home partition, just the two mentioned above
# This script does not prompt for verification, be careful choosing a target. :)
if [ "$(id -u)" != "0" ]; then
exec sudo "$0" "$@"
fi