is it possible? if so how?
Possible, yes. But probably a bad idea (flash wear and performance).
You'll need two partitions on your extroot media. One partition will be your standard extroot, and the other will be your swap. Follow the instructions for swap here:
https://openwrt.org/docs/guide-user/additional-software/extroot_configuration#swap
That said, what device is this?
mr3420 , will try
This is a 4/32 device. The very limited amount of RAM means that the swap will likely be heavily used which is going to wear the USB stick in terms of the write cycles and it will be extremely slow. Further, it's likely that you'll be starting with a pretty old version of OpenWrt which means it has many known security vulnerabilities.
I'd highly recommend upgrading your hardware to something modern with at least 8/64 (support limited to 23.05 and earlier), or better yet 16/128 or better.
i know i know just no money here
tried this but shows this
DIR="$(uci -q get fstab.extroot.target)"
dd if=/dev/zero of=${DIR}/swap bs=1M count=100
mkswap ${DIR}/swap
dd: error writing '/swap': No space left on device
15+0 records in
14+0 records out
root@router:~# mkswap ${DIR}/swap
Setting up swapspace version 1, size = 15409152 bytes
mkswap: write error: No space left on device
i have only one partition the extroot how could i use it? will try it
It could theoretically work with a single partition.
What size is the usb stick? Is the partition using 100% of the available space?
32 gb, its using all space as extroot
what is the output of
df -h
mount
root@router:~# df -h
untFilesystem Size Used Available Use% Mounted on
/dev/root 4.8M 4.8M 0 100% /rom
tmpfs 28.0M 84.0K 27.9M 0% /tmp
/dev/mtdblock4 704.0K 656.0K 48.0K 93% /overlay
overlayfs:/overlay 704.0K 656.0K 48.0K 93% /
tmpfs 512.0K 0 512.0K 0% /dev
root@router:~# 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/mtdblock4 on /overlay type jffs2 (rw,noatime)
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)
your extroot isn't functioning. there is no mount point for it, and you're basically out of space on the internal 4MB flash (no surprise, of course).
what could i do, i wanted to upgrade to a gli.net but no money, almost homeless here
reset to defaults and start over with the extroot process.
but wait where is my 32gb ? i dont see it in the df -h
it is connected and formatted as extroot theorically it should be already working, i dont know, please help, and sorry
Should work if you config it correctly.
Did you get it working?
yes but too slow, and usb got damaged
Seems to match up with exactly what I said previously...
Good to have confirmation that it the recommendations are still valid.
Despite the fact that it didn't work out as you desired, it sounds like the questions were answered...
If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks!
Flash memory:
Inexpensive, fast, durable.
You are supposed to get at least two of those.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.