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:
Re: no grub in 10.04 after fresh install
Quote:
Originally Posted by
john newbuntu
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:~$
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
Re: no grub in 10.04 after fresh install
Quote:
Originally Posted by
john newbuntu
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
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/
Re: no grub in 10.04 after fresh install
Quote:
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.
Re: no grub in 10.04 after fresh install
Quote:
Originally Posted by
-kg-
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.
Re: no grub in 10.04 after fresh install
Quote:
Originally Posted by
trinidadflores
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.
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