[LEDE-DEV] Advice on filesystem for x86 (CF card)

Mikael Bak mbak at fxnet.hu
Thu Apr 12 01:38:59 PDT 2018


On 2018-04-11 16:09, Luiz Angelo Daros de Luca wrote:
> 
> You can also expand the overlay partition directly on img file or after the
> installation.
> 
> First expand this physical partition. I like to do it with parted (script
> friendly) but it is not available
> as OpenWrt tool:
> 
> $ /usr/sbin/parted OpenWrt...combined.img resizepart 2 100%
> 

Nice! That worked. Partition resized.
GParted did not let me do that.

> 
> Now resizing the filesystem depends on which fs you use. If you are using
> f2fs (LEDE and OpenWrt snapshot),
> you can expand using a mounted filesystem. You just need to remount overlay
> as ro. It might be a bug
> but when I did in a rw mounted fs, it exploded my filesystem.
> 
> # mount -o remount,ro /overlay
> # resize.f2fs /dev/loop0 # from f2fs-tools
> # reboot
> 

As a matter of fact I did not have to do the resize.f2fs.
Perhaps because my image contained the f2fs-tools package the fs was 
automatically resized on first boot (just speculating).

Now I have 932MB on /overlay and I'm happy :)

Thanks a lot for the help.

Cheers,
Mikael



More information about the Lede-dev mailing list