Skip to content

Instantly share code, notes, and snippets.

@slackingfred
Created June 20, 2024 21:09
Show Gist options
  • Save slackingfred/e3acad561ea32954da982ebcb0b52bd9 to your computer and use it in GitHub Desktop.
Save slackingfred/e3acad561ea32954da982ebcb0b52bd9 to your computer and use it in GitHub Desktop.
Initialize ephemeral storage of certain AWS EC2 instance types
#!/bin/bash
mkdir -p /data
mkfs.btrfs -d single -m single /dev/nvme1n1
mount /dev/nvme1n1 /data
chmod 777 /data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment