The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    help repairing grub.lst

    Discussion in 'Linux Compatibility and Software' started by Bog, Feb 26, 2007.

  1. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    I need to repair the Windows XP Professional entry; after freshly installing Kubuntu (and getting wireless running!!!) I edited grub.lst w/ a timeout of 3 and Windows as the default boot entry. However after downloading 122 updates, Windows was erased from grub.lst altogether. Can someone help me?

    ## ## End Default Options ##

    # This is a divider, added to separate the menu items below from the Debian
    # ones.

    title Kubuntu (kernel 2.6.17-11)
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda6 ro quiet splash
    initrd /boot/initrd.img-2.6.17-11-generic
    quiet
    savedefault
    boot

    title Kubuntu (kernel 2.6.17-11-generic, recovery mode)
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.17-11-generic root=/dev/hda6 ro single
    initrd /boot/initrd.img-2.6.17-11-generic
    boot

    title Kubuntu, memtest86+
    root (hd0,5)
    kernel /boot/memtest86+.bin
    quiet
    boot

    ### END DEBIAN AUTOMAGIC KERNELS LIST
     
  2. Paul

    Paul Mom! Hot Pockets! NBR Reviewer

    Reputations:
    759
    Messages:
    2,637
    Likes Received:
    0
    Trophy Points:
    55
    You'll need to know which partition your Windows is installed to. You can do this by finding the "Disks" application in the K menu, and then finding the Windows partition (you should recognize the size and it may be listed as an NTFS partition). From there, you'll want to edit GRUB. I'm not exactly sure of what you need to add, but I'm sure someone else will respond. If not, I'll get back to you once I'm at home at my laptop and can inspect my grub.lst.
     
  3. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    Partition arrangement:

    *Windows *Linux swap *Linux

    I think this is how my partitions are named:
    Primary: hda0
    >Windows: hda1

    Extended: hda3
    >swap: hda4
    >Kubuntu Linux: hda5
     
  4. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    Someone please help; I must get Windows running again!
     
  5. Gladiator

    Gladiator Notebook Consultant

    Reputations:
    38
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    30
    This should work!
    title Microsoft Windows XP Professional
    root (hd0,1)
    savedefault
    makeactive
    chainloader +1

    if it doesn't try
    root (hd0,0)


    V you're welcome.
     
  6. Bog

    Bog Losing it...

    Reputations:
    4,018
    Messages:
    6,046
    Likes Received:
    7
    Trophy Points:
    206
    Your second suggestion worked macker, thanks!