26

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.

all 11 comments
sorted by: hot top controversial new old
[-] empireOfLove@lemmy.one 11 points 1 year ago* (last edited 1 year ago)

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.

[-] sab@lemmy.world 3 points 1 year ago

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

[-] Dariusmiles2123@sh.itjust.works 2 points 1 year ago

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?

[-] empireOfLove@lemmy.one 3 points 1 year ago

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.

[-] Dariusmiles2123@sh.itjust.works 2 points 1 year ago

Thanks for the help 👍

[-] SpaceNoodle@lemmy.world 1 points 1 year ago

You can use Clonezilla to resize filesystems, so you ought to be able to clone that filesystem onto a smaller drive. It's been a couple decades since I used the tool, but I believe the guided steps should be enough to help you accomplish what you want - just be sure to thoroughly read the instructions!

[-] mvirts@lemmy.world 1 points 1 year ago

If you find the tool used by partclone for your filesystem type, it may or may not support responding to a smaller partition.

The libraries/tools used by partclone are documented here: https://partclone.org/features/

Beware it looks like partclone.org has been monetized with ads if you don't like that sort of thing.

[-] Oisteink@feddit.nl -5 points 1 year ago

A quick Google will give you a link explaining this with a walkthrough of the steps

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

Linux

48113 readers
707 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