read-only file system how to fix remote
Andrew J. Caines
A.J.Caines at halplant.com
Thu May 2 20:40:17 UTC 2024
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
More information about the ubuntu-users
mailing list