# 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 /
```
