USB extend OpenWrt system memory

Hi,

As I need more functions to my router I would like to extend system memory to an old router Sagem F@ST2704V2 fw OpenWrt 19.07.10.

I mounted /dev/sda1 to /mnt and copied the content of /overlay/. to /mnt , and edited /etc/config/fstab file

This is what I did:

mkfs.ext4 /dev/sda1

edited the file fstab to

config 'mount'
        option  target  '/overlay'
        option  uuid    'myuuidnumber'
        option  enabled '1'

then

# mount /dev/sda1 /mnt

and

# cp -a /overlay/. /mnt

now the 8GB USB is mounted but I have still few memory available:

root@OpenWrt:~# df -h /overlay
Filesystem                Size      Used Available Use% Mounted on
/dev/mtdblock4            3.8M      3.4M    344.0K  91% /overlay

this is dmesg output

root@OpenWrt:~# dmesg | tail
[   40.966758] br-lan: port 1(eth0.1) entered disabled state
[   40.972944] device eth0.1 entered promiscuous mode
[   40.977887] device eth0 entered promiscuous mode
[   41.064668] br-lan: port 1(eth0.1) entered blocking state
[   41.070253] br-lan: port 1(eth0.1) entered forwarding state
[   41.076412] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   41.893513] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[  421.709311] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[71651.842300] kmodloader: loading kernel modules from /etc/modules.d/*
[71651.886226] kmodloader: done loading kernel modules from /etc/modules.d/*

and df output

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 2.8M      2.8M         0 100% /rom
tmpfs                    29.2M      1.1M     28.1M   4% /tmp
/dev/mtdblock4            3.8M      3.4M    344.0K  91% /overlay
overlayfs:/overlay        3.8M      3.4M    344.0K  91% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                 7.2G     40.9M      6.8G   1% /mnt

Can you please help me to understand where I wrong?

did you follow https://openwrt.org/docs/guide-user/additional-software/extroot_configuration ?

ummm not, I didn't see before..
Can help me without re-flash the router?

Just reset it?

I flashed the router and did as described in guide posted by frollic, now is ok.

The file /etc/config/stab now is looking that way:


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 '/mnt/sda1'
	option uuid 'myuuidnumber'
	option enabled '0'

config mount 'rwm'
	option device '/dev/mtdblock4'
	option target '/rwm'

config mount 'overlay'
	option uuid 'myuuidnumber'
	option target '/overlay'


Thank you

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.