[Yandex Cloud documentation](../../../index.md) > [Yandex DataSphere](../../index.md) > [Step-by-step guides](../index.md) > Working with resources > File storage operations

# Using file storages

With DataSphere [file storages](../../concepts/filestores.md), you can store large amounts of information and access it from your notebooks.

## Creating a file storage {#create}

1. Select the project in your community or on the DataSphere [home page](https://datasphere.yandex.cloud) in the **Recent projects** tab.
1. Under **Project resources**, click ![filestore](../../../_assets/console-icons/cube.svg) **Filestore**.
1. Click **Create filestore**.
1. In the window that opens, enter a name for the file storage in the **Name** field.

   * The name must be from 3 to 63 characters long.
   * It may contain uppercase and lowercase Latin and Cyrillic letters, numbers, hyphens, underscores, and spaces.
   * The first character must be a letter. The last character cannot be a hyphen, underscore, or space.

1. In the **Mount path** field, enter the name you are going to use to connect to the file storage. The connection name may contain only Latin letters and digits and must begin with a slash, e.g., `/filestore`.
1. Under **Storage volume, GB**, set the storage size you need. At the bottom of the window, you will see the total cost of storage per month.
1. Click **Create**. This will open the page with information on the file storage you just created.

## Attaching a file storage to a project {#mount}

Go to the file storage page and click **Activate**. Once activated, the file storage will be available in the `/filestore/` folder of the JupyterLab file browser, and you will be able to view it as a file system.

## Using a file storage in a project {#usage}

You can access files in the storage from your project code. Right-click the file you need and select **Copy path**. This will copy the file path to the clipboard. Paste the copied path wherever you need in the project.

## Detaching a file storage {#deactivate}

1. Select the project in your community or on the DataSphere [home page](https://datasphere.yandex.cloud) in the **Recent projects** tab.
1. Under **Project resources**, click ![filestore](../../../_assets/console-icons/cube.svg) **Filestore**.
1. Next to the file storage, click ![options](../../../_assets/console-icons/ellipsis.svg) and select **Deactivate**.

## Updating a file storage {#change}

1. Select the project in your community or on the DataSphere [home page](https://datasphere.yandex.cloud) in the **Recent projects** tab.
1. Under **Project resources**, click ![filestore](../../../_assets/console-icons/cube.svg) **Filestore**.
1. Next to the file storage, click ![options](../../../_assets/console-icons/ellipsis.svg) and select **Edit**.
1. Update the file storage: edit its name and connection name and add a description as needed.
1. Click **Save**.

## Sharing a file storage {#share}

{% note info %}

You can only share resources within a single organization, between communities created in the same [availability zone](../../../overview/concepts/geo-scope.md).

{% endnote %}

To share a file storage within a community, you need the `Editor` role for the project and the `Developer` role for the community. To learn more about roles in DataSphere, see [Access management in DataSphere](../../security/index.md).

1. Select the project in your community or on the DataSphere [home page](https://datasphere.yandex.cloud) in the **Recent projects** tab.
1. Under **Project resources**, click ![filestore](../../../_assets/console-icons/cube.svg) **Filestore**.
1. Select the file storage from the list.
1. Navigate to the **Access** tab.
1. Enable the visibility option next to the name of the community you want to share the file storage in.

To make a file storage available in a different project, the project admin has to [add](../projects/use-shared-resource.md) that storage on the **Shared** tab.

{% note warning %}

To avoid losing your data, try not to write it to the same file from multiple projects at once.

{% endnote %}

## Deleting a file storage {#delete}

1. Select the project in your community or on the DataSphere [home page](https://datasphere.yandex.cloud) in the **Recent projects** tab.
1. Under **Project resources**, click ![filestore](../../../_assets/console-icons/cube.svg) **Filestore**.
1. Next to the file storage, click ![options](../../../_assets/console-icons/ellipsis.svg) and select **Delete**.
1. Click **Confirm**.

You will see a message stating that the file storage has been deleted.

{% note warning %}

In fact, [resource deletion](../../../overview/concepts/data-deletion.md) can take up to 72 hours.

{% endnote %}