i7bar
55
How to move AdGuard to SD on AXT1800 Slate.
After inserting microSD, it was mounted as /tmp/mountd/disk1_part1. For example, we don’t want to keep AdGuardHome directory in /etc at all, we want everything to be stored in
/tmp/mountd/disk1_part1/AdGuardHome directory
a) Modify symlink /usb/bin/AdGuardHome to point to /tmp/mountd/disk1_part1/AdGuardHome/AdGuardHome
b) Modify the script adguardhome in /etc/init.d./adguardhome and replace all paths /etc/AdGuardHome with /tmp/mountd/disk1_part1/AdGuardHome as shown below
Now, AdGuardHome will store all data on microSD (I have done that mostly for keeping the log of DNS requests), the easiest way to check that is to check for updates of filters in the AdGuardHome GUI and after that look at the timestamp of the files in the /tmp/mountd/disk1_part1/AdGuardHome/data/filters directory.
Step ‘a’ can be omitted if one creates a symlink /etc/AdGuardHome pointing to /tmp/mountd/disk1_part1/AdGuardHome.
I hope this helps.
2 Likes