VM Ubuntu - Data disk

Guido 21 Reputation points

I am creating an Ubuntu 20.04 VM and I did create a data disk during the creation from the portal.
How can I tell to the data disk to be mounted in /home, to cover the space used by the users?
In the portal I didn't see any option to specify it. Am I supposed to do it by the console and if so could you point me out how?
Does this has any relation with the Gen1 and Gen2 architecture choice?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,307 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
505 questions
0 comments No comments
{count} votes

Accepted answer
  1. deherman-MSFT 30,456 Reputation points Microsoft Employee

    When you create a data disk either during VM creation or after it is presented as an unformatted disk the disk needs to be formatted and mounted before it can be used. Instructions for that can be found here.

    After the disk has been formatted and mounted and /etc/fstab updated the mount should persist on reboot. You can then create a managed image and future vms will have this data disk and home directory already mounted on boot.

    Hope this helps! Let me know if you run into issues or still have questions.


    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

0 additional answers

Sort by: Most helpful