PDA

View Full Version : [ubuntu] Installed Windows 7 and Ubuntu on seperate HDD, win 7 boot problem



ALex_cv
January 15th, 2010, 11:39 AM
Hello, I have the problem with booting Windows 7 from grub loader.
When I select windows 7 while booting, appers black screen with "GRUB _ " and that's all.

Here is my fdisk -l

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x93cf5dd5

Device Boot Start End Blocks ID System
/dev/sda1 * 1 5875 47190906 7 HPFS/NTFS
/dev/sda2 5876 91201 685381095 5 Extended
/dev/sda5 5876 38511 262148638+ 7 HPFS/NTFS
/dev/sda6 38512 91201 423232393+ 7 HPFS/NTFS

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00038ed8

Device Boot Start End Blocks ID System
/dev/sdb2 * 2 60801 488376000 5 Extended
/dev/sdb5 2 34639 278229703+ 7 HPFS/NTFS
/dev/sdb6 34640 57484 183502431 7 HPFS/NTFS
/dev/sdb7 * 57485 60801 26643771 83 Linux
/dev/sda1 - Windows 7 x64
/dev/sdb7 - Ubuntu 9.10 amd64

grub.conf

#
# 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,7)
search --no-floppy --fs-uuid --set 89b1127e-4ec8-44f8-be9c-6327187560b2
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-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 89b1127e-4ec8-44f8-be9c-6327187560b2
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=89b1127e-4ec8-44f8-be9c-6327187560b2 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 89b1127e-4ec8-44f8-be9c-6327187560b2
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=89b1127e-4ec8-44f8-be9c-6327187560b2 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 606e30136e2fe090
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 ###and Results of Boot Info Script

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

=> Grub 1.97 is installed in the MBR of /dev/sda and looks for
(UUID=89b1127e-4ec8-44f8-be9c-6327187560b2)/boot/grub.
=> No boot loader is installed in the MBR of /dev/sdb
sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Grub 1.97
Boot sector info: Grub 1.97 is installed in the boot sector of sda1 and
looks at sector 933493731 of the same hard drive for
core.img, but core.img can not be found at this
location. No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files/dirs:

sda6: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sda6 starts
at sector 63.
Operating System:
Boot files/dirs:

sdb2: __________________________________________________ _______________________

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

sdb5: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sdb5 starts
at sector 63.
Operating System:
Boot files/dirs:

sdb6: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: According to the info in the boot sector, sdb6 starts
at sector 63.
Operating System:
Boot files/dirs:

sdb7: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Диск /dev/sda: 750.2 Гб, 750156374016 байт
255 heads, 63 sectors/track, 91201 cylinders, загалом 1465149168 секторів
Units = сектори of 1 * 512 = 512 bytes
Disk identifier: 0x93cf5dd5

Partition Boot Start End Size Id System

/dev/sda1 * 63 94,381,874 94,381,812 7 HPFS/NTFS
/dev/sda2 94,381,875 1,465,144,064 1,370,762,190 5 Extended
/dev/sda5 94,381,938 618,679,214 524,297,277 7 HPFS/NTFS
/dev/sda6 618,679,278 1,465,144,064 846,464,787 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Диск /dev/sdb: 500.1 Гб, 500107862016 байт
255 heads, 63 sectors/track, 60801 cylinders, загалом 976773168 секторів
Units = сектори of 1 * 512 = 512 bytes
Disk identifier: 0x00038ed8

Partition Boot Start End Size Id System

/dev/sdb2 * 16,065 976,768,064 976,752,000 5 Extended
/dev/sdb5 16,128 556,475,534 556,459,407 7 HPFS/NTFS
/dev/sdb6 556,475,598 923,480,459 367,004,862 7 HPFS/NTFS
/dev/sdb7 * 923,480,523 976,768,064 53,287,542 83 Linux


blkid -c /dev/null: __________________________________________________ __________

