mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-01-18 03:40:51 +03:00
Create linux-disk-resize.md
This commit is contained in:
parent
2b22134d1f
commit
fded74c558
29
content/posts/linux-disk-resize.md
Normal file
29
content/posts/linux-disk-resize.md
Normal 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
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user