DEV Community

gokayburuc.dev
gokayburuc.dev

Posted on

How to Fix Read-Only FileSystem Error on Ubuntu

Ubuntu Logo

  • Open your terminal pressing the Ctrl + Alt + T keys.
  • Check your available partitions from your terminal
df -h 
Enter fullscreen mode Exit fullscreen mode

Alternatively :

ls -lt /dev/sda*
# sda partitionlarının hepsini görüntüle
Enter fullscreen mode Exit fullscreen mode
  • You will see an output similar to the following.
brw-rw---- 1 root disk 8, 2 Nis 20 12:48 /dev/sda2
brw-rw---- 1 root disk 8, 1 Nis 20 12:48 /dev/sda1
brw-rw---- 1 root disk 8, 5 Nis 20 12:48 /dev/sda5
brw-rw---- 1 root disk 8, 3 Nis 20 12:48 /dev/sda3
brw-rw---- 1 root disk 8, 0 Nis 20 12:48 /dev/sda
Enter fullscreen mode Exit fullscreen mode
  • You will use the partition currently system works on. In my example, i will use sda5 as current partition.
fsck -f -r /dev/sda5
Enter fullscreen mode Exit fullscreen mode
  • At this stage, the corrupted and orphan file structures will be corrected one by one. Answer by pressing the y key each time to the questions that appear on the screen. It will fix the corrupted files.
  • After this operation, reboot your system.

Top comments (0)