18
10
When I upgraded from Windows XP to Windows 7, I had a second drive around and set it to dual boot.
After a while, I decided that I wasn't ever going to go back to Windows XP, and so I deleted the windows directory on that drive. Unfortunately, now I can't remove Windows XP from the boot menu.
I tried going into MSCONFIG to the boot tab, but it only lists windows 7.
I don't know if it's still going off of the Windows XP Boot ini.
edit: Before:
C:\Windows\system32>bcdedit /v
Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device partition=D:
description Windows Boot Manager
locale en-US
inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default {d703a693-0587-11df-9a8e-e8a34060eec6}
resumeobject {d703a692-0587-11df-9a8e-e8a34060eec6}
displayorder {466f5a88-0af2-4f76-9038-095b170dc21c}
{d703a693-0587-11df-9a8e-e8a34060eec6}
toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout 30
Windows Legacy OS Loader
------------------------
identifier {466f5a88-0af2-4f76-9038-095b170dc21c}
device partition=D:
path \ntldr
description Earlier Version of Windows
Windows Boot Loader
-------------------
identifier {d703a693-0587-11df-9a8e-e8a34060eec6}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence {d703a694-0587-11df-9a8e-e8a34060eec6}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {d703a692-0587-11df-9a8e-e8a34060eec6}
nx OptIn
After:
C:\Windows\system32>bcdedit /delete {466f5a88-0af2-4f76-9038-095b170dc21c} /f
The operation completed successfully.
C:\Windows\system32>bcdedit /v
Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device partition=D:
description Windows Boot Manager
locale en-US
inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default {d703a693-0587-11df-9a8e-e8a34060eec6}
resumeobject {d703a692-0587-11df-9a8e-e8a34060eec6}
displayorder {d703a693-0587-11df-9a8e-e8a34060eec6}
toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout 30
Windows Boot Loader
-------------------
identifier {d703a693-0587-11df-9a8e-e8a34060eec6}
device partition=C:
path \Windows\system32\winload.exe
description Windows 7
locale en-US
inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence {d703a694-0587-11df-9a8e-e8a34060eec6}
recoveryenabled Yes
osdevice partition=C:
systemroot \Windows
resumeobject {d703a692-0587-11df-9a8e-e8a34060eec6}
nx OptIn
I'll have to wait until later to restart it and test it out though
i know this is a old story but it popped up pretty high on {famouse search engine}... I want to add that using windows power shell all the {guid} strngs should be put into '...' like '{guid}'. – Matthias – 2019-05-23T21:02:43.493
So you had Windows XP on HDD 1 and Windows 7 on HDD 2. And then you deleted C:\Windows directory from HDD 1 but you did not format the disk? Now when you boot the computer you see both Windows XP and Windows 7 as options? – Samir – 2012-08-23T08:37:47.080
Yeah, that's pretty much it. I had stuff on HDD 1 that I wanted to keep, but I wanted to free up the room in Windows and Program Files that weren't going to be used any more. – AndyD273 – 2012-08-23T12:40:20.403
Windows 7 normally creates a 100 MB system partition, and its boot information is stored there. Its not on the MBR. So as I said, clear the MBR using fdisk of the XP (HDD1), and boot with the windows 7 (HDD2) by changing it in the BIOS.. it's the simplest solution.. – aliasgar – 2012-08-23T13:02:33.050
@aliasgar Correct me if I'm wrong but fdisk is not available in Windows XP. I believe that fdisk was only available in DOS and Windows 95 and 98. On the other hand, even if fdisk was part of Windows XP this user would not be able to use it since he already has deleted the Windows directory. So how do you plan to boot into Windows 7 and... do what?... use fdisk from the Windows XP disk drive?... which is stored where, if Windows directory is already gone? – Samir – 2012-08-23T15:05:40.703