H
H
Hello World2019-03-31 12:47:41
linux
Hello World, 2019-03-31 12:47:41

How can I move the system from one partition to another?

I have two partitions:
/dev/sda1 20G /
/dev/sda9 68G /dev/sda9 68G /dev/sda9 68G where I want to move the system to have more space
How can I do that?
I had an idea to do rsync and then change /etc/fstab /dev/sda1 to /dev/sda9.
What files / folders can not be copied? For example, I can't copy /proc/kcore.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xotkot, 2019-03-31
@hello-world00

everything has long been invented before us: Full system backup

R
Ronald McDonald, 2019-03-31
@Zoominger

Use dd. Make an image of the root partition and write to a larger partition, then resize the FS.
And why not resize and move the partitions through GParted?

P
pfg21, 2019-03-31
@pfg21

exclude /dev /lost+found /proc /run
plus look at the output of df and exclude all unnecessary mounts.
as an option to boot from live-sd. your root is used in it, the excess is not mounted. you mount it and the section where you are going to copy. sink the root there.
also in live-sd you edit fstab, and after chrooting to a new root and "restoring" rough from there - it will correctly prescribe the boot from the new partition. (google - a lot of information).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question