Create linux-disk-resize.md

This commit is contained in:
ruslan 2024-12-10 14:01:09 +01:00 committed by GitHub
parent 2b22134d1f
commit fded74c558
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,29 @@
---
title: Ресайз диска
description: ext4
date: 2024-12-10T13:57:00+01:00
tags: [linux]
---
## Расширение раздела
<disk> - sda
<partition> - 1
```shell
growpart /dev/<disk> <partition>
```
## Увеличение ФС
<partition> - sda1
```shell
resize2fs /dev/<partition>
```
## Очистка логов
Если совсем нет места для выполнения команд
```shell
journalctl --vacuum-time=1d
```