Skip to content

Instantly share code, notes, and snippets.

@gyfoster
Created February 1, 2021 16:18
Show Gist options
  • Save gyfoster/fbaba4cc2a9e520e0f0a17a8c400d1a3 to your computer and use it in GitHub Desktop.
Save gyfoster/fbaba4cc2a9e520e0f0a17a8c400d1a3 to your computer and use it in GitHub Desktop.
# 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