PDA

View Full Version : [SOLVED] Win7 and Ubuntu 9.10 with GRUB2



IAmNotAUser
December 11th, 2009, 03:02 AM
I've been dual-booting my laptop and recently decided to upgrade from 9.04 to 9.10 but figured I'd do a system wipe as the machine was in need of a cleanup anyways.

I previously had Windows 7 installed on the first hard drive, second partition, and I reinstalled Ubuntu on the second hard drive, with /boot on the first hard drive, first partition.

I mount my Windows folder inside Ubuntu as /mnt/Win7.

However, GRUB 2 refuses to see my Win7 install. I repeatedly run update-grub and nothing appears, I have checked that os_probe is fully up to date, but still nothing.

I used this script http://erickoo.wordpress.com/2009/06/14/how-to-add-vista-partition-to-grub-2-ubuntu-9-10-karmic-koala/ to add an entry to the grub.cfg file, adjusting so that I reference (0,2) for my Win partition.

On reboot, GRUB does not show my Windows entry at all. So after some Googling, I found this https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/402795 which effectively says update the grub package, which I have done, and on reboot, still no avail. What am I doing wrong?

Here is the cat of my /boot/grub/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=(hd1,5)
search --no-floppy --fs-uuid --set 0528db44-fa50-4df9-9f9b-1136d11eb6b4
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-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-15-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=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /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,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry “Windows 7″ {
set root=(hd0,2)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

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

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

oldfred
December 11th, 2009, 06:55 AM
If you had a new install of win7 did it have a 100mb boot partition at sda1? That would not be a boot partition for Ubuntu. You normally do not need or want a separate boot partition for Ubuntu unless you have an old system with BIOS limits on hard drive size.

darkod
December 11th, 2009, 01:00 PM
menuentry "Ubuntu, Linux 2.6.31-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-16-generic
}

It does seem like you have separate /boot. Since you have two drives, are you sure you are booting the new and updated grub2 or maybe older grub on the other disk?

IAmNotAUser
December 11th, 2009, 05:58 PM
If you had a new install of win7 did it have a 100mb boot partition at sda1? That would not be a boot partition for Ubuntu. You normally do not need or want a separate boot partition for Ubuntu unless you have an old system with BIOS limits on hard drive size.

Yes, thinking back, I did have a 100mb partition at sda1. However, in my old setup that was my GRUB partition. Did Windows rewrite over that as it's own boot, which I've now deleted?

*gulp*

I removed the older grub, completely formatted the partition, so it shouldn't be using that.

Calorus
December 11th, 2009, 06:19 PM
Probably not, as I'm in the same boat and I haven't...

Mine fell apart after upgrading to 2.6.31-16 and I'm in desperate need of assistance, too...

darkod
December 11th, 2009, 06:34 PM
Yes, thinking back, I did have a 100mb partition at sda1. However, in my old setup that was my GRUB partition. Did Windows rewrite over that as it's own boot, which I've now deleted?

*gulp*

I removed the older grub, completely formatted the partition, so it shouldn't be using that.

If you open Gparted from the ubuntu cd it will show you the filesystem on /dev/sda1. It should clear the dilemma if it's ntfs or ext4.

themusicalduck
December 11th, 2009, 06:39 PM
Do you have any kind of raid setup in your system?

There was a bug with grub that meant it couldn't properly see raids, then again it usually effects the Ubuntu installer too, so if you installed Karmic fine then it might not be it.

Still, a fix to try might be to remove the dmraid package with
sudo apt-get remove dmraid

IAmNotAUser
December 11th, 2009, 07:15 PM
If you open Gparted from the ubuntu cd it will show you the filesystem on /dev/sda1. It should clear the dilemma if it's ntfs or ext4.

It's ext4, as I knew it would be before I checked because that's where I formatted and installed my /boot. Was there meant to be a NTFS partition there that Windows 7 installed over my old 9.04 /boot that was there previously?

darkod
December 11th, 2009, 07:21 PM
It's ext4, as I knew it would be before I checked because that's where I formatted and installed my /boot. Was there meant to be a NTFS partition there that Windows 7 installed over my old 9.04 /boot that was there previously?

It might have been the 100MB win7 partition. In that case no wonder it's not finding your win7 because the boot files should be on the 100MB partition.
To make sure you can download the script in my signature, move it to the desktop for example, and in terminal run it with:
sudo bash ~/Desktop/boot_info_script*.sh

