EXTROOT does not work

Hi guys,

I followed several tutorials.

https://wiki.openwrt.org/doc/howto/extroot

But none of them seems to work. Here you have some information to clarify where i am at.

fdisk -l

Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock1: 7 MiB, 7340032 bytes, 14336 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mmcblk0: 7.3 GiB, 7818182656 bytes, 15269888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc0071489

Device         Boot Start      End  Sectors  Size Id Type
/dev/mmcblk0p1       2048 15269887 15267840  7.3G 83 Linux

Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x12774218

Device     Boot Start      End  Sectors Size Id Type
/dev/sda1        2048 16779263 16777216   8G 83 Linux

fstab:

config 'global'
        option  anon_swap       '0'
        option  anon_mount      '0'
        option  auto_swap       '1'
        option  auto_mount      '1'
        option  delay_root      '5'
        option  check_fs        '0'

config 'mount'
        option  target  '/overlay'
        option  uuid    'c23edd1f-7c2e-4d08-9191-6b52f23599c1'
        option  enabled '1'
        option  fstype   'ext4'

Blkid

/dev/mmcblk0p1: UUID="b5469ab9-73f7-4a6e-b09b-b314c144b2d4" UUID_SUB="6692e123-f110-4849-b2ba-98804d731e8e" TYPE="btrfs" PARTUUID="c0071489-01"
/dev/sda1: UUID="c23edd1f-7c2e-4d08-9191-6b52f23599c1" TYPE="ext4" PARTUUID="12774218-01"
/dev/mmcblk0: PTUUID="c0071489" PTTYPE="dos"

Mountpoints

To test this…removing “e2fsprogs” and again installing it.

df -h (removed e2fsprogs)

Filesystem                Size      Used Available Use% Mounted on
/dev/mmcblk0p1            7.3G    825.3M      6.5G  11% /
tmpfs                  1011.2M      2.4M   1008.8M   0% /tmp
tmpfs                   512.0K      4.0K    508.0K   1% /dev
/dev/sda1                 7.7G     18.0M      7.3G   0% /tmp/run/mountd/sda1

df -h (installed e2fsprogs)

Filesystem                Size      Used Available Use% Mounted on
/dev/mmcblk0p1            7.3G    825.7M      6.5G  11% /
tmpfs                  1011.2M      2.5M   1008.7M   0% /tmp
tmpfs                   512.0K      4.0K    508.0K   1% /dev
/dev/sda1                 7.7G     18.0M      7.3G   0% /tmp/run/mountd/sda1

While in the tutorial it says you should see "mounted on “/overlay”, which it is NOT visible at mounted file systems, but it is visible at at mount points (root - overlay).

What am i doing wrong?

I think the issue might be there are no init scripts that support overlays because Omnia doesn’t use overlays but btrfs and large flash chip.

The instructions you linked seem to assume that your OpenWRT is already configured to support overlays and you only want to move where the overlay is located.

I would expect those missing overlay scripts to be located at /lib/preinit directory on more standard OpenWRT installations. So you need to find those scripts from some source like upstream and customize them and then install them on your Omnia.

See also /etc/preinit and /lib/functions/preinit.sh

That indeed was also something that bothered me, that i could only see a large chip formatted as btrfs, while normal openwrt have different partitions.

I guess for this thing also a tutorial need to be made for other users instead of trying out tutorials that are meant especially for openwrt directory structure.

I’m gonna take a look. :grin:

Support for overlay and extroot is given, somehow…


Did a test some time ago, but did not succeed, and afterwards I did the 4-LED-reset…

I also have that, see the screenshot that i have posted. You can see at “Mount Points”.

Mount Point = /overlay
Filesystem = ext4
Options = defaults
Root = overlay
Check = no

However this could be some functionality within Turris-OS, that belonged to openWRT, but the Omnia-team have not removed this option. So it is rather being a lose-end without really doing anything in the end…well in the sense of complying with openWRT directory structure.

I’m right now looking at those missing overlay scripts.

EDIT2: Trying to “read” and understand those scripts…however this is what i am “seeing” :joy: . I guess have to wait till a tutorial or something is made by Omnia-team or by somebody else.