Mounting an Attached Volume to a Linux Server Instance
Video Guide
Document Guide
Step 1:
-
Open a shell inside the instance.
-
Identify the attached volume’s name.
- $lsblk -l
-
Likely will be vd[x], [x] will be a letter based on how many other volumes are attached. Vdb if the volume is the second, vdc if it is the third and so on.
-
Partition the drive
-
$sudo fdisk /dev/vd[x]
-
G
-
N
-
Enter
-
Enter
-
Enter
-
W
-
-
-
Make the file system
- $sudo mkfs -t xfs /dev/vd[x]1
-
Identify and copy the uuid the uuid
- $lsblk -f
-
Make a directory where this partition will be mounted
- $sudo mkdir -p /media/vol1
-
Edit /etc/fstab to mount the drive on bootreboot
- $sudo vi /etc/fstab
-
UUID=’uuid’ /media/vol1 xfs defaults 0 0
-
Esc :wq
-
- $sudo vi /etc/fstab
- reboot
Last modified: Thursday, 16 November 2017, 7:29 PM