Please help me fix my Grub in Ubuntu 9.10 Karmic Koala

foozball3000

Executive Member
Joined
Oct 28, 2008
Messages
5,827
Please help me set up my Grub in Ubuntu 9.10 Karmic Koala

So, here's my set up:
200gb HDD, 2 partitions. Each with it's own copy of Windows XP.
80 gb HDD with Ubuntu on.
500gb HDD with all my files and other things.

But after I updated my Grub, it won't boot any of my partitions. And I've tried various methods to fix it. All I keep getting is either, Error, File Doesn't exist or Partition doesn't exist.

Now I'm fed up and tired. I love Ubuntu... but this is crazy

Please Help

Thread on Ubuntuforums: http://ubuntuforums.org/showthread.php?t=1400545
 
Last edited:

foozball3000

Executive Member
Joined
Oct 28, 2008
Messages
5,827
Well, with Grub2 it's the grub.cfg file:
Code:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd2,2)
search --no-floppy --fs-uuid --set 220195fc-984f-48df-b3fe-44818d49ef5a
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-19-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd2,2)
	search --no-floppy --fs-uuid --set 220195fc-984f-48df-b3fe-44818d49ef5a
	linux	/boot/vmlinuz-2.6.31-19-generic root=UUID=220195fc-984f-48df-b3fe-44818d49ef5a ro splash vga=789  quiet splash
	initrd	/boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-19-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd2,2)
	search --no-floppy --fs-uuid --set 220195fc-984f-48df-b3fe-44818d49ef5a
	linux	/boot/vmlinuz-2.6.31-19-generic root=UUID=220195fc-984f-48df-b3fe-44818d49ef5a ro single splash vga=789
	initrd	/boot/initrd.img-2.6.31-19-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	set quiet=1
	insmod ext2
	set root=(hd2,2)
	search --no-floppy --fs-uuid --set 220195fc-984f-48df-b3fe-44818d49ef5a
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=220195fc-984f-48df-b3fe-44818d49ef5a ro splash vga=789  quiet splash
	initrd	/boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
        recordfail=1
        if [ -n ${have_grubenv} ]; then save_env recordfail; fi
	insmod ext2
	set root=(hd2,2)
	search --no-floppy --fs-uuid --set 220195fc-984f-48df-b3fe-44818d49ef5a
	linux	/boot/vmlinuz-2.6.31-14-generic root=UUID=220195fc-984f-48df-b3fe-44818d49ef5a ro single splash vga=789
	initrd	/boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (loader) (on /dev/sdb1)" {
	insmod ntfs
	set root=(hd1,1)
	search --no-floppy --fs-uuid --set 6a8c25528c251a59
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/grub/grub-mkconfig_lib
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows XP2" {
EOF
save_default_entry | sed -e "s/^/\t/"
cat << EOF
insmod ntfs
set root=(hd1,1)
search --no-floppy --fs-uuid --set q67e48fd884ds522
chainloader +1
} 

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
. ${libdir}/grub/grub-mkconfig_lib
echo "Adding Windows" >&2
cat << EOF
menuentry "Windows XP3" {
EOF
save_default_entry | sed -e "s/^/\t/"
cat << EOF
insmod ntfs
set root=(hd1,2)
search --no-floppy --fs-uuid --set q67e48fd884ds522
chainloader +1
} 
### END /etc/grub.d/40_custom ###

and the fdisk result:
Code:
ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
16 heads, 63 sectors/track, 969021 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x7e213b0c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1      969021   488386552+  42  SFS

Disk /dev/sdb: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x7c7d7c7d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       12748   102398278+   7  HPFS/NTFS
/dev/sdb2           12749       24320    92952090    f  W95 Ext'd (LBA)
/dev/sdb5           12749       24320    92952058+   7  HPFS/NTFS

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x014f014f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            7297        9729    19543072+   5  Extended
/dev/sdc2   *           1        7296    58605088+  83  Linux
/dev/sdc5            7298        9729    19535040   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdd: 8027 MB, 8027897856 bytes
5 heads, 32 sectors/track, 97996 cylinders
Units = cylinders of 160 * 512 = 81920 bytes
Disk identifier: 0x30143013

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *          51       97997     7835712    b  W95 FAT32
 

foozball3000

Executive Member
Joined
Oct 28, 2008
Messages
5,827
Yes, I've tried re-installing it several times. But no luck.
/heads off to the Ubuntuforums
 

I am Penguin

Executive Member
Joined
Jan 26, 2009
Messages
7,713
And I just started off with Linux > Kubuntu Karmic on VMware! Sight! When will Microsoft release a Linux distro version!

So far nearly so good but I miss the ease of windoze already when I am in the Linux environment for less 5minutes!
 
Last edited:

concentricpuddle

Well-Known Member
Joined
Jul 8, 2009
Messages
241
I'm assuming you can't boot into Ubuntu. If that's not the case, ignore.

Although the Ubuntu drive is third in the drive order, it becomes first when you boot from that hard disk. So instead of set root=(hd2,2), you should have set root=(hd0,2).

Disclaimer: I'm just guessing.
 

foozball3000

Executive Member
Joined
Oct 28, 2008
Messages
5,827
The issue isn't that it can't map the right partition, but that it can't read the partitions. Updated the OP
 
Top