Last active
December 12, 2015 12:48
-
-
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.
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
# 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