[LEDE-DEV] x86 auto fsck at boot possible?

Nishant Sharma codemarauder at gmail.com
Tue Feb 20 02:11:59 PST 2018


Hi Daniel,

On Monday 19 February 2018 09:44 PM, Daniel Golle wrote:

Many thanks for your reply.

>> How can I enable automatic fsck.ext4 on x86?
> 
> Your description sounds like you are using ext4 as a root filesystem
> without an overlay on top. The option of having a read-write rootfs
> instead of squashfs+overlay is mostly intended for development
> purposes (such as working on features happening early during boot and
> hence before the r/w-overlay has been mounted).

Yes, I am using ext4 on rootfs. I was not aware of the caveats that you 
have just mentioned.

> For use in production, I'd always use squashfs-based images having an
> overlay on top -- there shouldn't be a need for fsck with ext4 or
> f2fs as both allow to replay the journal and clean things up when being
> mounted. This just won't work when mounted by the kernel using the
> root= parameter in read-only mode (replaying the journal and fixing
> things will write stuff in the end and is hence not allowed when
> mounting read-only). The later read-write remount also won't allow that
> because the filesystem is already mounted.
> 
> Is there any reason why you choose to have a read-write rootfs instead
> of the squashfs+overlay approach?

I simply built the images by adding more packages and used the default 
combined-ext4 image built by the buildroot. Would using squashfs images 
generated by buildroot be fine? I would like to use additional space 
available on the SSD on /overlay.

I am building a squashfs image and will post if I need further clarity.

Thanks & regards,
Nishant



More information about the Lede-dev mailing list