Results 1 to 5 of 5

Thread: Grub prompt after installing Windows 7

  1. #1
    Join Date
    Jul 2007
    Beans
    341

    Grub prompt after installing Windows 7

    So I just installed windows 7 to my comp and then tried of fix grub by booting from a live cd and running

    grub-install --root-directory=/mnt /dev/sda

    That command worked, but I was worried when I saw that I had no menu.lst or grub.cfg file in my /boot/grub.

    Now I can't get past the grub prompt.

    Here are my partitions

    sda1 /boot
    sda2 /
    sda3 windows xp
    sda4 windows 7

    What do I type into this grub prompt?

  2. #2
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: Grub prompt after installing Windows 7

    So from a booted live Ubuntu cd or thumbdrive lets see the bootscript read out; in my signature just click on it and follow the instructions. Come back to the thread and click on the # in the reply panel this makes code tags paste all the text in between.





  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub prompt after installing Windows 7

    Quote Originally Posted by u-slayer View Post
    So I just installed windows 7 to my comp and then tried of fix grub by booting from a live cd and running

    grub-install --root-directory=/mnt /dev/sda

    That command worked, but I was worried when I saw that I had no menu.lst or grub.cfg file in my /boot/grub.

    Now I can't get past the grub prompt.

    Here are my partitions

    sda1 /boot
    sda2 /
    sda3 windows xp
    sda4 windows 7

    What do I type into this grub prompt?
    Did you mount both your /boot and / partitions first:
    Code:
    sudo mount /dev/sda2 /mnt
    sudo mount /dev/sda1 /mnt/boot
    sudo grub-install --root-directory=/mnt /dev/sda
    If this doesn't fix it, please run the boot info script and post the contents of RESULTS.txt
    http://bootinfoscript.sourceforge.net
    Back to Xorg...

    Retired.

  4. #4
    Join Date
    Jul 2007
    Beans
    341

    Re: Grub prompt after installing Windows 7

    thansk drs305, that fixed it.

  5. #5
    Join Date
    Jun 2006
    Beans
    47

    Re: Grub prompt after installing Windows 7

    Thanks drs305. Your reply helped me too. In my case / and /boot was on the same partition. For that type of configuration, the the point to remember is root-directory parameter for grub-install should point to the mounted / and not to /boot/grub folder on mounted partition. HTH.

Tags for this Thread

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
  •