My /storage partition became Read Only . Any ideas how to fix it?

  • Hi all,

    I have an interesting issue today, when I woke up... My mother complained that her "TV Thingy" stopped working... I setup a LE box for her last year and shipped it across the country for her to use. I only have winSCP and SSH access to the device at this time...

    I am using an Amlogic S812 device (MX3-G), with LE 8.2.5 installed.

    Everything stopped working and on closer inspection, it looks like the /storage mounted partition has become RO!

    cat /proc/mounts

    rootfs / rootfs rw 0 0

    devtmpfs /dev devtmpfs rw,relatime,size=785568k,nr_inodes=80209,mode=755 0 0

    proc /proc proc rw,relatime 0 0

    sysfs /sys sysfs rw,relatime 0 0

    /dev/system /flash ext4 rw,noatime,data=ordered 0 0

    /dev/data /storage ext4 ro,noatime,data=ordered 0 0

    /dev/loop0 / squashfs ro,relatime 0 0

    securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0

    tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0

    devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0

    tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0

    tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0

    cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0

    mqueue /dev/mqueue mqueue rw,relatime 0 0

    tmpfs /var tmpfs rw,relatime 0 0

    debugfs /sys/kernel/debug debugfs rw,relatime 0 0

    tmpfs /tmp tmpfs rw,nosuid,nodev 0 0

    Any ideas on how I can fix this without having to re-flash the box?

    Thanks!

    Ken

  • Use dmesg|less to check for logged errors.

    It is most likely a defect file system. You can try to repair remotely, but in worst case (a real damaged file system) you stuck with a not booting system afterwards.

    First identify the device: mount|grep ' /storage '. I'm assuming /dev/sda2.

    Then force a fsck and reboot:

    Code
    e2fsck -fy /dev/sda2
    systemctl --no-block reboot

    Good luck.

    Edited once, last by mglae: e2fsck line fixed for the record (June 15, 2020 at 9:03 PM).

  • Hey again mglae

    mount|grep ' /storage '

    Gives me:

    /dev/data on /storage type ext4 (ro,noatime,data=ordered)

    e2fsck -fpy /dev/data

    Gives me:

    e2fsck: Only one of the options -p/-a, -n or -y may be specified.

    e2fsck -p /dev/data

    Gives me:

    /dev/data is mounted.

    e2fsck: Cannot continue, aborting.

    e2fsck -y /dev/data

    Gives me:

    /dev/data is mounted.

    e2fsck: Cannot continue, aborting.

    Looks like it may be the file system...