read-only file system how to fix remote

Colin Law clanlaw at gmail.com
Thu May 2 21:02:08 UTC 2024


You have backed up anything important on there I hope

Colin

On Thu, 2 May 2024 at 21:42, Andrew J. Caines via ubuntu-users
<ubuntu-users at lists.ubuntu.com> wrote:
>
> On Thu, May 02, 2024 at 03:56:01PM -0400, Jerry Geis wrote:
> > Thanks I tried this
> >  mount -o rw,remount /
> > mount: /: cannot remount /dev/sda2 read-write, is write-protected.
>
> Since you didn't try anything else I suggested or give much more detail,
> I'm not sure what further help you expected. Nevertheless, another risky
> option is to try
>
>   $ blockdev --report /dev/sda2
>   $ sudo blockdev -v --setrw /dev/sda2
>
> then retry the remount, else fack.ext4.
>
> > there is no hardware issue - it was simply read-only due to power outage I
> > presume.
>
> Your conclusion certainly does not follow from the evidence you mention.
>
> It's possible that the automatic filesystem check will just work on the
> next boot, so you could try rebooting. At worst, the system will never
> boot again.
>
> > df -h
>
> Consider the -T and -F options when not specifying the device or mount
> point, e.g.
>
> $ df -hTF ext4
> Filesystem                  Type  Size  Used Avail Use% Mounted on
> /dev/mapper/ubuntu--vg-root ext4  225G   82G  132G  39% /
>
>
> --
> -Andrew J. Caines-   Unix Systems Architect   A.J.Caines at halplant.com
>   "Machines take me by surprise with great frequency" - Alan Turing
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



More information about the ubuntu-users mailing list