PDA

View Full Version : [ubuntu] Failed dualboot - Busted my bootloader



Treepwood
December 24th, 2009, 10:07 AM
I think I have gone and done something stupid. I have tried to install Ubuntu 9.10 in dualboot with Win 7. Win 7 was installed first on one drive, and I wanted Ubuntu on a second drive. I made a new partition on the second drive on which I installed Ubuntu, and the next part is where I think I messed up. In the install menu I selected to install Grub in the same place it told my I had my windows loader. Now when I boot my computer I get a black screen with the text GRUB and a cursor in the upper left corner. I cant write anything and it does not respond to any keystrokes. Only thing to do is press reset button.

I am currently loaded up on my LiveCD.

My fdisk is as follows:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x28004b99

Device Boot Start End Blocks Id System
/dev/sda1 * 1 98769 793361961 7 HPFS/NTFS
/dev/sda2 98770 121601 183398040 5 Extended
/dev/sda5 98770 120670 175919751 83 Linux
/dev/sda6 120671 121601 7478226 82 Linux swap / Solaris

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
224 heads, 19 sectors/track, 229504 cylinders
Units = cylinders of 4256 * 512 = 2179072 bytes
Disk identifier: 0x48564855

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 49 102400 7 HPFS/NTFS
/dev/sdb2 49 229504 488281088 7 HPFS/NTFS

Win 7 is installed on sdb1

Treepwood
December 24th, 2009, 10:12 AM
My grub.cfg:

#
# 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=(hd0,5)
search --no-floppy --fs-uuid --set cdf0bff7-a9c0-47b7-a2f9-33ba73a51830
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-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set cdf0bff7-a9c0-47b7-a2f9-33ba73a51830
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=cdf0bff7-a9c0-47b7-a2f9-33ba73a51830 ro 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=(hd0,5)
search --no-floppy --fs-uuid --set cdf0bff7-a9c0-47b7-a2f9-33ba73a51830
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=cdf0bff7-a9c0-47b7-a2f9-33ba73a51830 ro single
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 7 (loader) (on /dev/sdb1)" {
insmod ntfs
set root=(hd1,1)
search --no-floppy --fs-uuid --set c8148cde148cd13c
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.
### END /etc/grub.d/40_custom ###

Treepwood
December 24th, 2009, 10:35 AM
Win 7 bootloader restored, but still no contact to Ubuntu.