28
submitted 16 hours ago by DampSquid@feddit.uk to c/linux@lemmy.ml

Swapping out an old 2TB pcie 3 drive for a newer 2TB pcie 4 drive.
I was leaning towards using dd, after shrinking the partition on the source drive so it doesn't also 'copy' all the empty space.
Have you done this recently? What was your method?
Or is there a CachyOS/kde tool I may be unaware of?

top 23 comments
sorted by: hot top controversial new old
[-] SteveTech@aussie.zone 1 points 5 hours ago

Personally, when I get a new SSD I:

  • Format as 4Kn (for 'Better' or 'Best' performance)
  • Reinstall my preferred distro with a seperate home subvolume/partition (and tmp, var, etc. often with nodev,nosuid,noexec set)
  • Copy my /home across, and parts of /etc.
[-] monovergent@lemmy.ml 1 points 6 hours ago

Same thing you suggested, plus a btrfs scrub to check integrity when finished. I suspect btrfs provides a more elegant mechanism for this, which I have been too lazy to look up.

I could never reinstall ... I end up customizing so extensively that a few years ago, I centralized all of my customizations in a VM image that I clone if I do need a fresh install.

[-] hendrik@palaver.p3x.de 2 points 7 hours ago* (last edited 6 hours ago)

I always use dd or ddrescue. Takes 20min to open the computer, connect the drives, boot from usb, copy everything and you'd be done. Also super easy. Just pay a lot of attention before hitting enter. One small mistake and you copy it the wrong way around. Or overwrite your old drive in some other way.

[-] GaumBeist@lemmy.ml 5 points 10 hours ago

Clonezilla Live USB ftw

[-] dan@upvote.au 2 points 9 hours ago* (last edited 9 hours ago)

I usually use Clonezilla and have it verify the data after cloning. It works for local drives, but it can also clone a drive over the network by running it on both the source and destination system, which is very useful for remote servers (eg moving a VPS to a different location).

[-] MonkderVierte@lemmy.zip 2 points 9 hours ago

Adjust partition size if neccessary, then cp /dev/sda /dev/sdb.

[-] PetteriPano@lemmy.world 6 points 12 hours ago* (last edited 12 hours ago)

btrfs device add /dev/newdrive /

btrfs device remove /dev/olddrive

[-] treadful@lemmy.zip 21 points 16 hours ago

For my personal workstation, it's such a rare thing I always use that an excuse to start from scratch again. If it's like a business system or something, usually build a new system and migrate data and services to it gradually.

I so rarely do in-place upgrades of system drives unless it's a recovery or something.

[-] njordomir@lemmy.world 2 points 13 hours ago

True. Starting with a fresh install can be more of a performance boost than buying a new drive. Add them together though and your computer is going to feel like future tech. I'd also just reinstall, unless its a server or a pain to rebuild.

[-] Carl@anarchist.nexus 3 points 15 hours ago* (last edited 15 hours ago)

Pretty much this. I’d copy anything I want to keep onto a temporary drive, (cloud storage, a USB drive, second SSD, etc), then use it as an excuse to refresh my install. Then just copy everything from that temporary storage after my new install is finished.

[-] fozid@lem.radiantfig.fyi 3 points 10 hours ago

Honestly dd is perfect. Like you say, shrink the partition down first, DD to the new disc, swap discs. That's it.

[-] daggermoon@piefed.world 3 points 11 hours ago

Reinstalling because I use ZFS.

[-] curbstickle@anarchist.nexus 5 points 13 hours ago* (last edited 6 hours ago)

Anything important is already stored elsewhere, so I just install clean.

[-] im_fine_sandy@nord.pub 3 points 8 hours ago

Pretty much this... although I usually have at least a few moments of paranoia thinking about what I might be about to lose.

[-] eager_eagle@lemmy.world 7 points 16 hours ago

disk destroyer? I prefer just formatting and rsync-ing things. Unless I care about preserving metadata.

[-] yardy_sardley@lemmy.ca 2 points 15 hours ago
[-] dan@upvote.au 2 points 9 hours ago

I usually use rsync -avHXS --numeric-ids --progress --delete

[-] deadbeef79000@lemmy.nz 6 points 16 hours ago* (last edited 16 hours ago)

Last time I did this I used btrfs.

Add the new drive to the system, create partitions, add the new volume and then remove the old one, btrfs moves all the blocks to the new drive.

The ESP partition is small enough and FAT- enough to just use cp.

[-] TerraRoot@sh.itjust.works 1 points 10 hours ago

Gparted works great as well, just umount drive and copy

[-] solrize@lemmy.ml 1 points 13 hours ago
[-] db2@lemmy.world 1 points 13 hours ago* (last edited 13 hours ago)

Out of curiosity, what are you doing that the difference between the two is woth that effort? Or is the pcie3 drive bottom of the barrel maybe?

[-] DampSquid@feddit.uk 2 points 12 hours ago

Yeah, exactly the latter. I noticed the other day that the thin copper layer that sits across the top of this drive had just popped off!

this post was submitted on 15 Aug 2026
28 points (100.0% liked)

Linux

66993 readers
252 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 7 years ago
MODERATORS