...
So, let's connect to our instance and check that the disk has been added. Once the name of the volume has been obtainedTo find your disk, let's use the command
Code Block |
---|
language | bash |
---|
title | Check disk existence |
---|
|
grep$ <volume>cat /proc/partitions |
If needed, create a file system on it (this will scratch the disk!)
Code Block |
---|
language | bash |
---|
title | Create FS |
---|
|
$ sudo mkfs -t ext4 /dev/<volume> |
...
Code Block |
---|
language | bash |
---|
title | Mount Disk |
---|
|
$ sudo mount /dev/<volume> /mnt |
Detach a volume from an istance
...
Code Block |
---|
language | bash |
---|
title | Unmount Disk |
---|
|
$ sudo umount /mnt |
So, follow the steps:
...