Mygly
April 24th, 2010, 05:10 AM
I'm having a problem with GRUB.
I had an installation of Windows 7 and then today decided I wanted to turn my machine into a dual booter again. So I installed the latest Debian stable release (5.0.2), creating a new partition on my second hard drive and installing it there. Naturally I installed GRUB as well and rebooted. I can boot into Debian from GRUB fine, but if I chose the Windows 7 option (title Windows Vista/Longhorn (loader)) the screen goes black and the machine reboots. I have tried booting with the Windows 7 disc and then going to recovery and using command line with:
bootrec /mbr - success
bootrec /fixboot - fails (can't remember the exact message)
bootsect /nt60 c: /mbr - success
fdisk -l
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x203c203b
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/hda2 13 19269 154674176 7 HPFS/NTFS
/dev/hda3 19270 19457 1510110 5 Extended
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa93c10ba
Device Boot Start End Blocks Id System
/dev/sda1 1 74174 595802623+ 7 HPFS/NTFS
/dev/sda2 74175 77669 28073587+ 83 Linux
/dev/sda3 77670 77825 1253070 5 Extended
/dev/sda5 77670 77825 1253038+ 82 Linux swap / Solaris
I ran the boot info script and this is what I got:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 0.97 is installed in the MBR of /dev/hda and looks on boot drive #2
in partition #2 for /boot/grub/stage2 and /boot/grub/menu.lst.
=> Windows is installed in the MBR of /dev/sda
hda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /BOOTMGR /boot/bcd /BOOT/bcd /Boot/bcd
/boot/BCD /BOOT/BCD /Boot/BCD
hda2: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe
hda3: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda2: __________________________________________________ _______________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Debian GNU/Linux 5.0
Boot files/dirs: /boot/grub/menu.lst /etc/fstab
sda3: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: hda ___________________ __________________________________________________ ___
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x203c203b
Partition Boot Start End Size Id System
/dev/hda1 * 2,048 206,847 204,800 7 HPFS/NTFS
/dev/hda2 206,848 309,555,199 309,348,352 7 HPFS/NTFS
/dev/hda3 309,556,485 312,576,704 3,020,220 5 Extended
Empty Partition
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xa93c10ba
Partition Boot Start End Size Id System
/dev/sda1 63 1,191,605,309 1,191,605,247 7 HPFS/NTFS
/dev/sda2 1,191,605,310 1,247,752,484 56,147,175 83 Linux
/dev/sda3 1,247,752,485 1,250,258,624 2,506,140 5 Extended
/dev/sda5 1,247,752,548 1,250,258,624 2,506,077 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/hda1 7E5824A1582459E3 ntfs System Reserved
/dev/hda2 16B82ED5B82EB2E3 ntfs
/dev/sda1 CA64F48364F47413 ntfs Local Disk
/dev/sda2 71afc9da-b86c-48b9-9662-9fe80b4c47ec ext3
/dev/sda5 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda2 / ext3 (rw,errors=remount-ro)
=========================== sda2/boot/grub/menu.lst: ===========================
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda2 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,1)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro quiet
initrd /boot/initrd.img-2.6.26-2-686
title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.26-2-686
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
=============================== sda2/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda2 / ext3 errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
=================== sda2: Location of files loaded by Grub: ===================
613.9GB: boot/grub/menu.lst
613.9GB: boot/grub/stage2
613.8GB: boot/initrd.img-2.6.26-2-686
613.9GB: boot/initrd.img-2.6.26-2-686.bak
613.9GB: boot/vmlinuz-2.6.26-2-686
613.8GB: initrd.img
613.9GB: vmlinuz
I know this is Ubuntu forums and I'm using Debian, but frankly this is the best Linux community around and Ubuntu is built on Debian so they are very similar. I find myself alternating between the two. Anyways, I really appreciate any help I might be able to get, this is killing me. :confused:
edit: please ignore the wubi in the title, I did not use the windows installer since I actually installed Debian, not Ubuntu
I had an installation of Windows 7 and then today decided I wanted to turn my machine into a dual booter again. So I installed the latest Debian stable release (5.0.2), creating a new partition on my second hard drive and installing it there. Naturally I installed GRUB as well and rebooted. I can boot into Debian from GRUB fine, but if I chose the Windows 7 option (title Windows Vista/Longhorn (loader)) the screen goes black and the machine reboots. I have tried booting with the Windows 7 disc and then going to recovery and using command line with:
bootrec /mbr - success
bootrec /fixboot - fails (can't remember the exact message)
bootsect /nt60 c: /mbr - success
fdisk -l
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x203c203b
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/hda2 13 19269 154674176 7 HPFS/NTFS
/dev/hda3 19270 19457 1510110 5 Extended
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa93c10ba
Device Boot Start End Blocks Id System
/dev/sda1 1 74174 595802623+ 7 HPFS/NTFS
/dev/sda2 74175 77669 28073587+ 83 Linux
/dev/sda3 77670 77825 1253070 5 Extended
/dev/sda5 77670 77825 1253038+ 82 Linux swap / Solaris
I ran the boot info script and this is what I got:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Grub 0.97 is installed in the MBR of /dev/hda and looks on boot drive #2
in partition #2 for /boot/grub/stage2 and /boot/grub/menu.lst.
=> Windows is installed in the MBR of /dev/sda
hda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /BOOTMGR /boot/bcd /BOOT/bcd /Boot/bcd
/boot/BCD /BOOT/BCD /Boot/BCD
hda2: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe
hda3: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda1: __________________________________________________ _______________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda2: __________________________________________________ _______________________
File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Debian GNU/Linux 5.0
Boot files/dirs: /boot/grub/menu.lst /etc/fstab
sda3: __________________________________________________ _______________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________ _______________________
File system: swap
Boot sector type: -
Boot sector info:
=========================== Drive/Partition Info: =============================
Drive: hda ___________________ __________________________________________________ ___
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x203c203b
Partition Boot Start End Size Id System
/dev/hda1 * 2,048 206,847 204,800 7 HPFS/NTFS
/dev/hda2 206,848 309,555,199 309,348,352 7 HPFS/NTFS
/dev/hda3 309,556,485 312,576,704 3,020,220 5 Extended
Empty Partition
Drive: sda ___________________ __________________________________________________ ___
Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xa93c10ba
Partition Boot Start End Size Id System
/dev/sda1 63 1,191,605,309 1,191,605,247 7 HPFS/NTFS
/dev/sda2 1,191,605,310 1,247,752,484 56,147,175 83 Linux
/dev/sda3 1,247,752,485 1,250,258,624 2,506,140 5 Extended
/dev/sda5 1,247,752,548 1,250,258,624 2,506,077 82 Linux swap / Solaris
blkid -c /dev/null: __________________________________________________ __________
Device UUID TYPE LABEL
/dev/hda1 7E5824A1582459E3 ntfs System Reserved
/dev/hda2 16B82ED5B82EB2E3 ntfs
/dev/sda1 CA64F48364F47413 ntfs Local Disk
/dev/sda2 71afc9da-b86c-48b9-9662-9fe80b4c47ec ext3
/dev/sda5 swap
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda2 / ext3 (rw,errors=remount-ro)
=========================== sda2/boot/grub/menu.lst: ===========================
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda2 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,1)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro quiet
initrd /boot/initrd.img-2.6.26-2-686
title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd1,1)
kernel /boot/vmlinuz-2.6.26-2-686 root=/dev/sda2 ro single
initrd /boot/initrd.img-2.6.26-2-686
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1
=============================== sda2/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sda2 / ext3 errors=remount-ro 0 1
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
=================== sda2: Location of files loaded by Grub: ===================
613.9GB: boot/grub/menu.lst
613.9GB: boot/grub/stage2
613.8GB: boot/initrd.img-2.6.26-2-686
613.9GB: boot/initrd.img-2.6.26-2-686.bak
613.9GB: boot/vmlinuz-2.6.26-2-686
613.8GB: initrd.img
613.9GB: vmlinuz
I know this is Ubuntu forums and I'm using Debian, but frankly this is the best Linux community around and Ubuntu is built on Debian so they are very similar. I find myself alternating between the two. Anyways, I really appreciate any help I might be able to get, this is killing me. :confused:
edit: please ignore the wubi in the title, I did not use the windows installer since I actually installed Debian, not Ubuntu