I'm following the guide here to making an EBS volume available for use.
I use the cmd:
lsblk
I get the output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
As the guide states I then check if a file system exists:
sudo file -s /dev/xvda
I get:
/dev/xvda: DOS/MBR boot sector
Which I presume means no file system installed?
I then try the cmd to make a file system:
sudo mkfs -t ext4 /dev/xvda
I get warned:
Found a dos partition table in /dev/xvda Proceed anyway? (y,n)
I proceed and get the error:
/dev/xvda is apparently in use by the system; will not make a filesystem here!
I've tried rebooting the instance and running the cmds again with no luck.
Do I need to install a file system and if so, how?