Results 1 to 3 of 3

Thread: Read-only root filesystem - ext4

  1. #1
    Join Date
    Nov 2004
    Location
    Seattle, WA
    Beans
    93
    Distro
    Xubuntu 9.10 Karmic Koala

    Lightbulb Read-only root filesystem - ext4

    I'm posting this in case anyone else runs into this issue.

    First, the particulars:
    • I'm running 9.10 on x86_64, and my root partition is ext4.
    • I've mounted my ext4 partitions as "barrier=0,noatime,errors=remount-ro" - this is not really that safe, and probably caused my issues.


    This is a work computer, and I leave it on 24/7. When I started using it this morning, I couldn't write to any file on the root partition -- the partition was mounted as read-only.

    I assumed this meant a drive error of some sort, so I rebooted to see if fsck would repair the errors - nope, it didn't! The bootloader couldn't even mount the drive. I entered my root password to start maintenance mode, and fixed the drive errors manually:

    Code:
    fdisk -A -a
    This command tells fdisk to run through /etc/fstab and check each partition entered there (-A), and to automatically fix any errors without confirmation (-a). Given my choice of ext4 and mount options, there's a small chance I've lost some writes in this process. Be careful when choosing automatic repairs (-a) -- make sure that's really what you want!
    "To make a statue needs skill: to view a statue aright needs skill also." -Epictetus

  2. #2
    Join Date
    Sep 2007
    Beans
    32
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Read-only root filesystem - ext4

    Similar thing keeps happening to me on a family computer, it seems to be specific to 9.10 though because other releases don't seem to have this problem. Could it be related to EXT4? The computer is an Dell Dimension E520. I also noticed that when Ubuntu starts to misbehave like this I am unable to mount External harddrives also with the same error. I have run fsdsk at boot at least 10 times. Is there a permenant solution?

  3. #3
    Join Date
    Oct 2006
    Beans
    107
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Read-only root filesystem - ext4

    Quote Originally Posted by bribera View Post
    Code:
    fdisk -A -a
    This command tells fdisk to run through /etc/fstab and check each partition entered there (-A), and to automatically fix any errors without confirmation (-a). Given my choice of ext4 and mount options, there's a small chance I've lost some writes in this process. Be careful when choosing automatic repairs (-a) -- make sure that's really what you want!
    I think you mean fsck here, instead of fdisk.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •