[LEDE-DEV] Advice on filesystem for x86 (CF card)
Sebastian Fleer
pubalias at posteo.net
Wed Apr 11 09:24:45 PDT 2018
On 11.04.2018 14:48, txt.file wrote:
> There is no need to create a bigger squashfs as squashfs is read-only.
> With squashfs you get two file systems. squashfs for the files in the
> image and jffs2 for changed/added files. During the first boot the jffs2
> is created. It starts after the end of the squashfs until the end of
> device. The good point is that you have some failsafe mode where you
> ignore the jffs2 and only load the squashfs. Then your device has the
> same behavior as directly after flashing.
>
> With ext4 you get a single read-write file system (which makes failsafe
> difficult).
>
> This is how ar71xx works and I expect x86 does the same. If I am wrong
> correct me, please.
I have an APU2 with OpenWrt (build from git master) installed on a 16GB
mSATA drive. The overlayFS is only the size of TARGET_ROOTFS_PARTSIZE
(256 MB in my case).
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 7.0M 7.0M 0 100% /rom
tmpfs 1.9G 560.0K 1.9G 0% /tmp
/dev/loop0 247.0M 15.3M 161.7M 9% /overlay
overlayfs:/overlay 247.0M 15.3M 161.7M 9% /
/dev/sda1 15.7M 3.2M 12.2M 21% /boot
/dev/sda1 15.7M 3.2M 12.2M 21% /boot
tmpfs 512.0K 0 512.0K 0% /dev
So it does seem to work differently on x86.
More information about the Lede-dev
mailing list