Results 1 to 4 of 4

Thread: grub file

  1. #1
    Join Date
    Jan 2009
    Beans
    5

    grub file

    i had just formated my laptop and made 3 5ogb partions on one i installed xp and it worked fine on the other i installed ubuntu 8.10 and it worked great then now i decided to install windows 7 on the third one so i went on reformated and installed it
    now when i turn on the laptop i cant go into ubuntu anymore i see both windows but no ubuntu
    i asked my friend about it and he said i need to get into grub file somehow and put a code in there
    can any one help me with that please?
    and if this is not the problem then what is the problem?
    thanks

  2. #2
    Join Date
    Sep 2005
    Location
    Melbourne, VIC, Australia
    Beans
    244
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: grub file

    When You boot, do you get the the grub choice of operating systems, i.e Ubuntu, WinXp and Vista?

  3. #3
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: grub file

    You overwrote the mbr when you installed Windows 7. To restore grub, get out your LiveCD and boot from it. Once at the desktop open an Applications-->Accessories-->Terminal and type:

    Code:
    sudo grub
    Once at the grub prompt type:

    Code:
    find /boot/grub/stage1
    This should result in something like this:

    Code:
    (hd0,1)
    For the next step type:

    Code:
    root (hd0,1)
    substitute the result of the find command for (hd0.1). Next type:

    Code:
    setup (hd0)
    Use the result of the find command without the partition number. Once the command has run type:

    Code:
    quit
    Reboot and you should have your grub menu back.

    Jim

  4. #4
    Join Date
    Jan 2009
    Beans
    5

    Re: grub file

    thank you jim
    gone to try it

Bookmarks

Posting Permissions

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