Here are some examples.
I am already looking at how you can write the firewall address list on the external disk.
Mikrotik user manager storage
tool user-manager database set db-path=disk1/cache-n-db/user-manager
System logging storage
ip proxy set cache-path=Ultra/cache-n-db/proxy
The dude storage
System logging opslag
Please note: the data directory such as "Ultra" here can be different depending on the brand and type of storage you use
dude set data-directory=Ultra/dude-data