Find the answer to your Linux question:
Results 1 to 9 of 9
My linux partition is on SDB6, My windows partition is on SDA1. I recently installed windows xp again, so i went into rescue mode from the kubuntu dvd. i selected ...
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Norway
    Posts
    6

    Problem after GRUB reinstall

    My linux partition is on SDB6, My windows partition is on SDA1. I recently installed windows xp again, so i went into rescue mode from the kubuntu dvd. i selected SDB6 as root partition and after that i wrote "grub-install /dev/sda1"(where mbr is).

    grub was successfully reinstalled, but every time i select to boot windows xp it goes straight back to the grub menu, so only linux is bootable... where does the problem lie? tried MANY times :P

    Here's a part of my menu.ist file (/boot/grub):

    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Microsoft Windows XP Professional
    root (hd0,0)
    savedefault
    makeactive
    chainloader +1

  2. #2
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Did you try "grub-install /dev/sda" instead of "grub-install /dev/sda1"?

    /sda1 is the number of the 1st partition on the 1st hard drive.
    /sda is the first hard drive.

    You should aso check out Nerderellos grub tutorial, which can be found in the General Tutorials section.
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Location
    Norway
    Posts
    6
    tried both, with /sda1 and /sda. doing "fixmbr" after grub install on sda1 worked, but "fixmgr" after grub install sda idn't work (grub still starts)...

  4. #4
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    I am a little conused here.
    When you run "fixmbr" that will get rid of whatever is on the MBR and replace it with a Windows bootloader.

    Are you trying to create a dual-boot system or ....
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Location
    Norway
    Posts
    6
    no, but i tried to "fixmgr" before i reinstalled grub...

    btw, should i have a "grub.conf"-file in /boot/grub?

  6. #6
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Quote Originally Posted by Shamanix
    no, but i tried to "fixmgr" before i reinstalled grub...

    btw, should i have a "grub.conf"-file in /boot/grub?
    You should have a menu.lst file or a grub.conf file in /boot/grub. As long as you have 1, it doesn't matter which.

    And you are trying to run "fixmbr", not "fixmgr", right?
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  7. #7
    Just Joined!
    Join Date
    Aug 2005
    Location
    Norway
    Posts
    6
    yes, "mbr". even installed windows again last night, then installed grub, still the same...

    Could it be that i have serial-ata or linux on one hd and windows on another?

  8. #8
    Linux Engineer Nerderello's Avatar
    Join Date
    Apr 2003
    Location
    North East England
    Posts
    1,190
    try putting :-

    Code:
    title Microsoft Windoze XP
    rootnoverify (hd0,0)
    makeactive
    chainloader +1
    The rootnoverify statement says "this is where the operating system (OS) is, but don't verify that you can find one now, as it's a non-grub aware OS". The makeactive does just that, and then the chainloader statement says that the OS needs to be loaded in this way and that the first bit of the OS lives at block 1 on the hard disk that you already pointed to (with the rootnoverify).

    good luck

    Nerderello

    Use Suse 10.1 and occasionally play with Kubuntu
    Also have Windows 98SE and BeOS

  9. #9
    Just Joined!
    Join Date
    Aug 2005
    Location
    Norway
    Posts
    6
    didn't work

    maybe there's a problem with the HD, should i delete "everything" and make new partitions?

    title Ubuntu, kernel 2.6.10-5-k7
    root (hd1,5)
    kernel /boot/vmlinuz-2.6.10-5-k7 root=/dev/sdb6 ro quiet splash
    initrd /boot/initrd.img-2.6.10-5-k7
    savedefault
    boot

    title Ubuntu, kernel 2.6.10-5-k7 (recovery mode)
    root (hd1,5)
    kernel /boot/vmlinuz-2.6.10-5-k7 root=/dev/sdb6 ro single
    initrd /boot/initrd.img-2.6.10-5-k7
    savedefault
    boot

    title Ubuntu, kernel memtest86+
    root (hd1,5)
    kernel /boot/memtest86+.bin
    savedefault
    boot

    ### 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


    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sda1
    title Microsoft Windows XP Professional
    rootnoverify (hd0,0)
    savedefault
    makeactive
    chainloader +1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •