Flint automount issues

Hello.

I decided to ask for help since i spent 5 days trying with no result.

I have a flint and wanted to expand the storage with a usb flash drive and swap as well.

On the lates stable release when trying to install block-mount it complains that another package is using it and cant proceed if i force it i end up with broken UI.

On the latest beta that i prefer everything goes smooth until the moment of restart.

The internal storage and swap working fine but the router auto mounts the /dev/sda1 to /tmp instead of fstab /mnt/ and in mount it shows it double mounted. On the ui it seems also mounted automatically.

The installation of things work properly as set to /overlay or whatever location i give but after i enable lot of lists on adguard iam again with a broken ui. (Luci works at least)

Could you please help with what package can i uninstall to prevent that auto mounting or at least a more correct way to set it on fastab to avoid this happening?

Thank you.

Which version of firmware are you using?

Go to /etc/hotplug.d/ and find block folder. Remove the scripts.

Version: 3.214 is causing conflict with block-mount package
now iam using the Version: 4.0.1 beta2

I deleted the block scripts but the same issue

root@GL-AX1800:~# cd /etc/hotplug.d/block/
root@GL-AX1800:/etc/hotplug.d/block# ls
root@GL-AX1800:/etc/hotplug.d/block# pwd
/etc/hotplug.d/block

root@GL-AX1800:~# df -h
Filesystem Size Used Available Use% Mounted on
mtd:ubi_rootfs 43.3M 43.3M 0 100% /rom
tmpfs 196.6M 384.0K 196.2M 0% /tmp
/dev/ubi0_2 54.9M 38.3M 13.8M 74% /overlay
overlayfs:/overlay 54.9M 38.3M 13.8M 74% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda1 53.8G 52.0M 51.0G 0% /mnt/sda1
/dev/sda1 53.8G 52.0M 51.0G 0% /tmp/mountd/disk1_part1

That happens after i add the mount to fstab before that the inserted usb doesnt automount so removing the block scripts works indeed.

root@GL-AX1800:~# block detect > /etc/config/fstab
root@GL-AX1800:~# uci set fstab.@mount[0].enabled=β€˜1’
root@GL-AX1800:~# uci set fstab.@swap[0].enabled=β€˜1’
root@GL-AX1800:~# uci commit
root@GL-AX1800:~# reboot

hi,

i had a similar need and used extroot
https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

Hi

have used also the steps from this guide and still the double mount persists and after some time the glinet interface gets scrambled. ( after adding lot of blocklists on adguard )

Generally have tried all the possible ways to mount either with all the fs or the overlay or just mount the usb normally and add symlinks.

from all the guides i see they all have no issues mount the usb on mnt iam stuck with completing all steps and kinda working but with double mount

/dev/sda1 53.8G 52.0M 51.0G 0% /mnt/sda1
/dev/sda1 53.8G 52.0M 51.0G 0% /tmp/mountd/disk1_part1

here is what i have

yes! that’s exactly what i also have. so you have no issues with this setup?

no problem with the glinet web interface?

I mean all the guides i have checked they dont have that /tmp/mountd/disk1_part1

truth is, i find it all very confusing, these overlays file systems
as far as i can tell, so far working great,

after extroot, i installed sensors package and the exectuable ended up in the extroot area

sure it is! iam also struggling hard to get whats up.

The method you used from the guide indeed has a bind mount

But even out of this step seems like its bound anyways for some reason.

root@GL-AX1800:/# cat /proc/mounts
/dev/sda1 /mnt/sda1 ext4 rw,relatime,data=ordered 0 0
/dev/sda1 /tmp/mountd/disk1_part1 ext4 rw,relatime,data=ordered 0 0

The problem is that now the /mnt/sda1 and /tmp/mountd/disk1_part1 are reflecting the changes.
once i finish the steps to extend the overlay the /mnt/sda1 is empty and can see only the files in /tmp/mountd/disk1_part1.

not sure whats causing the glinet interface to die after all. (maybe updating packages is a bad idea)
since i have tried in a compiled version to update and everything is just breaking.

will give it another try without updating anything at all and see how it will go.

Thank you!

And this is what i mentioned before.

Before i move the overlay to the external usb the files where reflecting on /mnt and on /tmp

After adding the mount to /overlay the /mnt is empty

root@GL-AX1800:~# df -h
Filesystem                Size      Used Available Use% Mounted on
mtd:ubi_rootfs           43.3M     43.3M         0 100% /rom
tmpfs                   196.6M    320.0K    196.3M   0% /tmp
/dev/sda1                53.8G    121.3M     50.9G   0% /overlay
overlayfs:/overlay       53.8G    121.3M     50.9G   0% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1                53.8G    121.3M     50.9G   0% /tmp/mountd/disk1_part1
root@GL-AX1800:~# mount
mtd:ubi_rootfs on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,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)
pstore on /sys/fs/pstore type pstore (rw,noatime)
/dev/sda1 on /tmp/mountd/disk1_part1 type ext4 (rw,relatime,data=ordered)
root@GL-AX1800:~# cd /mnt/sda1/
root@GL-AX1800:/mnt/sda1# ls
root@GL-AX1800:/mnt/sda1# cd /tmp/mountd/disk1_part1/
root@GL-AX1800:/tmp/mountd/disk1_part1# ls
etc         lost+found  testfile    upper       work

same for me, /mnt is empty

fwiw, enclose the text with three backticks, easier to read.

root@HOME01:/$ df -h
Filesystem                Size      Used Available Use% Mounted on
mtd:ubi_rootfs           42.8M     42.8M         0 100% /rom
tmpfs                   196.4M      2.2M    194.3M   1% /tmp
/dev/sda1               235.2G    136.2M    223.1G   0% /overlay
overlayfs:/overlay      235.2G    136.2M    223.1G   0% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/sda1               235.2G    136.2M    223.1G   0% /tmp/mountd/disk1_part1
root@HOME01:/tmp/mountd$ mount
mtd:ubi_rootfs on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/sda1 on /overlay type ext4 (rw,relatime,data=ordered)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,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)
pstore on /sys/fs/pstore type pstore (rw,noatime)
/dev/sda1 on /tmp/mountd/disk1_part1 type ext4 (rw,relatime,data=ordered)
1 Like

Thanks for that!

Well i guess i will give a try to compile the v4 with just bare minimum and hope that will not include the automount that causes the issue.

wish the stable version also would work since it seems like the mount is not installed after all in the web UI but the confilct while trying to install block-mount package is killing the fun.

Hope someone else can just explain the use of /tmp mount point.

have you seen
https://openwrt.org/docs/guide-developer/imagebuilder_frontends#openwrt-auto-extroot

Oh that sounds promising.

will give it a try for sure! thanks again!