# Accessing paid persistent disk in spaces

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccessing-paid-persistent-disk-in-spaces%2F87331%3E%5C
**Category:** Spaces\
**Created:** [May 18, 2024, 9:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccessing-paid-persistent-disk-in-spaces%2F87331 "2024-05-18T21:41:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mukhtar](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mukhtar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmukhtar)%5C
**Post date:** [May 18, 2024, 9:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccessing-paid-persistent-disk-in-spaces%2F87331%2F1 "2024-05-18T21:41:06Z")

</div>

Hello Everyone,  
I have a space with persistent disk running Python. I need to save some data to this disk, but I can’t seem to locate the standard `/data` directory. Do I need to use a specific API to interact with the `/data` directory on the Space?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [May 22, 2024, 12:26am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccessing-paid-persistent-disk-in-spaces%2F87331%2F2 "2024-05-22T00:26:46Z")

</div>

hi @mukhtar , just to confirm are you trying to access `/data` at Docker runtime or buildtime? `/data` is only available after your Space is launched, i.e. at runtime.

---

<div class="post-metadata">

**Author:** ![mukhtar](https://avatars.discourse-cdn.com/v4/letter/m/839c29/32.png) [@mukhtar](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmukhtar)%5C
**Post date:** [May 22, 2024, 12:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccessing-paid-persistent-disk-in-spaces%2F87331%2F3 "2024-05-22T12:58:36Z")

</div>

hello @radames , Thank you for your response. To clarify, I am trying to access the /data directory at runtime. I have a Streamlit app that collects data from the user (in JSON format) and I want to permanently save this data. I attempted to directly write to /data , but the data is lost when the Space is restarted. Additionally, when I printed the available paths from the home directory, there was no /data directory listed.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [May 24, 2024, 4:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faccessing-paid-persistent-disk-in-spaces%2F87331%2F4 "2024-05-24T04:01:15Z")

</div>

Could you please try detaching and reattaching the storage device, followed by a factory reset?
