LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   need Help in Boot Loader (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-in-boot-loader-944816/)

bheemamahesh 05-14-2012 01:14 AM

need Help in Boot Loader
 
Hello Every one

i ve installed Windows 7 in Primary and created "/" and "swap" in logical for backbox after that i accidentally selected the drive where i installed windows 7 for boot loader

now backbox is working fine and windows is not opening for me

pls help me out from this

okcomputer44 05-14-2012 05:10 AM

Hi,

Well I think you have to use the Windows CD to restore the boot partition for the Windows boot.
Windows "likes" sitting in the first partition therfore you can't move it to anywhere else.

Here is a step-by-step guide to restore the boot on Windows: http://www.howtogeek.com/howto/32523...ader-problems/

After you restored it then the Linux wont boot. So you will need to update the grub on the Linux box too.
If the Linux installed on the first disk you can run this command:
Code:

# grub-install /dev/hda
It will install the grub boot loader into /dev/sda master boot record then you will be able to boot into Windows and Linux too.

bheemamahesh 05-15-2012 08:20 AM

Quote:

Originally Posted by okcomputer44 (Post 4677864)
Hi,

Well I think you have to use the Windows CD to restore the boot partition for the Windows boot.
Windows "likes" sitting in the first partition therfore you can't move it to anywhere else.

Here is a step-by-step guide to restore the boot on Windows: http://www.howtogeek.com/howto/32523...ader-problems/

After you restored it then the Linux wont boot. So you will need to update the grub on the Linux box too.
If the Linux installed on the first disk you can run this command:
Code:

# grub-install /dev/hda
It will install the grub boot loader into /dev/sda master boot record then you will be able to boot into Windows and Linux too.

thnX for ur support :)
i fixed it with help of other forum
after fixing windows we ve to do chroot and the #grub-install /dev/sda
without chroot grub-install /dev/sda makes no sense as we r using linux by live cd


All times are GMT -5. The time now is 02:10 AM.