Created
July 29, 2021 16:59
-
-
Save xvzftube/ddd498d8a96cf84e015fe7ae9e7c1ed5 to your computer and use it in GitHub Desktop.
Mount a drive to EC2
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
sudo fdisk /dev/xvdb | |
sudo partprobe /dev/xvdb | |
sudo mkfs /dev/xvdb -t ext4 #n, enter, enter, ... w when prompted again. The w will write | |
sudo mount /dev/xvdb data/ | |
sudo chown -R ubuntu data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment