OpenWrt Forum Archive

Topic: overlay dont work

The content of this topic has been archived on 3 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I have a TP-LINK WR1043ND w/ OpenWRT r28713, and i try to mount my flash as a root or overlay as Wiki says.
When i try whole root:

root@OpenWrt:/# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    3200       328      2872  10% /
/dev/root                 3584      3584         0 100% /rom
tmpfs                    14772       256     14516   2% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3            3200       328      2872  10% /overlay
overlayfs:/overlay        3200       328      2872  10% /
/dev/sda1                 3200       328      2872  10% /
/dev/sda3             15132932    168792  14195432   1% /mnt/sda3

so like when i do "opkg install nano" space on /dev/mtdblock3 is used instead of sda1

in overlay mode:

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    3200       300      2900   9% /
/dev/root                 3584      3584         0 100% /rom
tmpfs                    14772       188     14584   1% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3          388693     10334    358280   3% /overlay
overlayfs:/overlay        3200       300      2900   9% /
/dev/sda1               388693     10334    358280   3% /overlay
/dev/sda3             15132932    168792  14195432   1% /mnt

same here, mtdblock3 is used. How can i fix that?

(Last edited by utrack on 11 Nov 2011, 15:28)

Paste output from:

uci export fstab

(Last edited by written_direcon on 11 Nov 2011, 15:24)

written_direcon wrote:

Paste output from:

uci export fstab
root@OpenWrt:~#uci export fstab
package 'fstab'

config 'global' 'automount'
    option 'from_fstab' '1'
    option 'anon_mount' '1'

config 'global' 'autoswap'
    option 'from_fstab' '1'
    option 'anon_swap' '0'

config 'swap'
    option 'device' '/dev/sda2'
    option 'enabled' '1'

config 'mount'
    option 'device' '/dev/sda1'
    option 'fstype' 'ext3'
    option 'target' '/overlay'
    option 'options' 'rw,sync'
    option 'enabled' '1'

config 'mount'
    option 'enabled' '1'
    option 'device' '/dev/sda3'
    option 'target' '/mnt'
    option 'fstype' 'ext3'

tried 'is_rootfs', no dice though

The discussion might have continued from here.