this post was submitted on 05 Jan 2025
19 points (100.0% liked)

technology

23417 readers
285 users here now

On the road to fully automated luxury gay space communism.

Spreading Linux propaganda since 2020

Rules:

founded 4 years ago
MODERATORS
 

I want to move some things around on my PC. My current daily driver is Fedora KDE and I've been on it for about a year now and love it! But it's running on a 2tb 2.5" SSD and I have my original W10 install on a 2tb m.2 SSD. I rarely go into windows, so I'm comfortable migrating it to a smaller drive now. I've installed a 500gb m.2 SSD on the back side of my motherboard that I'd like to move it to. I'd like to be running Fedora and everything on my 2tb m.2 SSD and use the 2.5" one for general storage. Is there a simple way to just migrate both OS's exactly as they are? Most tutorials I've looked at only address moving Windows or a Linux system individually and doesn't mention a dual boot system. I'm afraid of breaking GRUB (or whatever boot loader Fedora uses).n

Anyone know the order in which to proceed with this? Any software recommendations for the migration?

I'm not entirely opposed to doing a fresh install of W10 if it makes things easier, but I really want Fedora to stay intact exactly as it is.

you are viewing a single comment's thread
view the rest of the comments
[–] darkcalling@hexbear.net 1 points 3 days ago

That partition layout looks fine.

If you use tools like gparted to copy the partitions whole please follow the same order for Windows (that is ensure the recovery is last or after the Windows main data one at least). If using gparted also be careful that you manually set the flags on the copied partitions (you can view the flags set per partition on the source drive then set them the same on the destination).

You'd want to back up valuable files from the NTFS largest partition. Shrinking partitions doesn't typically incur any data loss, it's not a high risk operation but technically all partition operations carry some degree of risk for data loss due to what you're mucking about with. The important thing is not to delete the original source data/disk and its partitions until you're sure you've had a successful copy (say mount the main windows partition, check the files, open a few things to make sure they work and were not completely corrupted). Double check everything before initiating any kind of delete or disk formatting operation. Especially check what disk you're applying operations to and that it is the correct disk and not the wrong one (say you meant to apply to destination but apply to source instead by accident, this is why double-checking what you're working on is important).

I'm not the person who originally replied to you but I do think keeping separate EFI boot partitions for Windows and Linux makes sense, that way if Windows mucks around it won't break your Linux install. So I'd keep them on their relevant disks, let Windows have exclusive control of its EFI partition and Linux control its and make sure that your EFI settings point to your Linux install disk at the end of this.

In other words I'd be in favor of copying all the partitions on the Windows disk in order to their new home. I'd check the flags are correctly set (EFI partition needs boot and one other flag to not show as mountable set). You'll need to shrink your primary Windows NTFS data partition, not sure if gparted supports doing this in the copy operation itself or if you'd need to shrink the partition on the source disk then copy it.

Honestly a Windows based tool from a drive manufacturer doing this would probably yield better results as the start position of the Windows recovery partition is going to be shifted and Windows will not be able to find it if it needs it without running through some commands (something like "fix windows recovery partition location commands" as a search) though this won't stop Windows from booting it'll just mean if it breaks completely you'll need a Windows install disk or iso image on a bootable flash drive to go through boot recovery.