D
D
d3coy_002020-07-17 10:44:32
linux
d3coy_00, 2020-07-17 10:44:32

Increasing a Linux partition?

Hello, I found that the free space on the Linux partition is running out. Parameters of the installed system:
- AstraLinux
- all partitions in one
- lvm is missing
- partition size = 25gb
- no gui (gparted we dismiss immediately) Therefore

, the question arises, how can I expand the root partition? In the virtual media manager, the total volume increased exactly twice, I tried to remove the markup of the root partition in fdisk and increase it using free space - it didn’t work, you can only increase it to the same place = 25 GB not 50
5f1156ca5feca440454252.png

Thank you in advance!

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Valentine, 2020-07-17
@ProFfeSsoRr

Delete the swap and extended partition, then remember where sda1 starts, delete it and immediately create it again so that the beginning coincides - and the end of the partition was already at the volume you need. Then e2fsck -f and resize2fs on this partition. Next, create a primary section of the second and swap into it, well, or swap to a file in general.

M
Melkij, 2020-07-17
@melkij

The disk partition is contiguous. You can't have a partition 1, then a swap, then a continuation of partition 1. Turn off and tear down the swap, extend the partition. Actually the swap can then be made a file so as not to be perverted.

P
pfg21, 2020-07-17
@pfg21

boot from gparted.iso and do everything in a user-friendly graphical interface

V
Valdemar Smorman, 2020-07-17
@smorman

We use:
mount, dd, e2fsck, resize2fs and umount

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question