Unable to connect to ubuntu vm after accidentally moving usr folder

Sean Connolly 0 Reputation points
2024-03-12T17:47:37.6766667+00:00

Can't connect to a ubuntu vm by ssh after accidentally moving usr folder with mv. Are there any options to retrieve data from server or reestablish a new connection? Backup is also failing in Backup + disaster recovery.

Would redeploying the vm help and would I lose any data that way? there is a mysql database I would like to be able to retrieve if possible

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,898 questions
{count} votes

3 answers

Sort by: Most helpful
  1. kobulloc-MSFT 26,321 Reputation points Microsoft Employee
    2024-03-12T18:18:17.88+00:00

    Hello, @Sean Connolly ! I'm sorry to hear that you are running into recovery issues after moving the usr folder.

    How can I recover my VM after data loss?

    Azure Backup provides the best list of options as redeploying will move the VM to a new node within the Azure infrastructure without changing the data (other than the temporary drive):

    • Create a new VM from a restore point
    • Restore disk (allows you to attach a disk to new VM)

    https://learn.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms#restore-disks

    Manually attaching an existing disk as a data disk is another option to look at:

    Let me know what route looks like the best option and I can provide more information.


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.