Created
February 1, 2021 16:18
-
-
Save gyfoster/fbaba4cc2a9e520e0f0a17a8c400d1a3 to your computer and use it in GitHub Desktop.
This file contains 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
# get name of device | |
lsblk | |
file -s /dev/<device-name> | |
# replace xfs if different file system type | |
mkfs -t xfs /dev/<device-name> | |
mkdir /ebs1 | |
mount /dev/<device-name> /ebs1 | |
# make copy of /etc/fstab | |
cp /etc/fstab /etc/fstab.bak | |
# add automount entry - mounts volume on each reboot | |
echo "/dev/<device-name> /ebs1 xfs defaults,nofail 0 0" >> /etc/fstab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment