Let's say I have a product installed in my linux (elementary OS):
NAME="elementary OS" VERSION="6.1 Jólnir"
I also have Windows 10 installed in my system (dual boot) and I want to make some changes in the source code, but I keep getting this error:
chmod: changing permissions of 'filename': Read-only file system
It just happens to this file/directory.
Things i tried :
- chmod 777 file
- mount -o remount,rw '/myfile/directory' : which returns no error
- chown -R root:root /mydir
- disabling fast boot on Windows (that breaks my OS, I don't know why)
- I tried this
And none of them work. It looks like the product locks its own source files (that's my best guess).
So how can I solve this?
EDIT-1:
Here is some actual terminal output:
root@qwxp# chmod g+rw current
chmod: changing permissions of 'current': Read-only file system
root@qwxp# mount -o remount,rw /snap/pycharm-professional/current /`
The mount command has no output, only if I don't give it a mount point it will return:
mount: /snap/pycharm-professional/271: cannot remount /dev/loop6 read-write, is write-protected.
root@qwxp# chmod g+rw current
chmod: changing permissions of 'current': Read-only file system
root@qwxp# ls -al
total 8
drwxrwxrwx  3 root root 4096 Mar  5 05:46 .
drwxr-xr-x 13 root root 4096 Mar  5 06:24 ..
drwxr-xr-x 11 root root  239 Jan 27 18:52 271
lrwxrwxrwx  1 root root    3 Mar  5 05:11 **current -> 271**
-rw-r--r--  1 root root    0 Mar  5 05:46 hi.txt

