How do I change the directory where daedalus stores its DB and logs in Linux?

Yep, that’s the best way!

You can also make it persistent across host reboots by adding it to your /etc/fstab file.

Say, you wanna keep your Daedalus blockchain on a separate drive mounted at /zfspool1/daedalus:

$ mv /home/user/.local/share/Daedalus /zfspool1/daedalus
$ mkdir /home/user/.local/share/Daedalus

add the following line to /etc/fstab file:
/zfspool1/daedalus /home/user/.local/share/Daedalus none defaults,bind 0 0

$ sudo mount /home/user/.local/share/Daedalus

# Check: you will see the same device is mounted at two different locations (note: I'm using ZFS).
$ mount | grep -i Daedalus
zfspool1/daedalus on /zfspool1/daedalus type zfs (rw,noatime,xattr,noacl)
zfspool1/daedalus on /home/user/.local/share/Daedalus type zfs (rw,noatime,xattr,noacl)

1 Like