how to add data disk to a Linux Virtual machine

Опубликовано: 13 Июнь 2026
на канале: AiceBreakers
1,246
12

This video shows you how to attach both new and existing disks to a Linux virtual machine through the Azure portal.

The size of the virtual machine controls how many data disks you can attach. Disks attached to virtual machines are actually .vhd files stored in Azure. After attaching the disk, you need to connect to the Linux VM to mount the new disk.

Steps for mount the disk
****************************

Adding the disk to Ubuntu Machine

fdisk -l

fdisk /dev/sdc

mkfs.ext4 /dev/sdc1

mount /dev/sdc1 /data

vi /etc/fstab

/dev/sdc1 /dataDisk ext4 defaults 0 0


#Linux virtual machine # attach data disk to Linux VM #azure portal #azure tutorial #microsoft azure