Hi all,
I've installed CentOS 4.4 in a box which previously had dual boot
(XP
SP2 and Ubuntu)
I can run CentOS without problem but I can't boot XP SP2. When I try
it
the system simply hangs...
Try: title Windows XP map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1
Works for me.
B.J. McClure
CentOS 4.4, Linux 2.6.9-42.ELsmp x86_64 13:13:51 up 1 day, 17:05, 2 users, load average: 0.14, 0.08, 0.05
Try: title Windows XP map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1
Works for me.
Also for me. It was the solution, but I don't understant exactly why.
According the GRUB manual and RHEL knowledge database article (http://kbase.redhat.com/faq/FAQ_43_4053.shtm):
" The next two lines /map (hd1) (hd0), map (hd0) (hd1)/ use the disk swapping technique, because that O/S cannot boot from any disks but the first one. This performs a "virtual" swap between your first and second hard drive."
In my system:
[root@seth ~]# fdisk -l
Disco /dev/hdb: 40.0 GB, 40020664320 bytes 255 cabezas, 63 sectores/pista, 4865 cilindros Unidades = cilindros de 16065 * 512 = 8225280 bytes
Disposit. Boot Start End Blocks Id System /dev/hdb1 * 1 4865 39078081 83 Linux
Disco /dev/sda: 160.0 GB, 160041885696 bytes 255 cabezas, 63 sectores/pista, 19457 cilindros Unidades = cilindros de 16065 * 512 = 8225280 bytes
Disposit. Boot Start End Blocks Id System /dev/sda1 * 1 10445 83891399 7 HPFS/NTFS /dev/sda2 10446 10476 249007+ 83 Linux /dev/sda3 10477 19203 70099627+ 83 Linux /dev/sda4 19204 19457 2040255 82 Linux swap
And AFAIK the /dev/sda is primary disk and /dev/hdb is slave disk, so the reason why it didn't run isn't clear. Maybe I'm wrong about the disks disposition... perhaps I have to open box case and confirm it...
On Tue, 2007-01-16 at 11:38 +0100, Jordi Espasa Clofent wrote:
Try: title Windows XP map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1
Works for me.
Also for me. It was the solution, but I don't understant exactly why.
If you added that drive to install CentOS and it became the first drive (replacing the other one), in the system, your boot.ini on WindowsXP was probably trying to boot from drive0 and not drive1.
You have reversed the mappings (which makes 1 -> 0 and 0 -> 1) which corrected the problem. WinXP now IS booting from drive0 and it is happy again :P
You could also probably look at boot.ini on the XP box and change where it points, but there is probably no need to do that now, as it is working for you.
Thanks, Johnny Hughes
<snip>
Jordi Espasa Clofent spake the following on 1/16/2007 2:38 AM:
Try: title Windows XP map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1
Works for me.
Also for me. It was the solution, but I don't understant exactly why.
According the GRUB manual and RHEL knowledge database article (http://kbase.redhat.com/faq/FAQ_43_4053.shtm):
" The next two lines /map (hd1) (hd0), map (hd0) (hd1)/ use the disk swapping technique, because that O/S cannot boot from any disks but the first one. This performs a "virtual" swap between your first and second hard drive."
Windows and linux look at drive order differently. You have a /dev/sda and a /dev/hdb. Even though /dev/hdb is on a slave, /dev/sda is either a scsi drive or sata. Your windows system looks at the ide drive as the first drive.
Windows and linux look at drive order differently. You have a /dev/sda and a /dev/hdb. Even though /dev/hdb is on a slave, /dev/sda is either a scsi drive or sata. Your windows system looks at the ide drive as the first drive.
Ok Scott. This info is the key to understand the problem. I didn't know it.