Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi.
I need to make an image of an ext4 partition which has some free space and then restore it to a smaller partition. Let's say I have 50 GB partition. It contains 20 GB of used space. I need to create an image, reformat HDD and restore this image to a 40 GB ext4 partition (not 50 GB as it was before). Is it possible with Clonezilla?
I would at first use gparted to decrease the partition and afterwards use Clonezilla. But I did work with Clonezilla only one time and don't have as much experience.
One important limitation of Clonezilla is, that the partition where the image is stored must be at least as big as the original partition. So it seems necessary to decrease the partition before building an image of it.
If you have the space to save an image of the partition, wouldn't it be easier to rsync your files to that space, then repartition and then rsync your files back?
I would at first use gparted to decrease the partition and afterwards use Clonezilla. But I did work with Clonezilla only one time and don't have as much experience.
One important limitation of Clonezilla is, that the partition where the image is stored must be at least as big as the original partition. So it seems necessary to decrease the partition before building an image of it.
Markus
Decreasing the partition can in rare cases lead to data loss, so I would backup first. And if you have succesfully decreased the size of the partition, why would you use clonezilla afterwards?
@TobiSGD: well, you're right, in fact only copying is necessary. My intention was to answer the question about Clonezilla....
Quote:
And if you have succesfully decreased the size of the partition, why would you use clonezilla afterwards?
this is only necessary when the partitiontable is changed in whole. If the startblock of the partition remains the same one would only resize the partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.