Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: no grub in 10.04 after fresh install

  1. #11
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: no grub in 10.04 after fresh install

    Yeah, I would suggest fixing grub rather than re-installing. As corrytonapple pointed out in this link earlier, follow step 15 in that link and it should help. http://ubuntuforums.org/showthread.php?t=1195275

    Should you get stuck or confused, boot using your liveCD, open up a terminal (Applications->accessories->terminal), run the command and post the output of:
    Code:
    sudo fdisk -lu

  2. #12
    Join Date
    Feb 2009
    Beans
    144
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: no grub in 10.04 after fresh install

    Quote Originally Posted by john newbuntu View Post
    Code:
    sudo fdisk -lu
    here is the output of the above code

    ubuntu@ubuntu:~$ sudo fdisk -lu

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0006a879

    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 275627204 137813571 7 HPFS/NTFS
    /dev/sda2 275627205 283531184 3951990 7 HPFS/NTFS
    /dev/sda3 283531185 312576704 14522760 5 Extended
    /dev/sda5 283531248 312576704 14522728+ 83 Linux

    Disk /dev/sdb: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0fc8e150

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 625139711 312568832 7 HPFS/NTFS
    ubuntu@ubuntu:~$

  3. #13
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: no grub in 10.04 after fresh install

    When you get to the "grub rescue>" prompt that you showed in the picture, please enter the following commands one after the other. Some may take a few seconds to run. Should you encounter any problems, please write it down and post back:

    Code:
    set prefix=(hd0,5)/boot/grub
    set root=(hd0,5)
    ls /boot/
    insmod (hd0,5)/boot/grub/linux.mod
    linux /vmlinuz root=/dev/sda5 ro
    initrd /initrd.img
    boot
    Hopefully, this should boot you in. As soon as you boot in, enter the folllowing commands:

    Code:
    sudo update-grub
    sudo grub-install /dev/sda

  4. #14
    Join Date
    Feb 2009
    Beans
    144
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: no grub in 10.04 after fresh install

    Quote Originally Posted by john newbuntu View Post
    When you get to the "grub rescue>" prompt that you showed in the picture, please enter the following commands one after the other. Some may take a few seconds to run. Should you encounter any problems, please write it down and post back:

    Code:
    set prefix=(hd0,5)/boot/grub
    set root=(hd0,5)
    ls /boot/
    insmod (hd0,5)/boot/grub/linux.mod
    linux /vmlinuz root=/dev/sda5 ro
    initrd /initrd.img
    boot
    Hopefully, this should boot you in. As soon as you boot in, enter the folllowing commands:

    Code:
    sudo update-grub
    sudo grub-install /dev/sda

    I will give this a try and will report back and let you all know what happens

  5. #15
    Join Date
    Feb 2009
    Beans
    144
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: no grub in 10.04 after fresh install

    after i imput the following lines i get a error that says "cannot get C/H/S Values"
    Code:
    set prefix=(hd0,5)/boot/grub
    set root=(hd0,5)
    ls /boot/

  6. #16
    Join Date
    Sep 2008
    Location
    Godfrey, IL
    Beans
    1,008
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: no grub in 10.04 after fresh install

    Device Boot Start End Blocks Id System
    /dev/sda1 * 63 275627204 137813571 7 HPFS/NTFS
    /dev/sda2 275627205 283531184 3951990 7 HPFS/NTFS
    /dev/sda3 283531185 312576704 14522760 5 Extended
    /dev/sda5 283531248 312576704 14522728+ 83 Linux

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 2048 625139711 312568832 7 HPFS/NTFS
    What method did you use to install? I find it odd that you have no swap partition.
    73 from Glenn - KG5UC "Mungo just pawn in game of Life"
    Bump Thread Post #39000 - How To Partition

  7. #17
    Join Date
    Feb 2009
    Beans
    144
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: no grub in 10.04 after fresh install

    Quote Originally Posted by -kg- View Post
    What method did you use to install? I find it odd that you have no swap partition.
    I never use a swap. i have never had to in the past nor when i had 9.10 on here i never used it. so now just out of habit i dont set one up.

  8. #18
    Join Date
    Oct 2007
    Location
    KMRY/KASE
    Beans
    138
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: no grub in 10.04 after fresh install

    Quote Originally Posted by trinidadflores View Post
    I never use a swap. i have never had to in the past nor when i had 9.10 on here i never used it. so now just out of habit i dont set one up.
    Did not realize that Ubuntu would run well (or at all) without a swap.
    PLEASE Don't leave those trying to help you hanging.
    Report Success, Failure or Giving up.
    MARK as SOLVED if it is.
    Help others help you by reading THIS THREAD first.

  9. #19
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: no grub in 10.04 after fresh install

    There are a few things you could try when you get the "cannot get C/H/S Values" error:

    1. Continue with the other commands I gave.

    2. If that does not work, instead of:
    insmod (hd0,5)/boot/grub/linux.mod
    try:
    insmod /boot/grub/linux.mod

    3. instead of: insmod (hd0,5)/boot/grub/linux.mod, try:
    Code:
       insmod normal
       normal
    4. instead of: insmod (hd0,5)/boot/grub/linux.mod, try:
    Code:
       insmod linux
       normal
    5. Take a look at what oldfred suggests in this post(setting hard disk to auto in BIOS):
    http://ubuntuforums.org/showthread.php?t=1336849

Page 2 of 2 FirstFirst 12

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
  •