Lewis Tran
Lewis Tran

Reputation: 652

Error: cannot open .git/FETCH_HEAD: Read-only file system

I installed git after setting up Ubuntu 18.04. I run git fetch with my old project, I got Error: cannot open .git/FETCH_HEAD: Read-only file system. Before that, everything was ok Thanks for any helps

Upvotes: 0

Views: 1660

Answers (2)

mohammad mobasher
mohammad mobasher

Reputation: 777

i think best and safe option is to clone again the repo

Upvotes: 0

Lewis Tran
Lewis Tran

Reputation: 652

Error comes from my partition. I install dual-boot Window 10 and Ubuntu, turning on fast startup on Window 10 make partition can't unmount, and when I switch to Ubuntu, OS make partition mount read-only.

I try to run command

ntfsfix /dev/sda5

umount /dev/sda5

mount /dev/sda5

and it worked. Moreover, I turned of fast startup on Window 10

Upvotes: 1

Related Questions