Created
January 1, 2026 22:20
-
-
Save mbaynton/e05834b1a864ada3b5cf8ca9ce97c738 to your computer and use it in GitHub Desktop.
initialize ec2 nvme with btrfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -e | |
| sudo parted /dev/nvme1n1 mklabel gpt | |
| sudo parted /dev/nvme1n1 mkpart primary btrfs '0%' '100%' | |
| sudo mkfs.btrfs /dev/nvme1n1p1 | |
| sudo mkdir -p /mnt/btrfs | |
| sudo mount /dev/nvme1n1p1 /mnt/btrfs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment