Announcement

Collapse
No announcement yet.

Cannot Boot Windows after Grubbing (SOLVED)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cannot Boot Windows after Grubbing (SOLVED)

    Hi,

    - I installed Windows for my kids' games. It ran okay.
    - I managed to alter the menu.lst and re-load grub so that I can boot back into Kubuntu and that ran okay.

    Problem is, I now get an 'Error 13' when I try boot into Windows.

    As you can see below, my HDD is partitioned into three. The third partition split into FAT32 and EXT2. This is just a deposit where I put music and stuff.

    Windows is on (hd0,0)
    Kubuntu is on (hd0,1)

    Below are the commands I followed in the Terminal.

    -------------------------------------------------------------
    ...sudo grub
    [ Minimal BASH-like line editing is supported. For
    the first word, TAB lists possible command
    completions. Anywhere else TAB lists the possible
    completions of a device/filename. ]

    grub> geometry (hd0)
    drive 0x80: C/H/S = 9729/255/63, The number of sectors = 156301488, /dev/sda
    Partition num: 0, Filesystem type unknown, partition type 0x7
    Partition num: 1, Filesystem type is ext2fs, partition type 0x83
    Partition num: 4, Filesystem type is fat, partition type 0xb
    Partition num: 5, Filesystem type is ext2fs, partition type 0x83

    grub> find /boot/grub/stage1
    (hd0,1)

    grub> root (hd0,1)

    grub> setup (hd0)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/e2fs_stage1_5" exists... yes
    Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
    succeeded
    Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,1)/boot/grub/stage2 /boot/grub/menu
    .lst"... succeeded
    Done.

    grub> quit

    --------------------------------------------------------
    Here is my menu.lst file

    ## ## End Default Options ##

    title Ubuntu 9.04, kernel 2.6.28-14-generic
    uuid 3f6ff74a-a2f2-4458-aab1-0a4cff7973df
    kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=3f6ff74a-a2f2-4458-aab1-0a4cff7973df ro quiet splash
    initrd /boot/initrd.img-2.6.28-14-generic
    quiet

    title Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
    uuid 3f6ff74a-a2f2-4458-aab1-0a4cff7973df
    kernel /boot/vmlinuz-2.6.28-14-generic root=UUID=3f6ff74a-a2f2-4458-aab1-0a4cff7973df ro single
    initrd /boot/initrd.img-2.6.28-14-generic

    title Ubuntu 9.04, memtest86+
    uuid 3f6ff74a-a2f2-4458-aab1-0a4cff7973df
    kernel /boot/memtest86+.bin
    quiet

    ### END DEBIAN AUTOMAGIC KERNELS LIST

    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title Other operating systems:
    root

    title Windows XP
    root (hd0,1)
    makeactive
    chainloader +1

    ------------------------------------------------------------------
    Any suggestions, please?

    To do all of the above, I followed instructions that posters kindly sent me here;

    The definitive dual-booting guide: Linux, Vista and XP step-by-step
    http://apcmag.com/the_definitive_dua...stepbystep.htm

    and here;

    -- How To GRUB Methods - Toolkit
    http://kubuntuforums.net/forums/inde...opic=3081671.0


    Thanks.

    #2
    Re: Cannot Boot Windows after Grubbing

    It seems to me that menu.lst is pointing to the wrong partition,
    Windows is on (hd0,0)
    Kubuntu is on (hd0,1)
    and your menu.lst says
    title Windows XP
    root (hd0,1)
    that should probably read
    Code:
    title Windows XP
    root (hd0,0)
    and mine has the following
    Code:
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title		Microsoft Windows XP Home Edition
    rootnoverify	(hd0,0)
    savedefault
    makeactive
    chainloader	+1
    I'm not sure, but i think that that's the standard command... at least, i haven't altered it.


    There are others here who know more about this than i do, maybe one will drop in soon, but 'til then, that's the best i can suggest.

    Comment


      #3
      Re: Cannot Boot Windows after Grubbing

      Yeah, that will most likely fix it, make the root directory be (hd0,0). You can edit that file with "kdesudo kate" ...

      Comment


        #4
        Re: Cannot Boot Windows after Grubbing

        Originally posted by SCBrazil
        Yes. kdesudo kate and...

        rootnoverify (hd0,0)
        savedefault
        makeactive
        chainloader +1

        ...did the trick.

        Many thanks guys.
        My boys will be arriving shortly. They go straight to Age of Empires III and Tibia before even saying hello. I was getting worried. If Windows hadn't booted they would have complained all weekend that I'd 'messed up' 'their' computer. Then they roll their eyes and say "again!" LOL.
        Well they obviously have their priorities right...

        Glad we could help.

        Comment

        Working...
        X