All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot mount UBIFS volume rootfs to RO
@ 2020-02-16 22:07 JH
  2020-02-16 22:51 ` JH
  0 siblings, 1 reply; 3+ messages in thread
From: JH @ 2020-02-16 22:07 UTC (permalink / raw)
  To: linux-mtd

Hi,

I passed the root=ubi0:rootfs-volume ro ubi.mtd=2,2048 noinitrd
rootfstype=ubifs mem=256M rootwait=1 to kernel command line, but the
rootfs was still mounted as rw, can UBIFS volume rootfs support ro? Or
what could be missing here?

root# mount
ubi0:rootfs-volume on / type ubifs (rw,relatime,assert=read-only,ubi=0,vol=2)

Thank you.

Kind regards,

- jh

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot mount UBIFS volume rootfs to RO
  2020-02-16 22:07 Cannot mount UBIFS volume rootfs to RO JH
@ 2020-02-16 22:51 ` JH
  2020-02-27  8:02   ` Richard Weinberger
  0 siblings, 1 reply; 3+ messages in thread
From: JH @ 2020-02-16 22:51 UTC (permalink / raw)
  To: linux-mtd

Also, the kernel boot and mount the root to RO:

[    5.465303] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2,
name "rootfs-volume", R/O mode
[    5.517493] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.

Does the UBIFS have some hard wired to reverse the kernel mount back
to rw? Could it be some bugs in UBIFS or could I be missing something?

root# mount
ubi0:rootfs-volume on / type ubifs (rw,relatime,assert=read-only,ubi=0,vol=2)

Thank you.

Kind regards,

- jh

On 2/17/20, JH <jupiter.hce@gmail.com> wrote:
> Hi,
>
> I passed the root=ubi0:rootfs-volume ro ubi.mtd=2,2048 noinitrd
> rootfstype=ubifs mem=256M rootwait=1 to kernel command line, but the
> rootfs was still mounted as rw, can UBIFS volume rootfs support ro? Or
> what could be missing here?
>
> root# mount
> ubi0:rootfs-volume on / type ubifs
> (rw,relatime,assert=read-only,ubi=0,vol=2)
>
> Thank you.
>
> Kind regards,
>
> - jh
>

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cannot mount UBIFS volume rootfs to RO
  2020-02-16 22:51 ` JH
@ 2020-02-27  8:02   ` Richard Weinberger
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Weinberger @ 2020-02-27  8:02 UTC (permalink / raw)
  To: JH; +Cc: linux-mtd

On Sun, Feb 16, 2020 at 11:51 PM JH <jupiter.hce@gmail.com> wrote:
>
> Also, the kernel boot and mount the root to RO:
>
> [    5.465303] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2,
> name "rootfs-volume", R/O mode
> [    5.517493] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
>
> Does the UBIFS have some hard wired to reverse the kernel mount back
> to rw? Could it be some bugs in UBIFS or could I be missing something?
>
> root# mount
> ubi0:rootfs-volume on / type ubifs (rw,relatime,assert=read-only,ubi=0,vol=2)

I'm pretty sure your init (systemd) remounts UBIFS back to RW.
Of course you can mount UBIFS read-only.

-- 
Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-02-27  8:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-16 22:07 Cannot mount UBIFS volume rootfs to RO JH
2020-02-16 22:51 ` JH
2020-02-27  8:02   ` Richard Weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.