user1414: I have an intentionally small /home partition and a large data partition on Linux. When can I move move Daedalus' data files to my data partition.
I ran out of room on /home and had to move a bunch of stuff elsewhere that I did not want to move.
A long time ago, I tried doing it with symlinks, but that does not work.
I think CH mentioned wanting to add this in one of his AMAs.

user382: I use symlinks with Daeadalus all the time. I typically don't symlink the entire Daedalus directory. In my case, state-cardano is a separate zfs volume on my system:
ls -hal ~/.local/share/Daedalus/        
total 7.5K
drwxr-xr-x  3 sam users  7 Aug  6 15:25 .
drwxr-xr-x 36 sam users 37 Oct  1 21:23 ..
lrwxrwxrwx  1 sam users 39 Apr 13  2018 devnet -> /home/sam/state-cardano/daedalus-devnet
lrwxrwxrwx  1 sam users 40 Mar 30  2018 mainnet -> /home/sam/state-cardano/daedalus-mainnet
lrwxrwxrwx  1 sam users 40 Feb 17  2021 mainnet_flight -> /home/sam/state-cardano/daedalus-mainnet
drwxr-xr-x  7 sam users  9 Aug  6 15:29 shelley_qa
lrwxrwxrwx  1 sam users 40 Mar 22  2019 testnet -> /home/sam/state-cardano/daedalus-testnet


user7742: 2022 Daedalus 5.1.0
Yes this was a big problem. Daedalus just ate up my SSD while I have a mostly free 2TB HDD sitting doing nothing.
It turned out to be very simple though. Here are the steps for Ubuntu based systems;

Make sure that Daedalus is not running.

Copy the ~/.local/share/Daedalus directory somewhere in your harddisk. In my case I copied it to /mnt/P300/Daedalus.

To back up, I renamed the original like ~/.local/share/Daedalus_

Create a symlink in ~/.local/share to point to /mnt/P300/Daedalus like
ln -s /mnt/P300/Daedalus ~/.local/share/Daedalus

We are almost finished. Open ~/.local/bin/daedalus-mainnet with an editor. There are two lines starting with exec. In both of them add -m /mnt:/mnt before -m /home:/home. In my case /mnt is where my HDD is mounted. You should first check the mountpoint of your HDD. Perhaps you need to add -m /media:/media or whatever your mountpoint is.

Finally open ~/.local/share/Daedalus/mainnet/namespaceHelper. (now this file is in fact in the HDD since you have already linked at step 4) with an editor and repeat exactly what we did in step 5.

Say some prayers.


Now you are probably OK and when run, Daedalus should start working on the HDD copy.

Make sure it finalizes replaying the ledger and synching the blockchain.
Make sure everything works just fine.

You may now delete the backup ~/.local/share/Daedalus_ from your SSD.

1414: <p>I have an intentionally small /home partition and a large data partition on Linux. When can I move move Daedalus' data files to my data partition.</p>
<p>I ran out of room on /home and had to move a bunch of stuff elsewhere that I did not want to move.</p>
<p>A long time ago, I tried doing it with symlinks, but that does not work.</p>
<p>I think CH mentioned wanting to add this in one of his AMAs.</p>
 382: <p>I use symlinks with Daeadalus all the time. I typically don't symlink the entire Daedalus directory. In my case, <code>state-cardano</code> is a separate zfs volume on my system:</p>
<pre><code>ls -hal ~/.local/share/Daedalus/        
total 7.5K
drwxr-xr-x  3 sam users  7 Aug  6 15:25 .
drwxr-xr-x 36 sam users 37 Oct  1 21:23 ..
lrwxrwxrwx  1 sam users 39 Apr 13  2018 devnet -&gt; /home/sam/state-cardano/daedalus-devnet
lrwxrwxrwx  1 sam users 40 Mar 30  2018 mainnet -&gt; /home/sam/state-cardano/daedalus-mainnet
lrwxrwxrwx  1 sam users 40 Feb 17  2021 mainnet_flight -&gt; /home/sam/state-cardano/daedalus-mainnet
drwxr-xr-x  7 sam users  9 Aug  6 15:29 shelley_qa
lrwxrwxrwx  1 sam users 40 Mar 22  2019 testnet -&gt; /home/sam/state-cardano/daedalus-testnet
</code></pre>
 7742: <h2>2022 Daedalus 5.1.0</h2>
<p>Yes this was a big problem. Daedalus just ate up my SSD while I have a mostly free 2TB HDD sitting doing nothing.</p>
<p>It turned out to be very simple though. Here are the steps for Ubuntu based systems;</p>
<ol>
<li><p>Make sure that Daedalus is not running.</p>
</li>
<li><p>Copy the <code>~/.local/share/Daedalus</code> directory somewhere in your harddisk. In my case I copied it to <code>/mnt/P300/Daedalus</code>.</p>
</li>
<li><p>To back up, I renamed the original like <code>~/.local/share/Daedalus_</code></p>
</li>
<li><p>Create a symlink in <code>~/.local/share</code> to point to <code>/mnt/P300/Daedalus</code> like</p>
<p><code>ln -s /mnt/P300/Daedalus ~/.local/share/Daedalus</code></p>
</li>
<li><p>We are almost finished. Open <code>~/.local/bin/daedalus-mainnet</code> with an editor. There are two lines starting with <code>exec</code>. In both of them add <code>-m /mnt:/mnt</code> before <code>-m /home:/home</code>. In my case <code>/mnt</code> is where my HDD is mounted. You should first check the mountpoint of your HDD. Perhaps you need to add <code>-m /media:/media</code> or whatever your mountpoint is.</p>
</li>
<li><p>Finally open <code>~/.local/share/Daedalus/mainnet/namespaceHelper</code>. (now this file is in fact in the HDD since you have already linked at step 4) with an editor and repeat exactly what we did in step 5.</p>
</li>
<li><p>Say some prayers.</p>
</li>
</ol>
<p>Now you are probably OK and when run, Daedalus should start working on the HDD copy.</p>
<ul>
<li><strong>Make sure it finalizes replaying the ledger and synching the blockchain.</strong></li>
<li><strong>Make sure everything works just fine.</strong></li>
</ul>
<p>You may now delete the backup <code>~/.local/share/Daedalus_</code> from your SSD.</p>