/dev/sda1: UUID="606E30136E2FE090" LABEL="System" TYPE="ntfs"
/dev/sda5: UUID="BC3A64FF3A64B7D2" LABEL="Hard" TYPE="ntfs"
/dev/sda6: UUID="0774E4A0E2C9DADB" LABEL="Music" TYPE="ntfs"
/dev/sdb5: UUID="660A26EB271FCD38" LABEL="VCD" TYPE="ntfs"
/dev/sdb6: UUID="0C4056344056252C" LABEL="Else" TYPE="ntfs"
/dev/sdb7: UUID="89b1127e-4ec8-44f8-be9c-6327187560b2" TYPE="ext3"

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

/dev/sdb7 on / type ext3 (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)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/alex/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=alex)
/dev/sda1 on /media/System type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)


=========================== sdb7/boot/grub/menu.lst: ===========================

title Windows
root (hd0,1)
makeactive
chainloader +1

=========================== sdb7/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,7)
search --no-floppy --fs-uuid --set 89b1127e-4ec8-44f8-be9c-6327187560b2
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-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 89b1127e-4ec8-44f8-be9c-6327187560b2
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=89b1127e-4ec8-44f8-be9c-6327187560b2 ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,7)
search --no-floppy --fs-uuid --set 89b1127e-4ec8-44f8-be9c-6327187560b2
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=89b1127e-4ec8-44f8-be9c-6327187560b2 ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 606e30136e2fe090
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 ###

=============================== sdb7/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/sdb7 during installation
UUID=89b1127e-4ec8-44f8-be9c-6327187560b2 / ext3 errors=remount-ro 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

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


472.8GB: boot/grub/core.img
472.8GB: boot/grub/grub.cfg
472.8GB: boot/grub/menu.lst
472.8GB: boot/initrd.img-2.6.31-17-generic
472.8GB: boot/vmlinuz-2.6.31-17-generic
472.8GB: initrd.img
472.8GB: vmlinuzI have deleted memtest86+ by myself, have switched drives in BIOS, but no result.

Can anybody help?
p.s. sorry for my english.

darkod
January 15th, 2010, 12:21 PM
You can see at the top of the results file you have grub2 also installed on /dev/sda1, your win7 partition. That is creating the error.
Make the win7 disk first in BIOS hdd boot order. Then use your win7 dvd and the procedure to reinstall win7 bootloader from here:
http://ubuntuforums.org/showthread.php?t=1014708

If you don't have win7 dvd you can get repair cd image here:
http://neosmart.net/blog/2009/windows-7-system-repair-discs/

That should repair your win7 boot sector. Check if win7 is booting correctly, your computer should boot win7 straight away, no option for ubuntu but don't worry about it.

After this is successful, again go into BIOS and make the ubuntu disk as first in hdd boot order. Boot with the ubuntu 9.10 cd, Try Ubuntu option, and in terminal execute:

sudo mount /dev/sdb7 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sdb

That will install grub2 to the MBR of /dev/sdb (currently you have no bootloader at all there).
Reboot without the cd and if the ubuntu disk is first in boot order as we said, you should see grub2 menu with option for both ubuntu and win7 and they both should boot fine.

Also, in the /boot/grub folder, your menu.lst seems like you created it yourself, with entry just for win7. Be careful when following tutorials because grub1 and grub2 differ in that grub2 uses grub.cfg file, not menu.lst. Delete this menu.lst you created in /boot/grub, it will not do anything as it is.

That should sort you out.

ALex_cv
January 15th, 2010, 02:02 PM
Thank's for reply. I'll try and post what I'll done.

ALex_cv
January 15th, 2010, 02:28 PM
Everything is OK, but my activation of win7 has gone, so i think it caused the problem.

darkod
January 15th, 2010, 02:32 PM
Everything is OK, but my activation of win7 has gone, so i think it caused the problem.

Errr, can't help you with that. :) Glad you got it sorted.