Hi @Alec Voronovich
Welcome to Microsoft Q&A, thanks for posting your query.
If a data disk partition disappears after a VM reboot or detach/reattach in Azure, it may be due to issues with the partition table or disk initialization. When a disk is detached and reattached, Azure may sometimes reinitialize the disk, especially if it is not properly unmounted or if there are issues with the disk's metadata. This can lead to the loss of the partition table.
- Use tools like
fdisk
to inspect the current state of the partition table. If you have documentation of the original partition layout, you can recreate the partitions - You can try using disk recovery tools to scan the disk for lost partitions or recover data. Tools like testdisk or gparted can help in some cases.
- Prevent Future Issues: To avoid this scenario in the future, ensure that you properly detach disks before rebooting the VM. Additionally, consider regularly backing up critical data to prevent loss.
By following these recovery steps and implementing preventive measures, you can effectively manage the risk of data loss associated with disappearing partitions on Azure data disks. If issues persist, restoring from a backup is often the most reliable way to recover critical data.
Troubleshoot Linux VM device name changes in Azure - Virtual Machines | Microsoft Learn
Hope the above answer helps! Please let us know do you have any further queries.