# Increase disk size

#### 1. Resize partition schema

```bash
fdisk /dev/sda
```

p - print&#x20;

d - to delete partition (don't worry, you're just deleting the table, not data)&#x20;

2 - or partition number you want to delete (that's why you used pint)&#x20;

n - to create new partition&#x20;

p - to make said partition primary&#x20;

p - to review layout&#x20;

w - to write changes made

#### 2. Reboot

#### 3. Grow the filesystem so it shows up

```bash
xfs_growfs /
```

#### 4. Bash script:

```bash
#!/bin/bash

fdisk /dev/sdc << EOF
d
2
n
p
2


n
t
1
82
t
2
83
w
EOF

xfs_growfs /
```


---

# 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.arkannis.net/os/linux/increase-disk-size.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.
