- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Can get grub to boot Windows disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2009 02:47 AM
тАО01-24-2009 02:47 AM
Can get grub to boot Windows disk
I just installed OpenSuSE 11.1 and it configured grub to boot Linux and Windows. Unfortunately it could not boot windows properly.
I have the following setup
/dev/sda1 - OpenSuSe Linux
/dev/sdb2 - Windows
Here is the relevant part of /boot/grub/menu.lst
title openSUSE 11.1 - 2.6.27.7-9
root (hd0,0)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/disk/by-id/ata-ST3160815AS_6RX80V0Z-part1 resume=/dev/disk/by-id/ata-ST316
0815AS_6RX80V0Z-part3 splash=silent showopts vga=0x348
initrd /boot/initrd-2.6.27.7-9-pae
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader +1
During boot up menu I select Windows and it gives the following output
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,0)
makeactive
chainloader +1
GRUB Loading Stage2Read Error
Currently the only way to boot windows is to disconnect the cable to /dev/sda or Linux and power up the PC
How should I configure grub to boot windows properly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2009 04:02 AM
тАО01-24-2009 04:02 AM
Re: Can get grub to boot Windows disk
If Windows is on the _second_ partition of /dev/sdb, then perhaps the "rootnoverify" command should be:
rootnoverify (hd0,1)
If this does not help, please show us the output of:
fdisk -l /dev/sdb
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2009 10:41 PM
тАО01-24-2009 10:41 PM
Re: Can get grub to boot Windows disk
It still does not work. Here is the output
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd0,1)
makeactive
chainloader +1
Error 13: Invalid or unsupported executable format
Here is my fdisk output.. Yeah the partition setup is quite strange
linux-a298:~ # fdisk -l /dev/sdb
Disk /dev/sdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x343f15eb
Device Boot Start End Blocks Id System
/dev/sdb1 1 31 248976 83 Linux
/dev/sdb2 * 32 3473 27647865 c W95 FAT32 (LBA)
/dev/sdb3 3474 4748 10241437+ 83 Linux
/dev/sdb4 4749 4865 939802+ f W95 Ext'd (LBA)
/dev/sdb5 4749 4865 939771 82 Linux swap / Solaris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2009 12:52 AM
тАО01-25-2009 12:52 AM
Re: Can get grub to boot Windows disk
title openSUSE 11.1 - 2.6.27.7-9
root (hd0,0)
kernel /boot/vmlinuz-2.6.27.7-9-pae root=/dev/disk/by-id/ata-ST3160815AS_6RX80V0Z-part1 resume=/dev/disk/by-id/ata-ST316
0815AS_6RX80V0Z-part3 splash=silent showopts vga=0x348
initrd /boot/initrd-2.6.27.7-9-pae
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd0,0)
chainloader +1
-----------------------------
Hope this helps.
enjoy, life.
Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2009 01:00 AM
тАО01-25-2009 01:00 AM
Re: Can get grub to boot Windows disk
default=0
timeout=20
or
defaut=1 if you want windows to boot per default!
timeout is 20 seconds so to leave you time to type a
Enjoy, life.
Jean-Pierre Huc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2009 06:22 PM
тАО01-26-2009 06:22 PM
Re: Can get grub to boot Windows disk
Your grub settings does not work as my windows partition is at /dev/sdb2..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2009 07:00 AM
тАО01-27-2009 07:00 AM
Re: Can get grub to boot Windows disk
The new error message indicates GRUB is trying to do something that makes a bit more sense, but failing.
The mapping between /dev/sda & /dev/sdb and the respective GRUB identifiers (hd0) and (hd1) may not be the obvious one.
What is the output of "cat /boot/grub/device.map"?
Just for reference, what is the output of "fdisk -l /dev/sda"? Yes, it should not be touched at all when booting Windows, but your highly customized system is obviously confusing GRUB.
If your BIOS is set to boot from /dev/sdb, it may be that GRUB's (hd0) is actually /dev/sdb and the map commands are actually not needed. If GRUB's device.map file reflects that, it is possible that your active OpenSuSE 11.1 bootloader is currently on /dev/sdb1.
When your system is in GRUB boot menu, press "c" to access GRUB command prompt. Run "find ntldr" and see what it displays. The command may take a while to complete. That should be the most reliable way to find out the actual BIOS disk ordering used by the actual GRUB bootloader (as opposed to the guesswork of the GRUB installer listed in /boot/grub/device.map).
If you get us all this information, I think I might have a chance of solving this puzzle.
MK