Hi,
I have configured SDCard for extroot. But after the power cycle, it reset to internal memory. How should we mount it permanently?
More information, please.
When there is a power cut, /overlay is mounted to internal memory rather than using the memory card.
I use luci Web interface to mount /overlay to sdcard then restart it. wow, it starts working.
Is there any way to mount it permanently to sdcard whenever there is a power cut?
If settings are lost, there would be no way, because they are lost...?
Catch 22.
Is this possible to run setting/command at kernel level boot every time when it start? If yes how we can do it? From my view point we can run but my knowledge is limited.
does all settings get wiped, or only the exroot ?
The setting reset. I can see the partition on sdcard. I need to mount it again to overlay and reboot it to work out.
I did not check whether password and other thing reset.
@frollic I run router from SDcard root file then mount the internal memory. Then change to upper folder then etc folder. I have edited mtab file.
Before
/dev/root /rom squashfs ro,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
/dev/mtdblock9 /overlay jffs2 rw,noatime 0 0
overlayfs:/overlay / overlay rw,noatime,lowerdir=/,upperdir=/overlay/upper,work>
tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,noatime,mode=700 0 0
After change to:
/dev/root /rom squashfs ro,noatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,noatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,noatime 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,noatime 0 0
/dev/mmcblk0p1 / ext4 rw,relatime 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,size=512k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
debugfs /sys/kernel/debug debugfs rw,noatime 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,noatime,mode=700 0 0
Now then whenever power is reset it always mounts to SDcard rather than internal memory.
I do not know what will happen if SDCard corrupt in between?
Regards