$ lsblk
The new disk will appear associated with , , etc.
$ sudo file -s /dev/<nvme0n1>
$ sudo mkfs -t ext4 /dev/<nvme0n1>
$ sudo mkdir /<custom>/<attach>
$ sudo mount /dev/<nvme0n1> /<custom>/<attach>
- Restart instances after mount volume.
$ sudo blkid
$ sudo vim /etc/fstab
UUID=<UUIDcode> /<pathmount> <type> defaults,nofail 0 2
$ sudo umount /<pathmount>
$ sudo mount -a
- Restart system.
$ lsblk
Use a file system-specific command to resize each file system to the new volume capacity. For a file system other than the examples shown here, refer to the documentation for the file system for instructions.
Use the resize2fs command to extend the file system on each volume:
$ sudo resize2fs /dev/<nvme0n1>