Hi, I'm trying to install AdGuard Home on my Archer A7 running OpenWrt 22.03.2 r19803-9a599fee93
, or rather on a USB drive plugged into the router, since it doesn't have sufficient storage capacities.
First, I followed the Automount tutorial from OpenWrt.
I saved the contents of routerDNS.sh
and installAGH.sh
into 2 new files and set a custom output directory (according to this answer on another thread):
installAGH.sh
:
# grab and install AGH and install it in a custom directory
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -c edge -o /mnt/sda1/adguard
Then, I ran both of the scripts; routerDNS.sh
worked fine, but installAGH.sh
spit out these errors:
[...]
starting AdGuard Home installation script
curl: (23) Failure writing output to destination
cannot download the package from https://static.adtidy.org/adguardhome/edge/AdGuardHome_linux_mips_softfloat.tar.gz into AdGuardHome_linux_mips_softfloat.tar.gz
Router IPv4 : 192.168.1.1
Router IPv6 : fd61:e899:7509::1
Adding fd61:e899:7509::1 to IPV6 DNS
uci: I/O error
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: no lease, failing
Goto http://192.168.1.1:3000 and configure AdGuardHome.
root@OpenWrt:~# ls
AdGuardHome_linux_mips_softfloat.tar.gz
installAGH.sh
routerDNS.sh
The error arises because curl doesn't download the AdGuard .tar.gz
file onto the USB drive as intended but on the router's internal storage, which doesn't have sufficient capacity to actually store that file.
Though, it should actually be possible to write onto the USB drive using the path /mnt/sda1/
:
root@OpenWrt:~# cd /mnt/sda1/
root@OpenWrt:/mnt/sda1# touch test.txt
root@OpenWrt:/mnt/sda1# echo "look, i can write a file onto the usb drive" >> test.txt
root@OpenWrt:/mnt/sda1# cd
root@OpenWrt:~# cat /mnt/sda1/test.txt
look, i can write a file onto the usb drive
root@OpenWrt:~#
Also, I made sure that the adguard
directory on the USB drive actually exists:
root@OpenWrt:~# ls /mnt/sda1/
adguard lost+found test.txt
Also, Luci displays this:
So why can't curl
write the AdGuard archive onto the USB drive? What am I doing wrong?