A Digital Age Deserves A Digital Leader

How to: Dual-boot Windows Vista and Linux

Postby imnuts » Tue Jun 20, 2006 7:03 pm

l33t wrote:because if what you say is true (grub cant recognise vista boot loader) then how else could it work? the only ohter OS i have installed (besides vista) is xp pro_x64...(and of cousrse suse) so if grub cant recognise vista, but it can xp pro, and of course recognises suse, then it *has* to be the xp_pro boot laoder thast handing control over to some files somewhere on the vista partition (in the BOOT folder i would think)


it works because the Vista Bootloader sets itself to run prior to the old bootloader and only allows one to access the old bootloader through itself. You can override this by using a switch with bootsect or by fixing XP's bootloader. The vista bootloader installs itself to where the XP bootloader was (but doesn't overwrite it) so when GRUB chainloads the bootloader, it is seen as a call for what is currently on that drive, which defaults to what vista installed.
Image
PRO SUPREME
User avatar
Posts: 7457
Joined: Wed Mar 24, 2004 5:19 am
Location: Boothwyn, Pennsylvania
Real Name: Mark

Postby l33t » Tue Jun 20, 2006 7:13 pm

i get it now...
PRO Level 14
User avatar
Posts: 882
Joined: Mon May 02, 2005 2:06 am

Postby unpocoloco » Fri Sep 08, 2006 4:09 pm

Fantastic guide, imnuts. In fact, it convinced me to join the community!

I do have a question. If I have Linux installed first, and then I install Vista...the next time I boot, won't it boot into Vista?

So, I'm thinking if that's the case, I won't be *able* to get into the grub configs!
PRO New Member
Posts: 1
Joined: Fri Sep 08, 2006 4:07 pm
Location: Austin, TX

Postby kd1966 » Fri Sep 08, 2006 5:00 pm

Hello and welcome to PROnetworks unpocoloco! Please stop by our Introduction Area so we can welcome you properly.

As to your question; initially yes, you will be unable to access your Linux, BUT you won't have to reinstall, you can simply boot your Linux CD and "repair" the grub loader, then edit it to add an entry for the Vista bootloader. I did this on one of my systems
PRO PLATINUM
User avatar
Posts: 6831
Joined: Tue Aug 09, 2005 2:00 am
Location: USA - GSO - NC

Postby EclipseAgent » Mon Dec 04, 2006 7:44 pm

Eh, I am having a problem with the Vista installation on my machine :( after installing grub I get a "winload.exe" error when trying to boot Vista..

What gives?
PRO Level 4
Posts: 112
Joined: Tue May 11, 2004 10:41 pm
Location: USA

Postby l33t » Mon Dec 04, 2006 8:20 pm

unpocoloco wrote:Fantastic guide, imnuts. In fact, it convinced me to join the community!

I do have a question. If I have Linux installed first, and then I install Vista...the next time I boot, won't it boot into Vista?

So, I'm thinking if that's the case, I won't be *able* to get into the grub configs!


windows will erase grub and install its own boot loader to the MBR
there are several guides on how to fix this, and if you do not know, i (or somebody else) will gladly post the steps required to fix grub

to be honest tho, it really isint that hard, IIRC its as simple as a Linux live cd (almost any one will do) and then entering the GRUB shell and then rooting to the partition that has the grub files, then installing grub to the MBR then restart.
PRO Level 14
User avatar
Posts: 882
Joined: Mon May 02, 2005 2:06 am

Postby adiaconou » Mon Dec 18, 2006 11:59 pm

I recently was dual booting XP and Linux, and I just installed Vista over my XP partition. However, now (as expected) I lost my ability to boot into linux and it just boots directly to Vista. However, in my Computer, I can no longer see the Linux partition at all.

How do I locate this partition? Can I get back into Dual boot mode without formatting the linux partition and then re-installing linux?

Thanks
PRO New Member
Posts: 2
Joined: Mon Dec 18, 2006 11:51 pm
Location: santa clara

Postby adiaconou » Tue Dec 19, 2006 12:03 am

l33t wrote:
unpocoloco wrote:Fantastic guide, imnuts. In fact, it convinced me to join the community!

I do have a question. If I have Linux installed first, and then I install Vista...the next time I boot, won't it boot into Vista?

So, I'm thinking if that's the case, I won't be *able* to get into the grub configs!


windows will erase grub and install its own boot loader to the MBR
there are several guides on how to fix this, and if you do not know, i (or somebody else) will gladly post the steps required to fix grub

to be honest tho, it really isint that hard, IIRC its as simple as a Linux live cd (almost any one will do) and then entering the GRUB shell and then rooting to the partition that has the grub files, then installing grub to the MBR then restart.


would you mind postnig these steps? I really appreciate it. And will this work assuming (as i said in my above post) I cannot even see the partition in windows?

Thanks
PRO New Member
Posts: 2
Joined: Mon Dec 18, 2006 11:51 pm
Location: santa clara

Postby l33t » Tue Dec 19, 2006 2:18 am

sure,

this is a pretty useful guide (it is a bit outdated tho)

guide: http://www.sorgonet.com/linux/grubrestore/

as for the basic steps

you need to get to a properly equipped shell (aka most of them)
knoppix or any other live CD should work, i use SUSE 10.1 install DVD and boot into recovery mode

once you are at the shell, you need to login as root and type "grub"
you are now at the grub prompt

1) find out where the grub boot files are located by typing
"find /boot/grub/stage1"

2) you now need to "root" into those files by typing "root (hdX,Y)
where X,Y are the numbers that you found above. X is the HD (probably 0) and Y is the partition

3) then you need to install it. do this by typing "setup (hdX)" where X is where you want it installed (look at step 2, X refers to a HD number (usually 0)) where the MBR is

assuming there were no errors, you should now be able to quit and reboot.
PRO Level 14
User avatar
Posts: 882
Joined: Mon May 02, 2005 2:06 am

Multiple Harddrives

Postby jordanrw » Fri Jan 12, 2007 6:07 pm

Sorry kind of new to the whole dual boot here.

I have 2 SATA drives, one is currently running vista, i want to put Fedora Core 6 on the other. How would the above procedure change?

Thank you for the help.
PRO Level 2
Posts: 10
Joined: Fri Jan 12, 2007 6:05 pm
Location: Bloomington, IN

PreviousNext

Return to Guides

Who is online

Users browsing this forum: No registered users and 0 guests

cron
cron