this post was submitted on 29 Aug 2023
26 points (96.4% liked)

Linux

47237 readers
3343 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hi everyone,

I’ve just used Clonezilla for the first time to clone a 500gb ssd with only 83gb being used.

Since only 83gb were used, could I clone that system on a computer with only 128gb? Or does it need to have at least 500gb of space even if most of it wasn’t used on my original system?

Clonezilla seems really practical but isn’t so accessible and I haven’t found an answer to that question online 😇

I’m using Fedora 38 but I don’t think it really matters.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 11 points 1 year ago* (last edited 1 year ago) (2 children)

Depends on the kind of image, but if it is a true "clone" you cannot image a partition to a partition of smaller capacity directly due to filesystem and sector/cluster sizing things. Or at least clonezilla won't let you by default. (Note I said partition, not drive.)

The easy solution, assuming this is an upgrade and not a data recovery job, is to shrink the partitions on your larger drive to fit within the usable space envelope of the smaller drive before cloning. You can do this from windows disk management, or any Linux/Live USB that has gparted on it.

[–] [email protected] 3 points 1 year ago

Regardless of what tool OP ends up using, this is the most straightforward way.

[–] [email protected] 2 points 1 year ago (1 children)

But witch partition should I shrink?

The source BTRFS one with my Fedora installation? And then leave the small ext4 and EFI ones that were automatically created during installation untouched?

If I resize my Fedora partition with Gparted it’s gonna keep its data and not get erased?

[–] [email protected] 3 points 1 year ago (1 children)

Yes. Resize your main large data partition (the one with all the free space) but make it small enough that it plus all other partitions will fit on the destination disk.

Resizing it should not lose any data. As long as it's an unecrypted filesystem your Linux install can mount, and that gparted can see used/free space inside, it will only resize free space. However, as with all things- make a damn backup if you actually want to keep that data.

[–] [email protected] 2 points 1 year ago

Thanks for the help 👍