A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
@BC Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
We cannot completely understand your question as this is an English global support. It would be helpful, if you can translate your question in English.Or you can consider support in other languages from here: https://azure.microsoft.com/support/options/
Refer the FAQ here: For which languages does Microsoft provide support?
After translating your question, this is what I understood: After stopping and starting my Azure VM. And after mounting my partition disk(/dev/sdb1) I found that all the data was lost. Are there any solutions to recover them?
My first suspicion is that you might have an issue or conflict with a temporary disk. On Azure Linux VMs, the temporary disk is typically /dev/sdb. Please check your VM type and see if it includes a temporary disk.
I have some suggestions that might help you resolve and prevent issues. You are currently mounting the data disk as /dev/sdb1. It is not recommended to mount using this as it can and does change between reboots. You can see the root partition is mounted using the UUID, which is the method I would recommend. Please obtain the UUID of the data disk by running 'blkid' and update fstab to utilize this.
You are currently using the /mnt/data directory as your mount point. I recommend changing this to something that is not in the /mnt directory. This is because by default the temporary disk utilizes the /mnt directory.
Later removing a data disk without editing fstab could cause the VM to fail to boot. Most distributions provide either the nofail and/or nobootwait fstab options. These options allow a system to boot even if the disk fails to mount at boot time. Please add the nofail option to your fstab data disk options to prevent possible VM boot failure.
After updating your fstab it should look something like this:
# cat /etc/fstab
# CLOUD_IMG: This file was created/modified by the Cloud Image build process
UUID=ec721687-8a53-464c-81f0-9066a8bd548b / ext4 defaults,discard 0 1
UUID=ED1E-2215 /boot/efi vfat umask=0077 0 1
UUID=1bc08dc0-6a18-4c99-9614-967d4f73b6e0 /datadrive xfs defaults,nofail 0 0
More information about mounting disks can be found on the Use the portal to attach a data disk to a Linux VM page.
This article describes how to restore Azure VM data from the recovery points stored in Azure Backup Recovery Services vaults. How to restore Azure VM data in Azure portal
This article provides troubleshooting steps that can help you resolve problems recovering files and folders from an Azure virtual machine (VM) backup. Troubleshoot issues in file recovery of an Azure VM backup
Additional information: https://stackoverflow.com/questions/75074409/cannot-add-data-to-azure-dev-sdb1
Hope this helps! Please let me know if that doesn't resolve your issue or if you have further questions.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.