This is not a warez site! Links/Requests to warez and/or illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing activation/timebombs will also not be tolerated. If you ignore any of the aforementioned you will receive a final warning. If you choose to continue, you will be banned without notice.
If you have questions about customizing Windows Vista that are vLite-specific, please post them in the vLite forum, not here.
Mar 31 2007, 11:38 AM Post
#1 | |
| Pharmassist Group: Moderator Posts: 1626 Joined: 31-July 04 From: United States Member No.: 25917 OS: Vista Ultimate x64 |
Good news for people who use Grub4Dos loader for multi-booting to various Microsoft OSes, including the new Windows Vista, and Linux. I've modified an old trick I've used to load Grub4Dos on system startup with Windows XP as the main OS. See the post at 911cd.net Multi-boot WinXP and other OSes with Grub4Dos for this method. Background For those of you not familiar with Grub4Dos (referred to as Grub henceforth), here's some background information on its benefits. Why use Grub instead of Windows XP boot menu or Vista boot menu? There are several reasons.
Why Rename? My objective was to load Grub loader first, before XP boot menu (and now before Vista boot menu). In order to fulfill this objective, renaming two files is necessary. You can add Grub loader to boot.ini so that you can get an option to load Grub in the XP boot menu. However, if you want Grub to load before XP boot menu, you'll have to rename two files. First, you have to rename ntldr (the XP loader) as ntldrxp and grldr (Grub loader) as ntldr. Basically, you are disguising Grub loader as the XP loader. So, the system thinks it is loading XP but it is loading Grub. Then, you can create an entry in menu.lst to load XP with the following lines: CODE title Microsoft Windows XP SP2 Pro (Find and Load) find --set-root /ntldrxp chainloader /ntldrxp If you had edited boot.ini to automatically load Grub without a timeout, then you would not be able to boot XP because of a circular reference. Why the circular reference? Because system loads ntldr, which reads boot.ini and loads grldr automatically (without an XP menu). Then, from Grub, you would choose to boot XP. However, ntldr will look for boot.ini and load Grub again automatically. It doesn't matter if you rename ntldr to ntldrxp. Ntldrxp will also look for boot.ini and you get a circular reference. Therefore, renaming both ntldr and grldr files solves the problem. Booting Vista with Grub So, with Windows Vista, is it still possible to get Grub to load before Vista boot menu? And can you boot Vista with a Grub entry? Both are yes!! Even though Vista's boot process had been modified, the same trick works with Vista as with XP. Let's look at the differences between Vista and XP boot process before I explain how to get a Grub menu before the Vista menu. For XP, the MBR looks for and loads ntldr. Ntldr then read from boot.ini. If it finds two or more entries in boot.ini, then it will present a menu option for the entries (unless you set to boot an item automatically). That's the process. (I've read that ntldr serves two functions: bootmanager and bootloader. As bootmanager, it presents a menu for XP and other OSes. As bootloader it itself can boot XP.) For Vista, the MBR looks for and loads bootmgr. You can say bootmgr has replaced ntldr. However, bootmgr serves only one function: as a bootmanager. Bootmgr refers to a file called bcd (short for boot configuration data). You can say bcd is like boot.ini. It contains the menu entries for Vista's boot menu. There's a third file called winload.exe that actually loads Vista. This is the bootloader for Vista. So, for our purposes, we need to replace bootmgr with grldr to get a Grub menu before the Vista menu. Then, we need to create an entry in menu.lst for booting Vista, XP, other OSes, and other devices. Finally, now for the instructions. Requirements
Backup System First step is to backup your system with System Restore or Vista's backup program just in case things go haywire (if you follow directions correctly, it shouldn't). I don't use system restore but you may want to. If you are comfortable, you can skip this step. The worst that can happen with these simple instructions is you lose the ability to boot to either Vista or XP. If you created a Vista boot floppy as explained in the next step, then you should be able to recover. If something worse than this happens, you did something beyond these instructions. Create Vista Boot Floppy Now, make a Vista boot floppy. Follow the instructions: http://www.msfn.org/board/index.php?showtopic=95092. I advise you not to skip this step. It will not only help you now, but also if in the future you can't load Vista or XP, it will come in handy. Note: you can create a Vista-only boot floppy, XP-only boot floppy, or Vista/XP dual-boot floppy by modifying your boot options in Vista. If you want a Vista-only boot floppy, modify your boot options to boot Vista automatically (without a timeout). If XP-only, boot XP automatically. If you want dual-boot, specify a timeout before loading your default choice. The changes you make are reflected in the bcd file. Therefore, all files will be same on these floppies except the bcd file. For the purpose of these instructions, you're better off creating a Vista/XP dual-boot floppy so you can boot to either one. Rename bootmgr After creating a boot floppy, boot into XP. Give yourself permission to modify bootmgr. You may have to take ownership. (I took ownership of the file and then modified permissions. I now realize maybe that was not necessary. Not sure.) Rename bootmgr as bootmgrv. Rename grldr Rename grldr as bootmgr. Just like in XP, we're going to fool the system into thinking it is loading Vista, but it is loading Grub loader. Then, copy bootmgr (grldr in disguise) to where the Vista's real bootmgr was, usually in the root folder of your active primary partition. Create Vista Entry in Menu.lst Just like how ntldrxp was able to boot XP, bootmgrv can also boot Vista from Grub menu. Create the following entries in menu.lst. The # indicates comments. Take a look at the comments if you are not familiar with menu.lst. CODE # Sets colors, timeout before default selected and default value color black/cyan yellow/cyan timeout 5 default 0 # Boot Vista by finding and loading bootmgrv title Microsoft Windows Vista find --set-root /bootmgrv chainloader /bootmgrv # Boot XP by finding and loading ntldr title Microsoft Windows XP find --set-root /ntldr chainloader /ntldr # Boot BartPE by finding setupldr.bin title BartPE with XPE 1.0.4 (from HDD) find --set-root /minint/setupldr.bin chainloader /minint/setupldr.bin # Boot BartPE from USB HDD by swap method; note your USB HDD number may be # different. I have two internal HDD's ((hd0) and (hd1)), making my USB HDD # (hd2). Therefore, I have to swap (hd0) with (hd2). title Boot BartPE from USB HDD map (hd2) (hd0) map (hd0) (hd2) chainloader (hd0)+1 # Boot whatever is in CD/DVD drive, even if your BIOS does not support # booting from CD/DVD drive. You need a file called sbootmgr.dsk. # It's a very small SBM disk image. See the end of guide for download link. title Boot CD using Smart Boot Manager find --set-root /sbootmgr.dsk map --mem /sbootmgr.dsk (fd0) map --hook chainloader (fd0)+1 rootnoverify (fd0) # Example of how to boot a floppy image by finding and loading the image file. # This is much faster than booting from the actual floppy. title Boot Ghost 2003 (ghost.img) find --set-root /ghost.img map --mem /ghost.img (fd0) map --hook chainloader (fd0)+1 # Boot whatever is in the floppy drive title Floppy on (fd0) chainloader (fd0)+1 rootnoverify (fd0) Note, we do not need to rename ntldr as ntldrxp in this case. You can also add Linux and other OSes supported by Grub. I don't use Linux. You can search for instruction on the net. Reboot Voila! Reboot and you should see Grub menu with your boot menu options! Please post any discussion points. This post has been edited by spacesurfer: Jul 11 2007, 05:52 PM |
| | |
spacesurfer Multiboot Vista / XP and Other OSes with Grub4Dos Menu Mar 31 2007, 11:38 AM
jaclaz Hi, spacesurfer, long time no see...
...once agai... Mar 31 2007, 12:25 PM
spacesurfer Jaclaz, I've been around. I see you've bee... Apr 3 2007, 03:12 PM
jaclaz QUOTE (spacesurfer)What else do you know about BCD... Apr 4 2007, 04:49 AM
spacesurfer Vista isn't so bad. It's buggy, though. Th... Apr 5 2007, 10:26 AM
JimDandy With my minimal knowledge, I can't tell from r... May 3 2007, 08:03 PM
spacesurfer QUOTE (JimDandy @ May 3 2007, 08:03 PM) W... May 4 2007, 06:50 AM
jaclaz QUOTE Maybe using WinPE or similar to edit the Vis... May 4 2007, 01:24 AM
JimDandy So, just to be clear, there's nothing special ... May 4 2007, 07:45 AM
spacesurfer Also, let me mention that when you download Grub, ... May 4 2007, 07:57 PM
JimDandy Thanks for that tip. I think if I install Wubi it... May 5 2007, 01:48 PM
jaclaz Just for the record, and trying to limit the confu... May 6 2007, 11:30 AM
mangostan Hi there!
what also works out great:
install... May 17 2007, 05:04 PM
Eck Huh? Grub4Dos is not the Vista boot loader, but a... May 17 2007, 05:45 PM
mangostan QUOTE (Eck @ May 18 2007, 01:45 AM) Are y... May 18 2007, 02:22 PM
spacesurfer Here's a great download for all: sbootmgr.dsk.... May 18 2007, 07:34 PM
Eck But, mangostan, if you're installing Grub to t... May 21 2007, 11:48 PM
Mikep7779 Verry nice info, thanks. May 24 2007, 08:53 AM
spacesurfer What remains to be seen, I think, is being able to... May 25 2007, 07:01 AM
iceangel89 too bad i didn't see this earlier... i need to... May 26 2007, 01:22 AM
amenx edit: never mind, answer to question already poste... Jan 20 2008, 02:17 AM
jaclaz QUOTE (iceangel89)GRUB can't seem to load XP o... May 26 2007, 08:13 AM
spacesurfer I've finally succeeded in adding Windows PE 2.... May 27 2007, 09:17 AM
spacesurfer Thanks, Jaclaz, for clarifying the difference betw... May 28 2007, 05:01 PM
jaclaz QUOTE then Jaclaz's method is a great alternat... May 29 2007, 02:26 AM![]() ![]() |
| Lo-Fi Version | Time is now: 24th November 2009 - 03:04 PM |