It will create results.txt file. Look into the results towards the top whether thee are win7 boot files like /bootmgr and /boot/BCD in your win7 partition.
If you're confused post the content here and wrap CODE tags around it (hit the # button in the toolbar above).

IAmNotAUser
December 11th, 2009, 08:07 PM
I don't see the things you mention, so here is the RESULTS.txt file


============================= Boot Info Summary: ==============================

=> Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #1 for /grub.
=> Grub 0.97 is installed in the MBR of /dev/sdb and looks on the same drive
in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdb2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sdb5: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb7: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

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
Disk identifier: 0x28784fd5

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 206,847 204,800 83 Linux
/dev/sda2 206,848 312,578,047 312,371,200 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x132955c5

Partition Boot Start End Size Id System

/dev/sdb1 * 63 156,569,489 156,569,427 7 HPFS/NTFS
/dev/sdb2 156,569,490 312,576,704 156,007,215 5 Extended
/dev/sdb5 215,158,608 303,050,159 87,891,552 83 Linux
/dev/sdb6 303,050,223 312,576,704 9,526,482 82 Linux swap / Solaris
/dev/sdb7 156,569,616 215,158,544 58,588,929 83 Linux


blkid -c /dev/null: __________________________________________________ __________

/dev/sda1: UUID="497d4b80-162d-432d-9b74-96c3c3d56f37" TYPE="ext4"
/dev/sda2: UUID="7CEC793CEC78F1AE" TYPE="ntfs"
/dev/sdb1: UUID="4C9C6C4C9C6C331E" LABEL="DATA" TYPE="ntfs"
/dev/sdb5: UUID="0528db44-fa50-4df9-9f9b-1136d11eb6b4" TYPE="ext4"
/dev/sdb6: UUID="30f43558-907c-4e39-b7fd-a25965387b53" TYPE="swap"
/dev/sdb7: UUID="9f57efe9-6dc2-4edd-a1fa-3dc5a0fa6607" TYPE="ext4"

=============================== "mount" output: ===============================

/dev/sdb5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda1 on /boot type ext4 (rw)
/dev/sdb1 on /mnt/HD2 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
/dev/sda2 on /mnt/Win7 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
/dev/sdb7 on /home type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/doug/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=doug)


