LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   grub hangs during windows boot (http://www.linuxquestions.org/questions/linux-general-1/grub-hangs-during-windows-boot-917260/)

hasanatizaz 12-05-2011 11:49 AM

grub hangs during windows boot
 
i have a single hard disk installed of size 250 GB, which is /dev/sda

output of fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xa8a8a8a8

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4961 39845956+ 7 HPFS/NTFS
/dev/sda2 4961 5614 5242880 83 Linux
/dev/sda3 5614 9791 33554432 83 Linux
/dev/sda4 9792 30401 165549761+ 5 Extended
/dev/sda5 9792 10314 4194304 82 Linux swap / Solaris
/dev/sda6 10314 23079 102538240 83 Linux
/dev/sda7 23079 28954 47185920 83 Linux
/dev/sda8 28954 30401 11627520 b W95 FAT32



I have tried installing Windows and then Redhat, everything was working very smooth. Then on logical volume i installed debian squeeze. The immediate problem after installing squeeze was that i am unable to boot my windows partition.

detailed information of my partitions
/dev/sda1 --> windows
/dev/sda2 --> boot partition
/dev/sda3 --> redhat partition
/dev/sda4 --> extended
/dev/sda5 --> swap
/dev/sda6 --> debian
/dev/sda7 --> common partition which i named library, all my ebooks data movies are placed here.
/dev/sda8 --> is vfat partition, used for sharing common files such as setups


my grub.conf looks like:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Debian GNU / LINUX
root (hd0,1)
kernel /vmlinuz-2.6.32-5-686 rw-o root=/dev/sda6
initrd /initrd.img-2.6.32-5-686
title Red Hat Enterprise Linux (2.6.32-131.0.15.el6.i686)
root (hd0,1)
kernel /vmlinuz-2.6.32-131.0.15.el6.i686 ro root=UUID=5a22d46d-e11e-433b-8266-0f0f2b02bc35 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
initrd /initramfs-2.6.32-131.0.15.el6.i686.img
title Other
rootnoverify (hd0,0)
chainloader +1

NOTE:-
i have tried doing fixmbr and fixboot, still no help, so i reinstalled grub.

business_kid 12-05-2011 02:09 PM

I have windows thrown in for a brief while on a second hard disk (sdb) and it needs to think it's the only one there - like the Old joke about Jehovah's Witnesses (in heaven). The way to achieve that is to insert these lines after the 'Other'

Quote:

map (hd0) (hd1)
map (hd1) (hd0)
That lets hd1 (in grubspeak) pretend it's hd0

hasanatizaz 12-06-2011 04:05 AM

@business_kid
there is only 1 hard disk installed of size 250GB. when i did that map thing, it states disk error.

Larry Webb 12-06-2011 04:33 AM

The grub conf looks ok. Download boot info and post the results

boot info

hasanatizaz 12-06-2011 05:24 AM

@Larry Webb

here is the output of result file.

Boot Info Script 0.60 from 17 May 2011


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

=> Grub Legacy (v0.97) is installed in the MBR of /dev/sda and looks on the
same drive in partition #2 for /grub/stage2 and /grub/grub.conf.

sda1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/grub.conf

sda3: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Red Hat Enterprise Linux Server
release 6.1 (Santiago) Kernel on an
Boot files: /etc/fstab

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Debian GNU/Linux 6.0
Boot files: /boot/grub/grub.conf /etc/fstab

sda7: __________________________________________________________________________

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

sda8: __________________________________________________________________________

File system: vfat
Boot sector type: FAT32
Boot sector info: According to the info in the boot sector, sda8 starts
at sector 0. But according to the info from fdisk,
sda8 starts at sector 465135616.
Operating System:
Boot files:

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 63 79,691,975 79,691,913 7 NTFS / exFAT / HPFS
/dev/sda2 79,693,824 90,179,583 10,485,760 83 Linux
/dev/sda3 90,179,584 157,288,447 67,108,864 83 Linux
/dev/sda4 157,292,542 488,392,064 331,099,523 5 Extended
/dev/sda5 157,292,544 165,681,151 8,388,608 82 Linux swap / Solaris
/dev/sda6 165,683,200 370,759,679 205,076,480 83 Linux
/dev/sda7 370,761,728 465,133,567 94,371,840 83 Linux
/dev/sda8 465,135,616 488,390,655 23,255,040 b W95 FAT32


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 EA88235A88232513 ntfs
/dev/sda2 542324fb-bfa5-477f-aebe-2a4bff1b57d4 ext4
/dev/sda3 5a22d46d-e11e-433b-8266-0f0f2b02bc35 ext4
/dev/sda5 c2ffb69f-cfdd-45c2-981a-d4090d583f91 swap
/dev/sda6 2f4fb8bf-4585-4fdd-86f8-d240d1f71ef7 ext4
/dev/sda7 796586eb-632c-4b01-ae79-6789366e0616 ext4
/dev/sda8 D407-D974 vfat

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda2 /boot ext4 (rw)
/dev/sda6 / ext4 (rw)
/dev/sda7 /Library ext4 (rw)
/dev/sda8 /Shared vfat (rw,noexec,nosuid,nodev)


================================ sda1/boot.ini: ================================

--------------------------------------------------------------------------------
[boot loader]

timeout=30

default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect

--------------------------------------------------------------------------------

============================= sda2/grub/grub.conf: =============================

--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Debian GNU / LINUX
root (hd0,1)
kernel /vmlinuz-2.6.32-5-686 rw-o root=/dev/sda6
initrd /initrd.img-2.6.32-5-686
title Red Hat Enterprise Linux (2.6.32-131.0.15.el6.i686)
root (hd0,1)
kernel /vmlinuz-2.6.32-131.0.15.el6.i686 ro root=UUID=5a22d46d-e11e-433b-8266-0f0f2b02bc35 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
initrd /initramfs-2.6.32-131.0.15.el6.i686.img
title Other
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

?? = ?? grub/grub.conf 1
?? = ?? grub/stage2 1
?? = ?? initramfs-2.6.32-131.0.15.el6.i686.img 1
?? = ?? initrd.img-2.6.32-5-686 2
?? = ?? vmlinuz-2.6.32-131.0.15.el6.i686 1
?? = ?? vmlinuz-2.6.32-5-686 1

=============================== sda3/etc/fstab: ================================

--------------------------------------------------------------------------------

#
# /etc/fstab
# Created by anaconda on Tue Nov 29 20:41:00 2011
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/sda3 / ext4 defaults 1 1
/dev/sda2 /boot ext4 defaults 1 2
/dev/sda5 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda7 /Library ext4 defaults 0 0
--------------------------------------------------------------------------------

========================== sda6/boot/grub/grub.conf: ===========================

--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/sda3
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Debian GNU / LINUX
root (hd0,1)
kernel /vmlinuz-2.6.32-5-686 rw-o root=/dev/sda6
initrd /initrd.img-2.6.32-5-686
title Red Hat Enterprise Linux (2.6.32-131.0.15.el6.i686)
root (hd0,1)
kernel /vmlinuz-2.6.32-131.0.15.el6.i686 ro root=UUID=5a22d46d-e11e-433b-8266-0f0f2b02bc35 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
initrd /initramfs-2.6.32-131.0.15.el6.i686.img
title Other
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
chainloader +1
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
/dev/sda2 /boot ext4 defaults 0 0
/dev/sda6 / ext4 defaults 0 0
proc /proc proc defaults 0 0
/dev/sda5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/sda7 /Library ext4 defaults 0 0
/dev/sda8 /Shared vfat defaults,user 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

?? = ?? boot/grub/grub.conf 1
?? = ?? boot/grub/stage2 1
?? = ?? boot/initramfs-2.6.32-131.0.15.el6.i686.img 1
?? = ?? boot/initrd.img-2.6.32-5-686 2
?? = ?? boot/vmlinuz-2.6.32-131.0.15.el6.i686 1
?? = ?? boot/vmlinuz-2.6.32-5-686 1
?? = ?? initrd.img 2
?? = ?? vmlinuz 1

=============================== StdErr Messages: ===============================

No volume groups found

Larry Webb 12-06-2011 06:01 AM

You do not need the dev mapping, remove it from the menu. I do not see anything wrong otherwise. You say grub hangs, where does it stop? Are there any errors? Is there a windows splash screen?

hasanatizaz 12-06-2011 06:13 AM

no the error is flashing cursor( _ sign) when i select Others ( refering to Windows XP).
yes i know mapping there was placed after business_kid's reply otherwise it was
rootnoverify (hd0,0)
chainloader +1

Larry Webb 12-06-2011 08:10 AM

Quote:

Originally Posted by hasanatizaz (Post 4542723)
i have tried doing fixmbr and fixboot, still no help, so i reinstalled grub.

I presume you have a windows cd using those commands.

hasanatizaz 12-06-2011 01:06 PM

@larry
yes indeed i have and i did using windows "so called" repair menu....

Larry Webb 12-06-2011 06:00 PM

I will have to think about this, no more ideas.

hasanatizaz 12-07-2011 01:55 AM

@larry
roger. :)

business_kid 12-08-2011 02:53 AM

Just lurking here.

When trying to prop up some failed windows version, I came across windows-version rescue cds. Apparently to avoid breaking copyright, they have few(if any) windows files on them, but use the ones on your hard disk. I have a vista rescue cd (made at the time) and it restores backups, fixes some boot problems and generally tries to fix problems.

google for 'windows <version> rescue cd' and try your luck. It sounds as if you need a bit of luck.

hasanatizaz 12-10-2011 09:50 AM

@business kid
i tried no luck.

hurry_hui 12-10-2011 10:51 AM

What happened when you type these on grub command prompt?
(boot as usual on grub menu press C to enter command-line).
Don't forget to press Enter after each line.

rootnoverify (hd0,0)

chainloader +1

business_kid 12-11-2011 02:36 AM

Quote:

Originally Posted by hasanatizaz (Post 4546567)
@business kid
i tried no luck.

Please elaborate. Where exactly did it fail?


All times are GMT -5. The time now is 03:15 PM.