Reinstalling GRUB Menu

Page 4 of 7 FirstFirst ... 23456 ... LastLast

  1. Posts : 1,161
    Windows 8.1 PRO
    Thread Starter
       #31

    The system is not running knoppix. It's running Redhat linux I think.

    You can backup apps? :|
      My Computer


  2. Posts : 906
    Win 7 pro 64-bit, Ubuntu 9.10 64-bit
       #32

    Oh redhat? Well you can call redhat customer support. And yes you can back up youre whole system like in windows.
      My Computer


  3. Posts : 1,161
    Windows 8.1 PRO
    Thread Starter
       #33

    Well thats making an img.. but restoring the image would leave me with the same no GRUB problem...
      My Computer


  4. Posts : 906
    Win 7 pro 64-bit, Ubuntu 9.10 64-bit
       #34

    Well, no. It will install an operation system, like a clean install, exept that it has all your software and settings. Get it?
      My Computer


  5. Posts : 1,161
    Windows 8.1 PRO
    Thread Starter
       #35

    I get it.. But I don't get it.. Somethings telling me that won't work though...
      My Computer


  6. Posts : 906
    Win 7 pro 64-bit, Ubuntu 9.10 64-bit
       #36

    well im not sure if i can help you further. Just download a software that does this (too lazy to look for one)
      My Computer


  7. Posts : 73
    Windows 7 32bit
       #37

    TGSoldier said:
    ManyBeers said:
    TGSoldier said:
    Ok so.

    When I run the "dd if=/dev/hda2 of=/linux.bin bs=512 count=1"

    I get an error saying " no such file or directory."

    Also, noticed you said knoppix partition. I am booting from knoppix on a cd.. I think it's redhat linux on the next partition. I'm not even sure xD.

    Edit.

    So I noticed when I ran the command it was saying "dd: opening '/dev/hda2' : No such File or directory"

    So i figured it was just pointing to the wrong path. I opened up explorer and changed /dev/hda2 to /media/sda2.

    When i run the command with /media/sda2 it says "opening /linux.bin': permission denied"

    :S
    For this method to work Grub must be placed in the Linux root partition and Not the MBR.
    Then you run the DD command.

    How many partitions do you have on your computer?
    How do I do that?

    2.

    Thanks
    Recovering GRUB after reinstalling Windows

    As above, when Windows is reinstalled, the master boot record will be overwritten. This can be avoided by backing up the boot sector, by following the instructions from step 2 in the above section 'Installing Windows After Ubuntu'. An alternative method is to use the Ubuntu LiveCD to reinstall the GRUB boot sector, here are step-by-step instructions, to be run after Windows has been reinstalled:

    1. Boot into a LiveCD .....You have an Ubuntu Live CD right?
    2. Open a terminal
    3. Open the GRUB Command line utility by typing


    sudo grub
    1. Tell GRUB where your Ubuntu partition is by entering
    2. root (hdA,B).... IN YOUR CASE root (hd0,1)...... Ubuntu is on your 1st harddrive 2nd partition


    Where 'A' is the hard-drive number, starting at 0, and 'B' is the partition number, starting at 0. For example, if Ubuntu was installed on the second partition of the first hard-drive, the command should be

    root (hd0,1).... RUN THIS.....there is a space between ROOT and (

    1. Tell GRUB which drive to put the boot sector on

    setup (hd0,1)... RUN THIS....... will install GRUB to partition and not MBR.....
    there is a space between SETUP and (

    If you run...... setup (hdo)....... it will install GRUB to MBR.

    1. Leave the GRUB Command line
    2. quit..RUN THIS

    and reboot. This will not give dual-boot yet.

    If this works post back and I will help with the next part. This is the link:
    https://help.ubuntu.com/community/WindowsDualBoot
    Last edited by ManyBeers; 23 Dec 2009 at 02:29. Reason: for clarity
      My Computer


  8. Posts : 906
    Win 7 pro 64-bit, Ubuntu 9.10 64-bit
       #38

    Exellent job ManyBeers! The guide is very good. Reps
      My Computer


  9. Posts : 1,161
    Windows 8.1 PRO
    Thread Starter
       #39

    ManyBeers said:
    TGSoldier said:
    ManyBeers said:

    For this method to work Grub must be placed in the Linux root partition and Not the MBR.
    Then you run the DD command.

    How many partitions do you have on your computer?
    How do I do that?

    2.

    Thanks
    Recovering GRUB after reinstalling Windows

    As above, when Windows is reinstalled, the master boot record will be overwritten. This can be avoided by backing up the boot sector, by following the instructions from step 2 in the above section 'Installing Windows After Ubuntu'. An alternative method is to use the Ubuntu LiveCD to reinstall the GRUB boot sector, here are step-by-step instructions, to be run after Windows has been reinstalled:

    1. Boot into a LiveCD .....You have an Ubuntu Live CD right?
    2. Open a terminal
    3. Open the GRUB Command line utility by typing


    sudo grub
    1. Tell GRUB where your Ubuntu partition is by entering
    2. root (hdA,B).... IN YOUR CASE root (hd0,1)...... Ubuntu is on your 1st harddrive 2nd partition


    Where 'A' is the hard-drive number, starting at 0, and 'B' is the partition number, starting at 0. For example, if Ubuntu was installed on the second partition of the first hard-drive, the command should be

    root (hd0,1).... RUN THIS.....there is a space between ROOT and (

    1. Tell GRUB which drive to put the boot sector on

    setup (hd0,1)... RUN THIS....... will install GRUB to partition and not MBR.....
    there is a space between SETUP and (

    If you run...... setup (hdo)....... it will install GRUB to MBR.

    1. Leave the GRUB Command line
    2. quit..RUN THIS

    and reboot. This will not give dual-boot yet.

    If this works post back and I will help with the next part. This is the link:
    https://help.ubuntu.com/community/WindowsDualBoot
    Done! What now sir?!
      My Computer


  10. Posts : 2,736
    ...
       #40

    TGSoldier said:
    Done! What now sir?!
    TG;

    If you have been successful in installing Grub into the Red Hat Linux partition, you can now try this again:

    Add this line to the end of your boot.ini:

    c:\linux.bin="Red Hat Linux"

    Then Dump Linux boot sector to a file. Boot to Linux and type the following:

    dd if=/dev/hda2 of=/linux.bin bs=512 count=1

    Copy the file: linux.bin from Linux to the C: of your Windows XP and reboot.


    It should work this time, and you should be able to boot to Linux through the Windows boot manager.

    Cheers!
    Robert
      My Computer


 
Page 4 of 7 FirstFirst ... 23456 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:36.
Find Us