V
V
Vitaly2016-03-17 16:41:35
linux
Vitaly, 2016-03-17 16:41:35

How to properly clone a system image to a smaller drive?

Hello. I have a 16gb flash drive with a Linux system. The occupied space on it is about 6gb. How can I properly clone this system to an 8gb flash drive?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
L
lovecraft, 2016-03-18
@lovecraft

1. Run gparted, truncate the partition on the flash drive (it can take quite a long time, if you need it quickly - make an image of the flash drive to your hard drive via dd and work with it).
2. Copy the partition table from the old flash drive to the new one via sfdisk + 446 bytes at the beginning of the disk or via gdisk
3. Copy the partition via partclone or dd.

A
Alexey Shumkin, 2016-03-17
@ashumkin

dd, then fix the partition sizes (there was a similar question somewhere recently, it was more detailed there)

A
Anton Ulanov, 2016-03-17
@antonsr98

in fact, there are a lot of articles in Google through both dd and archivers

E
Ergil Osin, 2016-03-18
@Ernillew

Read about gentoo stage 4 and migrate the installed system by analogy.

V
Vitaliy, 2016-03-18
@Scorpiored88

Damn, gparted refuses to resize the partition (the partition has the boot flag) This is the first time for me!

V
vvs-ts9, 2016-03-18
@vvs-ts9

Acronis.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question