Fixing Read-Only FileSystem Error in Ubuntu
gokayburuc.dev

gokayburuc.dev @gokayburuc

About: Industrial Engineer turned Full-Stack Developer. Fluent in Turkish, English, and Russian. Passionate about Go, Rust, Python, Linux, Neovim, and productivity tools like Obsidian.

Location:
Kırklareli, Turkey
Joined:
Jul 14, 2019

Fixing Read-Only FileSystem Error in Ubuntu

Publish Date: Apr 20 '23
0 0

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.

Comments 0 total

    Add comment