Hello. Today I tried to upgrade openwrt on my BPI-R2 from 18.06.1 to 23.05. But previous image i compiled myself and used option:
CONFIG_TARGET_ROOTFS_EXT4FS=y
and openwrt looked like regular Linux. For me it’s easier to edit /etc, without troubles with uci.
in 23.05 I saw strange partitions on the disk
# fdisk -l
Disk /dev/mmcblk0: 7.28 GiB, 7818182656 bytes, 15269888 sectors
Disk /dev/mmcblk1: 29.81 GiB, 32010928128 bytes, 62521344 sectors
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 640 2687 2048 1M 41 PPC PReP Boot
/dev/mmcblk1p2 8192 90111 81920 40M ea Linux extended boot
/dev/mmcblk1p3 98304 311295 212992 104M 2e unknown
# block info
/dev/mmcblk1p5: UUID="4b6826b5-c902-4bcc-868e-7a024944ff41" VERSION="1.0" TYPE="ext4"
/dev/mmcblk1p6: UUID="870052d4-ee0d-4f4d-8da8-f8b2468d9c7e" VERSION="1.0" TYPE="ext4"
/dev/mmcblk1p65: UUID="420e40d3-692950af-c085560b-c94d8924" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/mmcblk1p66: UUID="089c83ef-ea6b-4351-904a-154b2b530a3a" LABEL="rootfs_data" VERSION="1.16" MOUNT="/overlay" TYPE="f2fs"
/dev/mmcblk0 - is internal emmc, I don't use it
/dev/mmcblk1 - SD card with Openwrt.
What are these parition mmcblk1p65 and mmcblk1p66?
I try to reproduce instruction Extroot, but nothing happened:
uci and mount
# uci show fstab.@mount[0]
fstab.cfg024d78=mount
fstab.cfg024d78.target='/overlay'
fstab.cfg024d78.uuid='4b6826b5-c902-4bcc-868e-7a024944ff41'
fstab.cfg024d78.enabled='1'
# mount
/dev/root on /rom type squashfs (ro,relatime,errors=continue)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mmcblk1p66 on /overlay type f2fs (rw,lazytime,noatime,background_gc=on,discard,no_heap,user_xattr,inline_xattr,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=reuse,checkpoint_merge,fsync_mode=posix,discard_unit=block)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
What best way to use system without overlay? copy /root to new partition and use chroot? or I can modify it somewhere in /etc or somewhere else?
P.S. Sorry for my English, it exist only through Google