How-To: Hide Vista Partition from XP with NeoGrub!

One of the biggest problems that faces dual-booters is data corruption on many different fronts. While using proper dual-boot techniques and going by the book can avoid most forms of data corruption, there are some things that you can't just work around, especially if it's considered a "feature" by Microsoft... One such "feature" is that those dual-booting Windows XP and Windows Vista will find that every time they boot into XP, they'll lose all their Vista system restore points - because XP "intelligently" detects them as being corrupt XP system restore profiles. So much for painless dual-booting. Even Vista's "Complete Backup" feature is decimated by the very existence of XP on the same computer - and having them on separate hard drives doesn't help!

Unfortunately, there is no solution to this. Microsoft acknowledges the issue - but provides absolutely no hint, clue, or even whiff of a hotfix though it would seem that this isn't something difficult for them to patch. The advice has been to either not dual-boot at all, run XP in a virtual machine, or else encrypt the Vista hard drive - a feature that has more bugs than the rest of Vista put together. But don't worry, we have a (free and easy!) solution for you!

  1. If you don't already have it, download and install EasyBCD.
  2. Run EasyBCD and go to the "Add/Remove Entries" screen.
  3. Delete any and all "Windows XP" entries in the list you see. Simply select them, and press the delete button.
  4. Click the "NeoGrub" tab, and select "Install NeoGrub" from the screen.
  5. Once NeoGrub is installed, hit the "Configure NeoGrub" button.
  6. Notepad will open, and you'll be presented with the NeoGrub configuration file, called "menu.lst" NeoGrub provides a bunch of very nifty options that will help us hide the Vista drive from Windows XP, in a very safe, simple, and straight-forward manner. Copy and paste this code over the existing menu.lst file. Replace everything:

    
    # NeoSmart NeoGrub Bootloader Configuration File
    #
    # This is the NeoGrub menu.lst file, and should be located at C:\\menu.lst
    # Please see the EasyBCD Documentation for information on how to create/modify entries
    # http://neosmart.net/wiki/display/EBCD
    
    
    default 0
    timeout 0
    
    title Boot XP - Hide Vista
    hide (hd0,1)			# SET THIS TO THE VISTA DRIVE
    # Optionally repeat the above entry for all the Vista drives
    chainloader (hd0,0)/ntldr	# SET THIS TO THE BOOT PARTITION
    boot
    
    
    # Optional section
    #  If you include this section, you will see a second bootloader menu!
    title Boot XP - Unhide Vista
    unhide (hd0,1)			# SET THIS TO THE VISTA DRIVE
    # Optionally repeat the above entry for all the Vista drives
    chainloader (hd0,0)/ntldr	# SET THIS TO THE BOOT PARTITION
    boot
    
    
    
  7. Read "Drive Letters and Numbers" to figure out which (hdx,y) sequence you need to use. Hard drive and partition counts start at 0. You can see a full list of drives and partitions by going to the "Linux/BSD" tab of the "Add/Remove Entries" section in EasyBCD.
  8. Save it, and exit notepad.
  9. Optional: Go to the "Configure Boot" screen and rename the entry from "NeoGrub Bootloader" to "Windows XP" or another name of your choice.
  10. Exit EasyBCD & reboot to test.

It's pretty self-explanatory for the most part. Basically, the default option is the first which tells NeoGrub to hide the Vista partition (in the example above, Vista is installed to hd0,1). After it is hidden, we tell NeoGrub to open up the file "ntldr" on the boot drive (in the example above the boot drive is hd0,0). NTLDR is the Windows XP bootloader, which will present you with a list taken from boot.ini asking you which operating system you want to boot into.

If you want to be able to unhide the Vista partition, just run EasyBCD once more -> "Configure NeoGrub" and change the timeout to something other than zero. This will show give you two options, "Hide Vista" and "Unhide Vista" - whereupon you can choose to boot into XP without hiding the Vista partition so you can do whatever it is you feel like doing.

