LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub (https://www.linuxquestions.org/questions/linux-newbie-8/grub-943322/)

raj00raj 05-04-2012 05:21 PM

grub
 
can i install windows using grub and if yes then how ??

sycamorex 05-04-2012 05:26 PM

No, you can't install Windows using grub. Grub is a bootloader. You can install Windows using a windows installation CD/DVD.

If you are asking whether you can add Windows to grub entries then yes, you can. The method will depend on whether you're using grub-legacy or grub2.

flamelord 05-04-2012 06:18 PM

However, I believe that by default Windows overwrites the master boot record, so after installing Windows you will need to go back and re-install GRUB onto the device.

Satyaveer Arya 05-04-2012 09:51 PM

raj00raj,

You posted the same question in another thread also, http://www.linuxquestions.org/questi...ooting-942989/, please keep the discussion at one place.
And coming to your question, no windows cannot be installed using grub.
Rest you can check on google what is grub.

Knightron 05-05-2012 09:05 AM

Quote:

Originally Posted by flamelord (Post 4670650)
However, I believe that by default Windows overwrites the master boot record, so after installing Windows you will need to go back and re-install GRUB onto the device.

I used to believe this too. I actually installed Windows 7 onto a partition the other day and sure enough when my computer booted up, my usual grub legacy didn't boot up. I booted a live cd and reconfigured my boot partition to be the first boot device, and on reboot everything was normal, and when i selected windows from the menu, it chainloaded it fine. If it had have been on the mbr, i'd think the chain load wouldn't work. I suspect that Windows does what Opensuse does (which i hate) and that is; the bootloader is installed to the root partition but it is configured automatically to be the first boot device.

TobiSGD 05-05-2012 09:27 AM

To clarify that, the bootloader of NT6 (Vista, 7) is a multi-stage bootloader, like Grub. It's first stage resides in the MBR, the second stage resides in the partitions boot-sector, the third stage is a program called bootmgr, which is found in the root directory of the system partition.
If for whatever reason Windows has not replaced the MBR on your system then you had the luck that the installer failed to write to the MBR.

mreff555 05-05-2012 09:25 PM

The only reason I could see windows not overwriting the MBR is if you used two hard drives. If your linux drive was made secondary while while windows was installed on the other drive and then you later swapped the drives you would still have grub because windows wrote to the second MBR. of course if thats the case you will most likely have to update grub to include windows.


All times are GMT -5. The time now is 01:16 PM.