fatal: could not create work tree dir 'azure-ml-labs': Read-only file system

Aayush Gauba 20 Reputation points
2023-06-09T14:27:07.7666667+00:00

I was trying to clone this repo in my cloud shell in azure and I get this error

User's image

Azure Data Science Virtual Machines
Azure Data Science Virtual Machines
Azure Virtual Machine images that are pre-installed, configured, and tested with several commonly used tools for data analytics, machine learning, and artificial intelligence training.
69 questions
0 comments No comments
{count} votes

Accepted answer
  1. YutongTie-MSFT 52,596 Reputation points
    2023-06-10T01:17:06.81+00:00

    Hello @Aayush Gauba

    Thanks for reaching out to us, the error message you received indicates that the system is unable to create a directory named 'azure-ml-labs' due to a read-only file system. This error can occur if the file system is mounted as read-only or if the file system is corrupted.

    To resolve this issue, you can try the following steps:

    Check if the file system is mounted as read-only. You can do this by running the following command:

    mount | grep azure-ml-labs
    

    If the output shows that the file system is mounted as read-only, you can try remounting it as read-write using the following command:

    mount -o remount,rw /path/to/azure-ml-labs
    

    Replace /path/to/azure-ml-labs with the actual path to the directory.

    If the file system is not mounted as read-only, you can try checking the file system for errors using the following command:

    fsck /path/to/azure-ml-labs
    

    Replace /path/to/azure-ml-labs with the actual path to the directory.

    If errors are found, you can try repairing them using the following command:

    fsck -y /path/to/azure-ml-labs
    

    This will automatically repair any errors found.

    Please let me know how it works. I hope this helps.

    Regards,

    Yutong

    -Please kindly accept the answer if you feel helpful to support the community, thanks a lot.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.