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. |
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:
|
@business_kid
there is only 1 hard disk installed of size 250GB. when i did that map thing, it states disk error. |
|
@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 |
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?
|
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 |
Quote:
|
@larry
yes indeed i have and i did using windows "so called" repair menu.... |
I will have to think about this, no more ideas.
|
@larry
roger. :) |
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. |
@business kid
i tried no luck. |
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 |
Quote:
|
Its NTLDR that boots windo$e,chainloading is handing the boot process back to Windo$e so its not finding it... play around with where its looking for it (hd0,1)
|
So it isn't a linux problem at all - it's a windows problem now!
|
@business kid
i tried to get those rescue cds but unable to find them, just 1 thing rescue and start-up cds are similar ? what if i get to make a startup cd from some1 elses' machine? @hughetorrance thanks for your reply, i tried to play alot, but this makes me go nuts i might go for re-install but just incase if i end up failing again then virtual box all the way. Thanks every1 for responding back. |
:-o?
Try searching here http://www.vista64.com/ Some kind soul sent me a link for such a cd on vistax64.com forums. I have it still (64 bit). There's different ones for 32 bit, and 32 bit xp. |
Examine very carefully the Grub documentation on properly booting Windows.
Also: personally, I use virtual machines to run all guest operating systems. The native OS, untouched, runs the host, while all guests of any type run in VMs. Intel hardware provides native support for running virtual machines. Very reliable VM software exists for every type of host-OS. |
All times are GMT -5. The time now is 08:44 AM. |