R
R
Rodion Bizyaev2019-09-12 13:42:15
linux
Rodion Bizyaev, 2019-09-12 13:42:15

How to edit linux partitions?

How to edit partitions in linux? It is necessary to transfer the place from /home to the root partition with the system. Since all programs are installed on it, and the place is almost over.
I tried it through the GParted partition editor, but when editing it, it does not allow me to reduce the space in the desired partition (home), in order to then transfer it to the root. You just enter how much space you want to leave, apply, and it returns the number as it was.
There is no option to boot via livesd.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
paran0id, 2019-09-12
@paran0id

are you using lvm or not? This will depend on the further solution of the problem.

P
pfemidi, 2019-09-12
@pfemidi

The key after the name of the section where home lies draws, right? So while home is mounted, GParted will not allow it to be resized. And while the root partition with the system mounted by GParted will also not allow it to be resized. So just boot from livecd. Well, or from the installation disk in rescue mode so that none of the partitions being changed is mounted and there is already shamanism.

A
Andrey Barbolin, 2019-09-12
@dronmaxman

It's quite realistic, show the output of sudo fdisk -l
Article for increasing and decreasing the disk. You don't need to unmount to enlarge the disk!
https://blog.eaglenn.ru/change-razmera-razdela-...
The main feature is that the action must be performed by a user who does not have a home on this disk.
There are several options
- assign a password to the root user (sudo passwd root), log out of your account so that the welcome window appears, press ALT + F2 on the keyboard and go to the terminal, log in as root and then follow the article.
- create a user with sudo rights and no hamster
sudo useradd --no-create-home lamaka
sudo usermod -a -G sudo lamaka
log out of your account so that the welcome window appears, press ALT + F2 on the keyboard and go to the terminal, go to lamaka and continue on the article.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question