Skip to main content

# touch file touch: cannot touch `file': Read-only file system

Problem:
# touch file
touch: cannot touch `file': Read-only file system

# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 ro,data=ordered 0 0
Solution:
First check your /etc/fstab file and if root mount is comment then ucomment it
If you are not able uncomment then follow the following procedure
First go to grub rescue mode
1. Reboot your system
2. Press esc
3. press e
4. go to linux16 and end of this line of code
5. press ctrl+x
5. mount -o remount,rw /
6. vi /etc/fstab
7. save and exit
8. reboot

Comments

Popular posts from this blog

upload file type rocket chat #Accepted file upload. Can not send .xlsx

Enabling File format for upload at ROCKET CHAT application/msword   - for .doc application/vnd.openxmlformats-officedocument.wordprocessingml.document   - for .docx application/vnd.ms-excel   - for xls application/vnd.openxmlformats-officedocument.spreadsheetml.sheet   - for .xlsx application/vnd.ms-powerpoint   - for .ppt application/vnd.openxmlformats-officedocument.presentationml.presentation   - for .pptx image/*,audio/*,video/*,application/zip,application/x-rar-compressed,application/pdf,text/plain,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet