Reinstalling GRUB Menu

Page 5 of 7 FirstFirst ... 34567 LastLast

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

    iseeuu said:
    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
    Ok. You had me up to the Add the line to boot.ini part..

    Dump the linux boot sector to a file? You lost me there

    And how will i copy the file. Via flash drive?
      My Computer


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

    TGSoldier said:
    iseeuu said:
    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
    Ok. You had me up to the Add the line to boot.ini part..

    Dump the linux boot sector to a file? You lost me there

    And how will i copy the file. Via flash drive?
    You type the line, and a file will appear (if i am not mistaken) probably in your home folder, then use a flash drive or an external harddrive to backup this file i.e take it.
      My Computer


  3. Posts : 2,736
    ...
       #43

    TGSoldier said:
    Ok. You had me up to the Add the line to boot.ini part..
    Sorry, from your earlier post: Reinstalling GRUB Menu
    I had understood you were able to do this but there was no Grub installed, so you got the error. Now that you were able to install Grub in the Linux partition, it should work.

    Yes, boot.ini is a file in the C: drive (the root). You can edit it with notepad or like here:



    Click the Edit button and type the line: c:\linux.bin="Red Hat Linux" so that it appears as the last line in the file.

    Reinstalling GRUB Menu-boot.jpg

    TGSoldier said:
    Dump the linux boot sector to a file? You lost me there

    And how will i copy the file. Via flash drive?
    Coolness said:
    You type the line, and a file will appear (if i am not mistaken) probably in your home folder, then use a flash drive or an external harddrive to backup this file i.e take it.
    Correct, you will need to boot to your Live Linux CD, and from a command prompt type: dd if=/dev/hda2 of=/linux.bin bs=512 count=1. This will "Dump the Linux boot sector" to the file * linux.bin *. Yes, use a flash drive, a floppy disk, or mount the Windows partition. Somehow copy linux.bin and put it in the C: drive, where boot.ini already is. Then when you boot your computer, you will have a menu selection for "Red Hat Linux". When you click on it it will find * linux.bin * and boot up your Red Hat Linux.

    Hope this helps?
      My Computer


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

    I get an error saying

    dd: opening `/dev/hda2': No such file or directory

    Edit..

    I changed hda2 to sda3 but now I get

    dd: opening `/linux.bin' :Permission denied.
      My Computer


  5. Posts : 2,736
    ...
       #45

    TGSoldier said:
    I get an error saying

    dd: opening `/dev/hda2': No such file or directory

    Edit..

    I changed hda2 to sda3 but now I get

    dd: opening `/linux.bin' :Permission denied.
    Try sda2 ?

    The Red Hat partition is the second partition?
      My Computer


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

    Tried sda2... Same thing. Permission denied.

    Yes. Second partition.
      My Computer


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

    Anything on this?
      My Computer


  8. Posts : 2,736
    ...
       #48

    TGSoldier said:
    Anything on this?
    The problem I see with giving you more specific advice is I have no experience with a computer dual booting XP and Red Hat, while fixing it with a Knoppix live CD. However, it seems to me that you will need to have "root" privileges (permissions) on the Red Hat system to "Dump the Linux boot sector" from the Red Hat partition. You may be able to gain access with the "root" password in a command prompt from the live cd. Or you might be able to boot to the Red Hat OS from the live CD. When you boot to the live Knoppix CD, are you a "User" or do you have "root" access? Do you open a "root" command promtp window (terminal) when you type the Dump command?
      My Computer


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

    Er... I don't know.. the box i open has LXTerminal on it.. :|
      My Computer


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

    TGSoldier said:
    Er... I don't know.. the box i open has LXTerminal on it.. :|
    According to this link: Root Password (what is it?) - Knoppix.net

    you need to type: su
    before the command. So maybe try:

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


 
Page 5 of 7 FirstFirst ... 34567 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 05:54.
Find Us