<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>

CC BY-SA 4.0
2022-02-27T05:01:00.760Z
Finally got around to trying this, but I'm missing something. I created /media/dataspace/data/Cardano and moved (using cp -a) /home/bigbird/.local/share/Daedalus/mainnet/ there and replaced the original with a symlink. When I start Daedalus, I get mkdir: cannot create directory '/home/bigbird/.local/share/Daedalus/mainnet': File exists
Joe
CC BY-SA 4.0
2022-04-16T00:52:16.670Z
I gave up on Daedalus until I get a new notebook. It won't run on mine any more.
Joe
CC BY-SA 4.0
2021-10-04T16:05:17.443Z
2021-10-04T16:05:17.443Z
Samuel Leathers
<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>

CC BY-SA 4.0
2022-10-30T21:15:37.313Z
I still can't try this until I get a new more powerful notebook, but it looks like it will work. Thanks for all the details. I will probably need this in the future.
Joe
CC BY-SA 4.0
2022-10-29T10:28:16.497Z
2022-10-31T17:43:33.427Z
2022-10-31T17:43:33.427Z
Redu
<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>

CC BY-SA 4.0
2021-09-21T19:27:21.550Z
Link works. I had shared the immutable folder among three PCs.
raghu
<daedalus><storage><linux>
When can I move Daedalus` data files to another location?
# When can I move Daedalus` data files to another location?

(Asked by: username_0 on 2021-09-21)

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.

**Tags:** daedalus, storage, linux
> **Comments:**
> **username_1**: Link works. I had shared the immutable folder among three PCs.  

---

## 2 answers

### Answer by username_3 on 2022-10-29. Score: 4

## 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;

1. Make sure that Daedalus is not running.
2. Copy the `~/.local/share/Daedalus` directory somewhere in your harddisk. In my case I copied it to `/mnt/P300/Daedalus`.
3. To back up, I renamed the original like `~/.local/share/Daedalus_`
4. Create a symlink in `~/.local/share` to point to `/mnt/P300/Daedalus` like

   `ln -s /mnt/P300/Daedalus ~/.local/share/Daedalus`
5. 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.
6. 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.
7. 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.

> **Comments:**
> **username_0**: I still can't try this until I get a new more powerful notebook, but it looks like it will work. Thanks for all the details. I will probably need this in the future.  

---

### Answer by username_2 on 2021-10-04. Score: 3

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

> **Comments:**
> **username_0**: Finally got around to trying this, but I'm missing something. I created /media/dataspace/data/Cardano and moved (using cp -a) /home/bigbird/.local/share/Daedalus/mainnet/ there and replaced the original with a symlink. When I start Daedalus, I get mkdir: cannot create directory '/home/bigbird/.local/share/Daedalus/mainnet': File exists  
> **username_0**: I gave up on Daedalus until I get a new notebook. It won't run on mine any more.  

---

