Root is locked in read only

Mar 3, 2019 - 4:26 PM

  • APi disk is locked in read only mode. Nothing I've done has helped including creating a root password. Do I need to reinstall the system? How do I use dd to create restore an image?

    0
  • Peter,

    Please try temporarily adding fsck.repair=yes (and possibly fsck.mode=force, though this shouldn't be necessary) to the kernel command line in Grub (follow https://askubuntu.com/questions/19486/how-do-i-add-a-kernel-boot-parameter for instructions on doing so).

    /etc/default/grub.d/100-grub-host-fsck-y.cfg configures fsck.repair=yes permanently for newer images so manually entering Grub shouldn't be necessary for them.

    0
  • Thanks Sergey. I will try this tonight.

    0
  • So fsck in GRUB didn’t work. Could not find fsck. Tried fsck-p after boot and that resolved issue.

    0
  • So fsck in GRUB didn’t work. Could not find fsck. Tried fsck-p after boot and that resolved issue.

    1
  • There is no such file in that directory on my atomic pi. I have the same issue

    0
  • If I fsck-p after boot, it says

    WARNING!!! The filesystem is mounted. If you continue you WILL cause SEVERE filesystem damage.

    How to do this?

    0