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.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay