29
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 20 Dec 2025
29 points (100.0% liked)
Linux Questions
3018 readers
86 users here now
Linux questions Rules (in addition of the Lemmy.zip rules)
- stay on topic
- be nice (no name calling)
- do not post long blocks of text such as logs
- do not delete your posts
- only post questions (no information posts)
Tips for giving and receiving help
- be as clear and specific
- say thank you if a solution works
- verify your solutions before posting them as facts.
Any rule violations will result in disciplinary actions
founded 2 years ago
MODERATORS
You could just use dd to copy the old drive over the new one then resize the partitions. Or you could partition the new drive and dd copy the slices you want to cut over then resize the filesystems.
Can I dd from a bigger drive to a smaller one and expect all the data to come with it?
(Assuming of course there's not more data on the bigger drive than will fit on the smaller)
No, dd won’t work reliably when copying from a larger drive to a smaller one. To do this, you would need to resize and align the partitions first, handling each partition individually, or use a different cloning method.
A better approach is to use something like Clonezilla. In advanced mode, it allows you to clone from a bigger disk to a smaller one, provided that the used space on the source drive does not exceed the capacity of the target drive. Without this, it won’t be possible with any tool, not just dd.
Here’s a tutorial for Clonezilla advanced mode:
https://clonezilla.org/clonezilla-live/doc/11_lite_server/advanced/09-advanced-param.php
(edit added link, and saw the second post just before me with the same answer, not trying to steal from it @ProfessorNeurus@programming.dev, sorry!, you posted while I wrote mine, so please feel free to ignore this, feels so dumb to just delete posts)
You would want the source partitions to be equal to or smaller than the target. You would need to resize them first