Skip to content

Instantly share code, notes, and snippets.

@xvzftube
Created July 29, 2021 16:59
Show Gist options
  • Save xvzftube/ddd498d8a96cf84e015fe7ae9e7c1ed5 to your computer and use it in GitHub Desktop.
Save xvzftube/ddd498d8a96cf84e015fe7ae9e7c1ed5 to your computer and use it in GitHub Desktop.
Mount a drive to EC2
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