============================= sda1/grub/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=(hd1,5)
search --no-floppy --fs-uuid --set 0528db44-fa50-4df9-9f9b-1136d11eb6b4
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-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-15-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=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /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,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry “Windows 7″ {
set root=(hd0,2)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

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

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=================== sda1: Location of files loaded by Grub: ===================


.0GB: grub/grub.cfg
.0GB: initrd.img-2.6.31-14-generic
.0GB: initrd.img-2.6.31-15-generic
.0GB: initrd.img-2.6.31-16-generic
.0GB: vmlinuz-2.6.31-14-generic
.0GB: vmlinuz-2.6.31-15-generic
.0GB: vmlinuz-2.6.31-16-generic

=========================== sdb5/boot/grub/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=(hd1,5)
search --no-floppy --fs-uuid --set 0528db44-fa50-4df9-9f9b-1136d11eb6b4
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-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-15-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=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /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,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry “Windows 7″ {
set root=(hd0,2)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

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

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=============================== sdb5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb5 during installation
UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=497d4b80-162d-432d-9b74-96c3c3d56f37 /boot ext4 defaults 0 2
# /home was on /dev/sdb7 during installation
UUID=9f57efe9-6dc2-4edd-a1fa-3dc5a0fa6607 /home ext4 defaults 0 2
# /mnt/HD2 was on /dev/sdb1 during installation
UUID=4C9C6C4C9C6C331E /mnt/HD2 ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# /mnt/Win7 was on /dev/sda2 during installation
UUID=7CEC793CEC78F1AE /mnt/Win7 ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# swap was on /dev/sdb6 during installation
UUID=30f43558-907c-4e39-b7fd-a25965387b53 none swap sw 0 0

=================== sdb5: Location of files loaded by Grub: ===================


110.1GB: boot/grub/grub.cfg
110.1GB: boot/initrd.img-2.6.31-14-generic
110.1GB: boot/initrd.img-2.6.31-15-generic
110.1GB: boot/initrd.img-2.6.31-16-generic
110.1GB: boot/vmlinuz-2.6.31-14-generic
110.1GB: boot/vmlinuz-2.6.31-15-generic
110.1GB: boot/vmlinuz-2.6.31-16-generic
110.1GB: initrd.img
110.1GB: initrd.img.old
110.1GB: vmlinuz
110.1GB: vmlinuz.old

presence1960
December 11th, 2009, 08:25 PM
I don't see the things you mention, so here is the RESULTS.txt file


============================= Boot Info Summary: ==============================

=> Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #1 for /grub.
=> Grub 0.97 is installed in the MBR of /dev/sdb and looks on the same drive
in partition #6 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs: /grub/grub.cfg /grub/core.img

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdb2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sdb5: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb7: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

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
Disk identifier: 0x28784fd5

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 206,847 204,800 83 Linux
/dev/sda2 206,848 312,578,047 312,371,200 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x132955c5

Partition Boot Start End Size Id System

/dev/sdb1 * 63 156,569,489 156,569,427 7 HPFS/NTFS
/dev/sdb2 156,569,490 312,576,704 156,007,215 5 Extended
/dev/sdb5 215,158,608 303,050,159 87,891,552 83 Linux
/dev/sdb6 303,050,223 312,576,704 9,526,482 82 Linux swap / Solaris
/dev/sdb7 156,569,616 215,158,544 58,588,929 83 Linux


blkid -c /dev/null: __________________________________________________ __________

/dev/sda1: UUID="497d4b80-162d-432d-9b74-96c3c3d56f37" TYPE="ext4"
/dev/sda2: UUID="7CEC793CEC78F1AE" TYPE="ntfs"
/dev/sdb1: UUID="4C9C6C4C9C6C331E" LABEL="DATA" TYPE="ntfs"
/dev/sdb5: UUID="0528db44-fa50-4df9-9f9b-1136d11eb6b4" TYPE="ext4"
/dev/sdb6: UUID="30f43558-907c-4e39-b7fd-a25965387b53" TYPE="swap"
/dev/sdb7: UUID="9f57efe9-6dc2-4edd-a1fa-3dc5a0fa6607" TYPE="ext4"

=============================== "mount" output: ===============================

/dev/sdb5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda1 on /boot type ext4 (rw)
/dev/sdb1 on /mnt/HD2 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
/dev/sda2 on /mnt/Win7 type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
/dev/sdb7 on /home type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/doug/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=doug)


============================= sda1/grub/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=(hd1,5)
search --no-floppy --fs-uuid --set 0528db44-fa50-4df9-9f9b-1136d11eb6b4
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-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-15-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=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /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,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry “Windows 7″ {
set root=(hd0,2)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

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

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=================== sda1: Location of files loaded by Grub: ===================


.0GB: grub/grub.cfg
.0GB: initrd.img-2.6.31-14-generic
.0GB: initrd.img-2.6.31-15-generic
.0GB: initrd.img-2.6.31-16-generic
.0GB: vmlinuz-2.6.31-14-generic
.0GB: vmlinuz-2.6.31-15-generic
.0GB: vmlinuz-2.6.31-16-generic

=========================== sdb5/boot/grub/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=(hd1,5)
search --no-floppy --fs-uuid --set 0528db44-fa50-4df9-9f9b-1136d11eb6b4
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-16-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-16-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-16-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-16-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /initrd.img-2.6.31-15-generic
}
menuentry "Ubuntu, Linux 2.6.31-15-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-15-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-15-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=(hd0,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro quiet splash
initrd /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,1)
search --no-floppy --fs-uuid --set 497d4b80-162d-432d-9b74-96c3c3d56f37
linux /vmlinuz-2.6.31-14-generic root=UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/11_Windows ###
menuentry “Windows 7″ {
set root=(hd0,2)
chainloader +1
}
### END /etc/grub.d/11_Windows ###

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

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=============================== sdb5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sdb5 during installation
UUID=0528db44-fa50-4df9-9f9b-1136d11eb6b4 / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=497d4b80-162d-432d-9b74-96c3c3d56f37 /boot ext4 defaults 0 2
# /home was on /dev/sdb7 during installation
UUID=9f57efe9-6dc2-4edd-a1fa-3dc5a0fa6607 /home ext4 defaults 0 2
# /mnt/HD2 was on /dev/sdb1 during installation
UUID=4C9C6C4C9C6C331E /mnt/HD2 ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# /mnt/Win7 was on /dev/sda2 during installation
UUID=7CEC793CEC78F1AE /mnt/Win7 ntfs defaults,nls=utf8,umask=007,gid=46 0 0
# swap was on /dev/sdb6 during installation
UUID=30f43558-907c-4e39-b7fd-a25965387b53 none swap sw 0 0

