• Blog
  • Stuff
  • About

Merging Two Windows Disks

Jan 28 2023

I recently bought a discrete GPU for my desktop PC. A risky move given the 12 year old power supply that is so far proving to be more resilient than expected.

However, I ran into a problem from a different branch of physics: The card ended up overlapping most of my SATA ports. Long story short, I had to get rid of a few hard drives. I grabbed the opportunity to merge my two Windows disks, mainly because my C: disk only had 60GB and so many programs fight for those precious root file system bytes.

I started with

  1. One old 60GB C:
  2. One old 1TB F: (only ~70% full)
  3. One new 1TB drive

and merged 1 and 2 into 3. I copied 1 to 3 via dd, used gparted to move the rescue partition to the end and resized the C: partition. Then, I booted into Windows on 3 (some EFI boot configuration got confused by being on a new disk, but a few reboots into the Windows repair mode fixed that) and copied over all files from 2 to 3.

Now, I was ready to remove the drive 2, but then every program that was previously installed on F: would complain because it'd now be on C: instead. However, there's a solution to this problem: Just use the same drive as C: and F:!

One command to do that subst F: C:\ but that only lasts until the next reboot.

This neat GitHub site has a more permanent solution: Create a text file with a .reg ending, and fill it with the contents

REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
"F:"="\\??\\C:\\"

Then double click to run it and boom, F: is now a permanent alias for C:!

Now I just hope that no smart copy protection ended up storing a UUID for the old hard drive and now refuses to run or something...

Bunny riding the train

Sep 18 2022
Preview of YouTube video

Rocket Cat

Jan 16 2022
Preview of YouTube video

teabags.jpg

Oct 16 2021

mohnbroetchen.jpg

Sep 26 2021
« older articles
  • Tags
    • cooking (5)
    • d3 (1)
    • engineering (1)
    • experiments (2)
    • games (3)
    • German (3)
    • Hong Kong (11)
    • Japan (12)
    • linux (1)
    • London (1)
    • Malta (2)
    • music (5)
    • programming (8)
    • Soylent (1)
    • spam (11)
    • Switzerland (7)
    • water (7)
    • web (18)
    • windows (1)
    • wtf (6)
  • Archive
    • January 2023 (1)
    • September 2022 (1)
    • January 2022 (1)
    • September 2021 (1)
    • July 2021 (3)
    • June 2021 (2)
    • May 2021 (2)
    • April 2021 (4)
    • October 2021 (1)
    • March 2020 (1)
    • February 2020 (1)
    • December 2020 (1)
    • May 2018 (1)
    • April 2018 (1)
    • February 2018 (1)
    • December 2017 (11)
    • March 2016 (1)
    • October 2016 (1)
    • August 2015 (2)
    • July 2015 (2)
    • March 2015 (2)
    • October 2015 (1)
    • August 2014 (9)
    • June 2014 (1)
    • September 2013 (1)
    • August 2013 (1)
    • July 2013 (3)
    • May 2013 (6)
    • April 2013 (5)
    • March 2013 (2)
    • February 2013 (2)