Now when you reboot your PC, the Vista BCD menu will give you two options: Windows Vista and Windows XP (or NeoGrub if you didn't rename it). Selecting Windows Vista will boot you right into Windows Vista, while choosing Windows XP will transfer control of the bootloader process to NeoGrub which will hide Vista's drive and then call up the boot.ini menu. If you only have one XP installed, it will boot right into it instead. If you have multiple XP installations, you'll be presented with a menu of installations to boot to, all of which will no longer see the Vista drive.

NB: If you have multiple Vista partitions, you will need to duplicate the "hide" and "unhide" lines to point to the other Vista partitions as well in order to hide them too.

All in all, EasyBCD makes it very easy to do just about anything via the UI, and if there's anything that looks to complex, simply opening up the NeoGrub menu.lst file in notepad and hacking away makes it possible.

Please do not under any circumstances post support requests in the comments below - they will go unanswered. If you have any questions or problems, post in the forums!

Special thanks to the Grub4Dos Project, without which none of this would have been possible.


Leave a Reply  •  About to Ask for Help?  •  Subscribe to Our Feed

21 Responses to “ How-To: Hide Vista Partition from XP with NeoGrub! ”


  1. 1sydney HiltonNov. 8th, 2008 at 1:41 am

    Copied and pasted menu.1st code over the existing menu.1st file. Adjusted drives and partitions as in bootloader. On reboot > “Boot XP – Hide Vista” everything proceeds as expected and XP installs normally. On rebooting to Vista (Business SP1) all restore points have vanished.

    Boot Loader ; ;Warning: Boot.ini is used on Windows XP and earlier operating systems. ;Warning: Use BCDEDIT.exe to modify Windows Vista boot options. ; [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /NOEXECUTE=OPTIN /FASTDETECT

    Settings in EasyBCD There are a total of 2 entries listed in the Vista Bootloader. Bootloader Timeout: 10 seconds. Default OS: Windows Vista

    Entry #1 Name: Windows Vista BCD ID: {default} Drive: E:\ Bootloader Path: \Windows\system32\winload.exe Windows Directory: \Windows

    Entry #2 Name: Windows XP BCD ID: {2c3daec5-ab75-11dd-9a62-000ea61b5a2f} Drive: C:\ Bootloader Path: \NST\NeoGrub.mbr

    menu.1st (LST file in C:\NST\menu.1st along with NeoGrub MBR file)

    NeoSmart NeoGrub Bootloader Configuration File

    #

    This is the NeoGrub menu.lst file, and should be located at C:\menu.lst

    Please see the EasyBCD Documentation for information on how to create/modify entries

    http://neosmart.net/wiki/display/EBCD

    default 0 timeout 10 title Boot XP - Hide Vista hide (hd1,1) # SET THIS TO THE VISTA DRIVE

    Optionally repeat the above entry for all the Vista drives

    chainloader (hd0,0)/ntldr # SET THIS TO THE BOOT PARTITION

    Detailed settings in EasyBCD (debug mode)

    Windows Boot Manager

    identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795} device partition=C: description Windows Boot Manager locale en-US inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e} default {e8709fb6-fa5f-11db-be4d-e219ece5282e} displayorder {e8709fb6-fa5f-11db-be4d-e219ece5282e} {2c3daec5-ab75-11dd-9a62-000ea61b5a2f} toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d} timeout 10

    Windows Boot Loader

    identifier {e8709fb6-fa5f-11db-be4d-e219ece5282e} device partition=E: path \Windows\system32\winload.exe description Windows Vista locale en-US inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7} osdevice partition=E: systemroot \Windows resumeobject {e8709fb7-fa5f-11db-be4d-e219ece5282e} nx OptOut

    Real-mode Boot Sector

    identifier {2c3daec5-ab75-11dd-9a62-000ea61b5a2f} device partition=C: path \NST\NeoGrub.mbr description Windows XP

  2. 2Mahmoud Al-QudsiNov. 8th, 2008 at 8:42 am

    Use Vista Hide 'n Seek instead of NeoGrub to accomplish this. It'll automate the entire procedure for you:

    http://neosmart.net/forums/showthread.php?t=1341

  1. 1 How-To Hide Vista Partition from XP ! - TechEnclave Pingback on Jun. 3rd, 2007 at 8:33 am
  2. 1 Using NeoGrub to hide Vista partition from XP - NeoSmart Technologies Pingback on Jun. 7th, 2007 at 5:02 am
  3. 1 XP/Vista双重启动时系统还原问题的终极解决方案 | Vista天地 Pingback on Jun. 7th, 2007 at 3:11 pm
  4. 1 Hiding Vista's Partition from XP - Digital Forums Pingback on Jun. 8th, 2007 at 6:12 am
  5. 1 Hiding Vista's Partition from XP - Digital Forums Pingback on Jun. 9th, 2007 at 5:46 pm
  6. 1 How-To: Hide Vista Partition from XP! - Neowin Forums Pingback on Jun. 9th, 2007 at 6:50 pm
  7. 1 Hide Vista partition(s) from Windows XP - Fix for System Restore Point Corruption! - Setup and Install Pingback on Jun. 9th, 2007 at 10:00 pm
  8. 1 Hide Vista partition(s) from Windows XP - Fix for System R.. Pingback on Jun. 11th, 2007 at 1:12 pm
  9. 1 Hide Vista partition(s) from Windows XP - Fix for System Restore Point Corruption! - Vista x64 Forums Pingback on Jun. 14th, 2007 at 4:13 am
  10. 1 Multiple OS's...need help!! - H2V Gaming Pingback on Jun. 14th, 2007 at 7:34 pm
  11. 1 hide partitions xp vista boot - Web - WebCrawler Pingback on Jun. 14th, 2007 at 8:12 pm
  12. 1 Hide Vista partition(s) from Windows XP - Fix for System Restore Point Corruption! - Vista Ready Games Pingback on Jun. 19th, 2007 at 3:29 am
  13. 1 UMG League :: View topic - UMG home page shuts down Vista Aero Pingback on Jul. 13th, 2007 at 8:07 pm
  14. 1 On easybcd Pingback on Jul. 27th, 2007 at 3:55 pm
  15. 1 Restore points « How-To Geek Forums Pingback on Jul. 29th, 2007 at 8:16 pm
  16. 1 using vista on XP Pingback on Aug. 13th, 2007 at 5:48 am
  17. 1 Issue when trying to hide XP from Vista on a dual boot machine Pingback on Sep. 9th, 2007 at 7:10 am
  18. 1 Dual Boot Pingback on Sep. 11th, 2007 at 11:20 pm
  19. 1 How to keep Vista retore points when dual booting Vista and XP - Notebook Forums and Laptop Discussion Pingback on Sep. 16th, 2007 at 4:53 pm

Leave a Reply