=================== sdb5: Location of files loaded by Grub: ===================


110.1GB: boot/grub/grub.cfg
110.1GB: boot/initrd.img-2.6.31-14-generic
110.1GB: boot/initrd.img-2.6.31-15-generic
110.1GB: boot/initrd.img-2.6.31-16-generic
110.1GB: boot/vmlinuz-2.6.31-14-generic
110.1GB: boot/vmlinuz-2.6.31-15-generic
110.1GB: boot/vmlinuz-2.6.31-16-generic
110.1GB: initrd.img
110.1GB: initrd.img.old
110.1GB: vmlinuz
110.1GB: vmlinuz.old

Windows 7 is missing some boot files. You will need the install DVD and follow these instructions (http://ubuntuforums.org/showthread.php?t=1014708) to restore the Win 7 bootloader.

That will overwrite GRUB in the MBR so you will have to restore GRUB. Do this (https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD) to restore GRUB 2. Please note the section that applies to a separate /boot partition as that does apply to you!

darkod
December 11th, 2009, 08:25 PM
I think it's safe to say you overwrote your 100MB win7 boot partition. Is there any particular reason you wanted that separate /boot partition and on /dev/sda while your Ubuntu install is on /dev/sdb?
I am asking because you also have some (I guess older) grub1 on the MBR of /dev/sdb.
What you could do, is repairing the win7 boot process. Set the windows disk as first in boot order in BIOS first. Restore details here:
http://ubuntuforums.org/showthread.php?t=1014708

That will put the windows bootloader on the MBR of /dev/sda.

Then you have to make the choice if you will restore grub2 to /dev/sda or /dev/sdb. If it's /dev/sdb, again go into BIOS and this time set the ubuntu drive as first boot choice. Then boot with the ubuntu cd, Try Ubuntu option and in terminal do:
sudo mount /dev/sdb5 /mnt
sudo mount /dev/sda1 /mnt/boot
sudo grub-install --root-directory=/mnt/ /dev/sdb

Grub2 should be installed on the MBR of /dev/sdb. Reboot without the cd and see how it works. You might need to update grub, in terminal run:
sudo update-grub

If you decide to leave grub2 on the MBR of /dev/sda in the last command above use /dev/sda instead of /dev/sdb. The first two remain the same.

IAmNotAUser
December 12th, 2009, 06:26 PM
I think it's safe to say you overwrote your 100MB win7 boot partition. Is there any particular reason you wanted that separate /boot partition and on /dev/sda while your Ubuntu install is on /dev/sdb?
I am asking because you also have some (I guess older) grub1 on the MBR of /dev/sdb.
What you could do, is repairing the win7 boot process. Set the windows disk as first in boot order in BIOS first. Restore details here:
http://ubuntuforums.org/showthread.php?t=1014708

That will put the windows bootloader on the MBR of /dev/sda.

Then you have to make the choice if you will restore grub2 to /dev/sda or /dev/sdb. If it's /dev/sdb, again go into BIOS and this time set the ubuntu drive as first boot choice. Then boot with the ubuntu cd, Try Ubuntu option and in terminal do:
sudo mount /dev/sdb5 /mnt
sudo mount /dev/sda1 /mnt/boot
sudo grub-install --root-directory=/mnt/ /dev/sdb

Grub2 should be installed on the MBR of /dev/sdb. Reboot without the cd and see how it works. You might need to update grub, in terminal run:
sudo update-grub

If you decide to leave grub2 on the MBR of /dev/sda in the last command above use /dev/sda instead of /dev/sdb. The first two remain the same.

I bit the bullet and reinstalled Windows from scratch, it was not able to be recovered by the CD, it gave me errors, and told me there was no operating system.

I then did the commands you told me, installing GRUB to sdb and restarted. The computer boots straight into Windows, no GRUB.

Any suggestions now? Doing the update-grub inside the Live USB gives me


grub-probe: error: cannot find a device for /.

EDIT: Also, I am unable to set my BIOS to boot from an individual hard drive, both of them show up as a single drive inside the BIOS as "Notebook Hard Drive"

darkod
December 12th, 2009, 06:34 PM
I bit the bullet and reinstalled Windows from scratch, it was not able to be recovered by the CD, it gave me errors, and told me there was no operating system.

I then did the commands you told me, installing GRUB to sdb and restarted. The computer boots straight into Windows, no GRUB.

Any suggestions now? Doing the update-grub inside the Live USB gives me


grub-probe: error: cannot find a device for /.

It boots straight into windows because your windows drive is first in boot order in BIOS. Go into BIOS and set your ubuntu drive to be first and it should be fine. It should have the windows option in the boot menu even without doing update-grub.

Note: you can't use update-grub just like that in LiveCD because that's temporary ubuntu running from the CD, not your ubuntu hdd install.

darkod
December 12th, 2009, 06:36 PM
EDIT: Also, I am unable to set my BIOS to boot from an individual hard drive, both of them show up as a single drive inside the BIOS as "Notebook Hard Drive"

Hmmm... look around more carefully in the BIOS, it should allow you to do that. Is this a notebook? How can you fit two drives in it?

In the worst case, redo the grub2 install commands and put it on /dev/sda but that's the last option. If you want to, look around to set the other drive as boot first.

IAmNotAUser
December 12th, 2009, 06:46 PM
Hmmm... look around more carefully in the BIOS, it should allow you to do that. Is this a notebook? How can you fit two drives in it?

In the worst case, redo the grub2 install commands and put it on /dev/sda but that's the last option. If you want to, look around to set the other drive as boot first.

Yea, it's a notebook with 2 physical hard drives inside it. If I remember correctly, it was the reason I originally installed /boot to the first hard drive.

There definitely isn't an option to choose between the 2 hard drives inside the BIOS.

I'll try the sda approach, that command won't overwrite that 100mb Win7 partition, will it?

darkod
December 12th, 2009, 06:49 PM
Yea, it's a notebook with 2 physical hard drives inside it. If I remember correctly, it was the reason I originally installed /boot to the first hard drive.

There definitely isn't an option to choose between the 2 hard drives inside the BIOS.

I'll try the sda approach, that command won't overwrite that 100mb Win7 partition, will it?

Nope, that command only writes small part of grub2 on the MBR (that's why you use /dev/sda in the command and not /dev/sda1), and then it's finding the rest of grub2 on the ubuntu partition.
Your 100MB partition, /dev/sda1, is safe, I have it on my netbook.

IAmNotAUser
December 12th, 2009, 06:56 PM
Nope, that command only writes small part of grub2 on the MBR (that's why you use /dev/sda in the command and not /dev/sda1), and then it's finding the rest of grub2 on the ubuntu partition.
Your 100MB partition, /dev/sda1, is safe, I have it on my netbook.

Yea, I figured, in the same way as doing the setup(hd0) command in the old grub?

I just wanted to make sure before I did something stupid again :P

Thanks for your help, I'll try that now.

IAmNotAUser
December 12th, 2009, 06:59 PM
Thinking about it; doing the command


sudo mount /dev/sda1 /mnt/bootafter reinstalling Windows, grub won't be there, so what is the purpose of it?

I have done the commands, substituting sdb for sda. Upon restart, it gives the "GRUB loading..." output and then goes to a grub shell:


GNU GRUB Version 1.97~beta4

sh:grub>

Any ideas what to do from there?

darkod
December 12th, 2009, 07:55 PM
Did you get any warning during grub reinstall? I just remembered that if you deleted the /boot partition during the windows reinstall that would make restoring grub difficult if not impossible.
Grub config files were there and also ubuntu kernels. I'm trying to find something on google about this situation but nothing so far. :(

IAmNotAUser
December 12th, 2009, 08:00 PM
No, it told me there were no errors.

I guess I'm reinstalling Ubuntu then? That's not an issue, it was a pretty fresh install anyways - don't trouble yourself if a reinstall is the easiest option.

Thanks for all your help. :)

darkod
December 12th, 2009, 08:04 PM
No, it told me there were no errors.

I guess I'm reinstalling Ubuntu then? That's not an issue, it was a pretty fresh install anyways - don't trouble yourself if a reinstall is the easiest option.

Thanks for all your help. :)

Looks like that. Sorry, I'm not experienced enough to know how to return it with deleted /boot partition. This time you don't need separate /boot. Your choice.