LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 06-12-2008, 10:47 AM   #1
ZxPwn
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
Thumbs down GRUB: Loading WinXP on a different hard drive


Hey.

I recently installed debian with GRUB. And i have installed it on WinXP Disc 0. I have got WinXP installed on Disk 2(whole disk). I want to boot into WinXP from GRUB. How can i do it manually? (Manually add in the booting, i know where the list is (/boot/grub/menu.lst) but, i dont know how to add in WinXP and it's weird HD booting :P)
 
Old 06-12-2008, 11:21 AM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,062
Blog Entries: 7

Rep: Reputation: 223Reputation: 223Reputation: 223
Please post your fdisk -l and /boot/grub/menu.lst. I do not doubt what you are saying but I have seen numerous threads lately with grub problems that will have numerous posts before they find out that they have five other distros or three or more hds or have swapped the boot order of the hd.

Last edited by Larry Webb; 06-12-2008 at 11:24 AM.
 
Old 06-12-2008, 12:34 PM   #3
ZxPwn
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
fdisk -l :-

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 4787 38451546 83 Linux
/dev/hda2 4788 4998 1694857+ 5 Extended
/dev/hda5 4788 4998 1694826 82 Linux swap / Solaris

Disk /dev/hdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 1175 9438156 7 HPFS/NTFS
/dev/hdb2 1176 30401 234757845 f W95 Ext'd (LBA)
/dev/hdb5 1176 6373 41752903 7 HPFS/NTFS
/dev/hdb6 6374 11357 40033948 7 HPFS/NTFS
/dev/hdb7 * 11358 30352 152577305+ 7 HPFS/NTFS
/dev/hdb8 30353 30401 393561 7 HPFS/NTFS

Disk /dev/hdd: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 2490 20000893+ 7 HPFS/NTFS

/boot/grub/menu.lst :

title Debian GNU/Linux, kernel 2.6.18-4-486
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-4-486
savedefault

title Debian GNU/Linux, kernel 2.6.18-4-486 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.18-4-486
savedefault

### 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/hdd1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
chainloader +1
boot
 
Old 06-12-2008, 01:04 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,062
Blog Entries: 7

Rep: Reputation: 223Reputation: 223Reputation: 223
We need to make windows think that it is first in the boot order by using

title Microsoft Windows XP Professional
root (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
makeactive
boot
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with suse 10.1 grub bootloader when loading winXP flanker12k Linux - Newbie 4 09-17-2007 10:05 PM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
hard drive grub loading error message drum Linux - Hardware 2 02-01-2005 02:02 AM
Transferring data from a WinXP Hard drive satimis Linux - Hardware 3 08-19-2004 06:34 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM


All times are GMT -5. The time now is 11:14 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration