Consolidating two disk partitions into one

Kenneth Sousa 0 Reputation points
2026-12-03T18:44:55.62+00:00

Most of my user data is stored on drive D a second partition. Using OneDrive for storage and backup.

I want to consolidate into one disk position obviously without losing any data. How do I do this completely and safely?

Microsoft 365 and Office | OneDrive | For home | Windows
0 comments No comments

3 answers

Sort by: Oldest
  1. AI answer

    2026-12-03T18:45:55.4433333+00:00

    You can consolidate C: and D: with Windows Disk Management only when both partitions are on the same physical disk and D: is immediately to the right of C:; first preserve D: externally, then delete D: and extend C: into the resulting unallocated space.

    1. Check the physical disk and partition layout

    1. Right-click Start → Disk Management.
    2. In the lower pane, locate C: and D: under Disk 0, Disk 1, and so forth.
    3. Identify which situation applies:
      • C: and D: are on the same disk, with D: immediately after C: use the procedure below.
      • Another partition—often Recovery—is between them: Windows cannot extend C: across it.
      • C: and D: are on different physical disks: they cannot be consolidated into one ordinary C: volume.

    Windows requires the unallocated space to be on the same disk and immediately to the right of the volume being extended.^1^

    2. Make two verified copies of D:

    Deleting D: is destructive. Do not proceed based solely on seeing files in the OneDrive folder.

    1. Confirm OneDrive has finished syncing and shows no errors.
    2. For files needed in the external backup, right-click their OneDrive folder and select Always keep on this device. Wait until the files have downloaded; online-only files are not stored locally.^2^
    3. Connect an external drive with enough capacity.
    4. Copy, rather than move, all data from D: to that drive. Include Documents, Pictures, Desktop, Downloads, and any folders outside OneDrive.
    5. Open several copied files directly from the external drive and compare the folder sizes and file counts with D:. Microsoft’s external-storage procedure likewise calls for copying and verifying the files before removing the source.^3^

    Do not delete D: until both the external copy and the required OneDrive content have been verified.

    3. Disconnect OneDrive from D:

    If the OneDrive folder is currently on D:

    1. Select the OneDrive cloud in the notification area.
    2. Select Help & Settings → Settings → Account.
    3. Select Unlink this PC → Unlink account.
    4. Leave the backed-up D: files untouched until the external copy has been checked.

    Unlinking is the supported first step when changing the OneDrive folder location.^4^

    4. Delete D: and extend C:

    Perform this only if Disk Management shows D: immediately to the right of C: on the same disk.

    1. Close programs that use files on D:.
    2. In Disk Management, right-click D: → Delete Volume and confirm.
    3. Verify that its former space now appears as Unallocated directly after C:.
    4. Right-click C: → Extend Volume.
    5. In the wizard, select Next, use the maximum available space, select Next, and then Finish.
    6. Restart Windows and confirm that C: now has the expected capacity.

    Disk Management is built into Windows 10 and Windows 11 and supports deleting, extending, shrinking, and managing volumes.^5^

    5. Restore the data and reconnect OneDrive

    1. Create the desired folders on C: and copy the externally backed-up data into them.
    2. Start OneDrive and sign in.
    3. At the OneDrive folder-location screen, select Change Location.
    4. Choose a folder on C:, such as C:\Users\<your-name>\OneDrive.
    5. If that folder already contains the restored OneDrive files, select Use this location and allow synchronization to finish.^4^
    6. Verify the files before erasing the external backup.

    If the layout does not qualify

    • Different physical disks: Windows cannot extend C: with D:’s capacity. Copy the data to C: only if C: already has sufficient room, or retain D: as a separate data drive.^1^
    • Recovery or another partition between C: and D: Disk Management cannot move that intervening partition. The supported choices are to retain separate volumes, back up and rebuild the disk layout, or use a reputable non-Microsoft partitioning application capable of moving partitions. Keep the external backup because moving partitions carries data-loss risk.^1^
    • Extend Volume is disabled: check that the space is unallocated, directly after C:, on the same physical disk, and that C: uses NTFS or ReFS.^1^

    References

    1. Extend a basic or dynamic volume
    2. Save disk space with OneDrive Files On-Demand for Windows | Microsoft Support
    3. [Windows 10](https://support.microsoft.com/windows/experience/backup-recovery/move-your-files-to-a-new-windows-pc-using-an-external-storage-device#back-up-files-from-your-current-pc-to-an-external-storage-device)
    4. Change the location of your OneDrive folder | Microsoft Support
    5. Disk Management in Windows | Microsoft Support
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Marcin Policht 114.1K Reputation points MVP Volunteer Moderator
    2026-12-03T18:51:06.8533333+00:00

    Use a controlled migration followed by partition consolidation. You can use the following process:

    1. Establish the current disk configuration.

    Open Disk Management by running diskmgmt.msc. Identify whether C: and D: are partitions on the same physical disk or on separate physical disks. Check the partition layout, available capacity and the presence of any EFI, Recovery or System partitions. This determines whether C: can be extended after removing D:. Do not make any partition changes at this stage.

    2. Create an independent backup.

    Before moving anything, connect an external drive with sufficient capacity to hold all data currently stored on D:. Create a complete backup of D:, including hidden files and folders. Verify that the backup contains the expected directory structure and that representative files can be opened. Do not treat OneDrive as your only backup because synchronization can propagate accidental deletions and unwanted changes.

    3. Inventory the contents of D:.

    Identify all personal data, including Documents, Downloads, Pictures, Videos, Desktop and any other folders you maintain. Also identify application-specific directories, virtual machines, development environments, databases and other data repositories. Determine which folders are already synchronized with OneDrive and which exist only locally. Pay particular attention to Windows special folders whose locations may have been redirected to D:.

    4. Prepare OneDrive for the migration.

    Check the current OneDrive folder location and synchronization status. Ensure that all required files have completed synchronization and that there are no pending uploads or synchronization errors. Files marked as online-only do not need to be downloaded before migration unless you intend to make independent local copies. If OneDrive itself is located on D:, plan to relocate it through OneDrive's own settings rather than manually moving its directory.

    5. Move personal data to C:.

    Create an appropriate directory structure on C: for your personal data. For example, you could use C:\Users\<username> for standard Windows user folders and C:\Data for other personal repositories. Move data using Windows folder relocation where applicable, rather than simply copying over existing Windows special folders. For Documents, Pictures, Downloads and other redirected folders, use the folder Properties, Location tab and Move option. For ordinary data directories, use File Explorer or Robocopy, preserving timestamps, permissions and directory structure where necessary.

    6. Reconfigure application data locations.

    Check applications that currently store data on D:. Update their configuration to reference the new locations on C:. This includes development environments, virtual machines, databases, backup applications and any applications with custom working directories. Do not manually relocate installed applications or their Program Files directories. Use application-specific migration or relocation procedures where necessary.

    7. Reconfigure OneDrive if necessary.

    If OneDrive currently resides on D:, unlink the PC through OneDrive settings, configure the new OneDrive location on C:, and reconnect the account. Carefully follow the relocation process to avoid creating duplicate synchronization directories or overwriting existing cloud content. Verify that OneDrive is synchronizing the intended folders and that Files On-Demand is configured as required.

    8. Validate the migration.

    Check that all personal folders point to their intended locations on C:. Compare the contents of the original D: directories against their new locations, including file counts and total sizes. Open representative files, test applications and verify OneDrive synchronisation. Check that no applications or scheduled tasks still reference D:. Keep the original D: contents untouched until these checks have been completed successfully.

    9. Consolidate the partitions.

    Once the migration is verified, and provided C: and D: are partitions on the same physical disk, you can remove the D: partition using Disk Management. Before doing so, confirm that D: does not contain boot, recovery or other system-critical data. Extend C: into the resulting unallocated space. Windows Disk Management requires the unallocated space to be immediately to the right of C: to extend it. If another partition is between C: and the unallocated space, a different partition-management approach may be necessary.

    10. Perform final validation and retain the backup.

    Restart Windows and verify that the system starts normally. Check your Windows user folders, applications and OneDrive synchronization again. Confirm that C: has the expected capacity and that no references to D: remain in your normal workflows. Retain the external backup until you have operated successfully with the consolidated configuration for a reasonable period.

    Do not delete D: simply because its files appear to have been copied or synchronized. The migration should be treated as complete only after verifying the local copies, OneDrive synchronization and application dependencies.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?

    0 comments No comments

  3. Bulldog 5,940 Reputation points
    2026-12-03T19:04:38.34+00:00

    Actually, you are much better off to keep your personal files in a separate partition. Here are two reasons why it's a good idea:

    1- If for any reason you have to reinstall Windows, your personal files won't be affected.

    2- If your computer goes kaboom and doesn't even start, you can move your hard drive to another computer and copy your personal files, so you won't have lost anything.

    And if you ever choose to use actual backup software, rather than OneDrive, you'll be able to backup your software and your personal files on separate schedules.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.