Guys, could you help me out with some of the things.
I have put a mSATA 500GB in my Omnia (Samsung 850 evo 500GB)
I finally made the decision to give 16 GB as extroot(sda1) and 4 gb as swap(sda2). Now i am kind of confused what filesystem that partition has to be.
https://wiki.openwrt.org/doc/howto/extroot
https://wiki.openwrt.org/doc/techref/filesystems
https://wiki.openwrt.org/doc/techref/flash.layout
-
SquashFS is a read only compressed filesystem
-
JFFS2 is a writable compressed filesystem with journaling and wear leveling using LZMA for the compression.
-
â/overlayâ is the writable part of the file system that gets merged with /rom to create a uniform /-tree. It contains anything that was written to the router after installation, e.g. changed configuration files, additional packages installed with OPKG, etc. It is formated with JFFS2.
-
Whenever the system is asked to look for an existing file in â/â, it first looks in â/overlayâ, and if not there, then in â/româ. In this way â/overlayâ overrides â/româ and creates the effect of a writable â/â while much of the content is safely and efficiently stored in the read-only â/româ.
-
itâs recommended to use first partition for the root overlay, second partition for swap
So knowing these things, i understood it like this.
Make 2 partitions. Partition 1 (sda1) will become â/overlayâ, because this is the part that is being used for packages and other writeable things. (see point 4). I have to format this partition as âJFFS2-filesystemâ (see point 2).
However when i did df -T
root@K-Router:~# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mmcblk0p1 btrfs 7633920 811048 6834140 11% /
tmpfs tmpfs 1035500 5616 1029884 1% /tmp
tmpfs tmpfs 512 4 508 1% /dev
That partition is not JFFS2, but btrfs.
My questions:
- Do i need to also format partition 1(/overlay)(sda1) as btrfs?
- Have i understood it correctly that sda1 will be used as /overlay?
- Do i need to setup other partitions beside /overlay and swap?
- Is 16 GB overkill for /overlay(extroot)?
- Are the log files also stored in /overlay?
- If not, where are they stored and can i also make a partition for these?
- Have i forgotten something essential or not even essential?