> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/os/linux/increase-disk-size.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.arkannis.net/os/linux/increase-disk-size.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
