Today, 01:52 AM (This post was last modified: Today, 02:01 AM by al3x.)
(Today, 12:30 AM)xeroid Wrote: So, if I'm reading this correctly, partition 5 is the one that isn't being used (see attached). What's the easiest way to delete that partition?
If you're absolutely sure you don't need the last partition (which is probably a left over or a OEM partition) and you want a clean way to remove that partition without any space left after your Windows RE partition, you can do the following steps. I verified those steps in a VM to make sure it works.
Be very careful though, it's important to do these steps exactly:
First you want to open an administrator cmd shell (cmd.exe run as admin)
Disable RE temporarily: reagentc /disable
Start diskpart utility: diskpart
Select your disk 1 (according to your screenshots, verify with list disk first): sel disk 1
Delete the old RE partition (according to your screenshots, verify with list part first): sel part 5 - then - del part 5 override
Delete the current RE partition (according to your screenshots, verify with list part first): sel part 4 - then - del part 4 override
Locate your "Windows" partition, this should be 2 or 3 (according to your screenshots): list part
Select your correct "Windows" partition (important!): sel part 2 - or - sel part 3
Extend partition to the complete disk: extend
Shrink partition to leave 800 MB on the right: shrink desired=800
Create a new GPT recovery partition (according to your screenshots you use GPT, not MBR, verify first!): create part primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
Set GPT attributes to hide the new partition (make sure it's selected with list part first, it should be): gpt attributes=0x8000000000000001
Format your new partition with NTFS: format fs=ntfs quick
Exit diskpart: exit
Re-enable RE: reagentc /enable
Now you should see the new recovery partition with ~800MB, something like that:
And reagentc /info should report the new partition as RE target:
Very nice instructions, Al3x!
Xeroid and anybody else using them be sure to take care at each step to ensure you are using them on the correct disk, partition, etc., Diskpart is very powerful and unforgiving.
(Today, 12:30 AM)xeroid Wrote: So, if I'm reading this correctly, partition 5 is the one that isn't being used (see attached). What's the easiest way to delete that partition?
If you're absolutely sure you don't need the last partition (which is probably a left over or a OEM partition) and you want a clean way to remove that partition without any space left after your Windows RE partition, you can do the following steps. I verified those steps in a VM to make sure it works.
Be very careful though, it's important to do these steps exactly:
First you want to open an administrator cmd shell (cmd.exe run as admin)
Disable RE temporarily: reagentc /disable
Start diskpart utility: diskpart
Select your disk 1 (according to your screenshots, verify with list disk first): sel disk 1
Delete the old RE partition (according to your screenshots, verify with list part first): sel part 5 - then - del part 5 override
Delete the current RE partition (according to your screenshots, verify with list part first): sel part 4 - then - del part 4 override
Locate your "Windows" partition, this should be 2 or 3 (according to your screenshots): list part
Select your correct "Windows" partition (important!): sel part 2 - or - sel part 3
Extend partition to the complete disk: extend
Shrink partition to leave 800 MB on the right: shrink desired=800
Create a new GPT recovery partition (according to your screenshots you use GPT, not MBR, verify first!): create part primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
Set GPT attributes to hide the new partition (make sure it's selected with list part first, it should be): gpt attributes=0x8000000000000001
Format your new partition with NTFS: format fs=ntfs quick
Exit diskpart: exit
Re-enable RE: reagentc /enable
Now you should see the new recovery partition with ~800MB, something like that:
And reagentc /info should report the new partition as RE target:
Thanks for your information! Your instructions are very detailed, but I got spooked right when I started. So, I installed Paragon and gave that a whirl. I think it came out ok! See attached.
(Today, 03:48 AM)CDC9762 Wrote: Very nice instructions, Al3x!
Xeroid and anybody else using them be sure to take care at each step to ensure you are using them on the correct disk, partition, etc., Diskpart is very powerful and unforgiving.
Thanks!
Unfortunately I made 2 small mistakes in the steps 5 and 6.
I can't edit my posting anymore, so here's the correction:
5. Delete the old RE partition (according to your screenshots, verify with list part first): sel part 5 - then - del part override 6. Delete the current RE partition (according to your screenshots, verify with list part first): sel part 4 - then - del part override
It's del part override only, you select the partition just once with sel part x each.
(Today, 04:01 AM)xeroid Wrote: Thanks for your information! Your instructions are very detailed, but I got spooked right when I started. So, I installed Paragon and gave that a whirl. I think it came out ok! See attached.
Looks good to me, reagentc is attached to the correct partition. Nice!