I met an unusual error after rebooting my VPS. I cannot do anything with editing files.
![](https://static.codex.so/upload/redactor_images/o_053d200fad533ec5218101cb1b1b5360.jpg)
Nginx does not start too because it need to write logs.
![](https://static.codex.so/upload/redactor_images/o_21572862375492fd43674a6536d2008b.jpg)
Found the answer on page How to fix "sudo: unable to open ... Read-only file system". This is the single one solution that helps to fix it temporary.
mount -o remount,rw /
But after reboot same issue is there.
Then we need to check /etc/fstab
file to read the list of partitions to be mounted.
~# cat /etc/fstab
/swapfile swap swap defaults 0 0
As you see there is only swap partition described. Need to add another one for the system root.
Use command blkid
to get UUID of the root storage.
![](https://static.codex.so/upload/redactor_images/o_b9584a5c1c9dec6817562dd4106518d3.jpg)
And now you can add a new line to /etc/fstab
file with target UUID.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=4f26e5a9-2966-4f08-8b4f-6872d5ee321f / ext4 errors=panic,barrier=1 0 1
/swapfile none swap sw 0 0
Save the file and reboot the system to check results.