Skip to content

Instantly share code, notes, and snippets.

@stuartf7
Last active December 12, 2015 12:48
Show Gist options
  • Save stuartf7/4774346 to your computer and use it in GitHub Desktop.
Save stuartf7/4774346 to your computer and use it in GitHub Desktop.
Mount a new EBS volume for use as a TeamCity Data Directory in Amazon Linux.
# Create the new filesystem
sudo mkfs -t ext4 /dev/sdf
# Create a directory to mount the filesystem
sudo mkdir -p /data
# Update fstab file
echo '/dev/sdf /data ext4 defaults 0 0' | sudo tee -a /etc/fstab
# Mount the new filesystem
sudo mount /dev/sdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment