# Add Storage

***

1. Update youre Package list and install "gdisk"\
   `apt-get update`\
   `apt-get install gdisk`
2. Execute "gdisk"\
   `gdisk /dev/sdb`
3. **Create a new GPT partition table**: Press **`o`** and then **`Enter`**.
4. **Create a new partition**: Press `n` and follow the prompts:
   * Press `Enter` to accept default partition number.
   * Press `Enter` to accept default start sector.
   * Press `Enter` to accept default end sector (uses the whole disk).
5. **Set partition type**: Press `t`, then `Enter` to accept the default type (Linux filesystem, type `8300`).
6. **Write changes and exit**: Press `w`, then `Enter`.
7. **Format the partition**: \
   `mkfs.ext4 /dev/sdb1`
8. **Create a mount point**:\
   `mkdir /mnt/storage`<br>
9. **Mount the Disk:**\
   `nano /etc/fstab`

   **Add the following entry:**               \
   `/dev/sdb1 /mnt/storage ext4 defaults 0 2`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.packets-decreaser.net/kvm-vserver/storage-vserver/add-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
