Format and Mount new drive Ubuntu 18.04

Find Disk

in this case I added a new 5GB drive to this virtual machine. /dev/sdc

find disk with fdisk -l

Format Disk

mkfs -t ext4 /dev/sdc

Create Folder and Mount Drive

mkdir /srv/test

mount /dev/sdc /srv/test

Add mount to FSTAB to keep settings after reboot

find uuid of drive


nano /etc/fstab

add following line to fstab

UUID=”f8e0e20d-c06c-4d1d-aed1-6f391cec6bab” /srv/test ext4 defaults 0 0

Leave a Reply

Your email address will not be published. Required fields are marked *