Issue with Mounting /dev/vda3 as Overlay on x86/64 Platform

Hi everyone,

I am currently facing an issue after installing OpenWrt and trying to use the remaining disk space on my device as an overlay. Here are the details of my setup:

  • Target Platform: x86/64
  • Firmware Version: OpenWrt 23.05.4 r24012-d8dd03c46f / LuCI openwrt-23.05 branch git-24.086.45142-09d5a38

After the installation, I wanted to use the remaining space on /dev/vda as an overlay for OpenWrt. For this purpose, I formatted /dev/vda3 as ext4 and tried to mount it as /overlay. However, the overlay is not being mounted, and I can't figure out why.

Here are some logs and outputs that might help diagnose the issue:

/dev/loop0: UUID="81cce0ce-f345-4273-a279-468271aeb6a7" LABEL="rootfs_data" VERSION="1.0" MOUNT="/overlay" TYPE="ext4"
/dev/vda1: UUID="84173db5-fa99-e35a-95c6-28613cc79ea9" LABEL="kernel" VERSION="1.0" MOUNT="/boot" TYPE="ext4"
/dev/vda2: UUID="0b0dcabc-c53831f2-b9eff295-dfb947a3" VERSION="4.0" MOUNT="/rom" TYPE="squashfs"
/dev/vda3: UUID="a6990900-dce1-4f88-90f2-2cebc16ad9e8" VERSION="1.0" TYPE="ext4"

  • cat /etc/config/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 'a6990900-dce1-4f88-90f2-2cebc16ad9e8'
option enabled '1'

  • uci show fstab

fstab.@global[0]=global
fstab.@global[0].anon_swap='0'
fstab.@global[0].anon_mount='0'
fstab.@global[0].auto_swap='1'
fstab.@global[0].auto_mount='1'
fstab.@global[0].delay_root='5'
fstab.@global[0].check_fs='0'
fstab.@mount[0]=mount
fstab.@mount[0].target='/overlay'
fstab.@mount[0].uuid='a6990900-dce1-4f88-90f2-2cebc16ad9e8'
fstab.@mount[0].enabled='1'

When I try to manually mount /dev/vda3, the additional space shows up under the software section but not on the status page.

Here’s the command I used:

mount /dev/vda3 /overlay

And the output from df -h:

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                   479.7M     68.0K    479.6M   0% /tmp
/dev/loop0                9.6G      4.5M      9.1G   0% /overlay
overlayfs:/overlay       88.0M      2.4M     78.6M   3% /
/dev/vda1                15.7M      5.6M      9.8M  36% /boot
/dev/vda1                15.7M      5.6M      9.8M  36% /boot
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/vda3                 9.6G      4.5M      9.1G   0% /overlay

Screenshot 2024-09-14 081900

Any advice on how to resolve this issue or correctly mount the overlay would be much appreciated. Thanks in advance!

Best regards,
Armin