Article 5DWJ3 Resizing EXT4 partitions without data loss

Resizing EXT4 partitions without data loss

by
Neljor
from LinuxQuestions.org on (#5DWJ3)
Dear Linux friends,
For installing drivers in needed to compile a kernel which caused me to run out of disk space.

Have done resizing disks many times in the past, but guess not in the last 10 years so lost this a bit so i humbly ask here because i don't want to lose data. Also remember that it not always went well.

Disk:
/dev/sda1 2048 1333247 1331200 650M EFI System
/dev/sda2 1866706944 1866715135 8192 4M BIOS boot
/dev/sda3 1866715136 1953523711 86808576 41.4G Linux filesystem
/dev/sda4 1333248 420763647 419430400 200G Linux filesystem
/dev/sda5 420763648 445929471 25165824 12G Linux swap
/dev/sda6 445929472 1866706943 1420777472 677.5G Linux filesystem

Root partition /dev/sda3 (EXT4) can grow to 100G
and the home partition /dev/sda4 can shrink to 140G.

Tried to do this with the opensuse rescue boot dvd but had no access the yast there
and did not know the parted commands.

How can we do this safely?

Believe we also have to do the resizefs command?

If there is an up-to-date and *complete* tutorial than that is fine with me too.

Most kindly,

Peterlatest?d=yIl2AUoC8zA latest?i=4c9i2jWy8s8:SNVAPfKpYVM:F7zBnMy latest?i=4c9i2jWy8s8:SNVAPfKpYVM:V_sGLiP latest?d=qj6IDK7rITs latest?i=4c9i2jWy8s8:SNVAPfKpYVM:gIN9vFw4c9i2jWy8s8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments