Score:0

Failed to save '.env' file: Unable to write file

id flag

I'm trying to save changes to a file in VSCode but suddenly getting this error-

enter image description here

The project folder is located in Local Disk partition on my hard disk, and it is mounted on startup as can be seen-

enter image description here

How can I resolve this issue?

Edit 1:- Here's the list of commands that @heynnema asked to run-

enter image description here enter image description here

enter image description here

I also tried the command sudo fsck -f /dev/sda4 after booting from live usb, but it didn't fix the issue.

heynnema avatar
ru flag
I'm sorry, but we don't support Zorin OS here. See https://unix.stackexchange.com/
heynnema avatar
ru flag
All of your partitions are marked as "Microsoft basic data" which would be incorrect for a Ubuntu file system. I don't know what to fsck.
Score:1
ru flag

Your local disk/partition has a file system problem, and has become read-only.

  • boot to a Ubuntu Live DVD/USB in “Try Ubuntu” mode
  • open a terminal window by pressing Ctrl+Alt+T
  • type sudo fdisk -l
  • identify the /dev/sdXX device name for your "Linux Filesystem"
  • type sudo fsck -f /dev/sdXX, replacing sdXX with the number you found earlier
  • repeat the fsck command if there were errors
  • type reboot
Sapinder Singh avatar
id flag
I still get the same error in vscode after trying the solution above. :(
heynnema avatar
ru flag
@SapinderSingh Edit your question and show me the output of `cat /etc/fstab` and `sudo fdisk -l` and tell me the exact fsck command that you gave. What is the small icon that appears on the Local Disk folder?
Sapinder Singh avatar
id flag
I've provided the outputs in the question. And that icon is the same for all disks on my system. (I'm on zorin os to be specific, which is ubuntu-based.)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.