help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dual boot with windows xp


From: Jane Teng
Subject: dual boot with windows xp
Date: Thu, 25 Aug 2011 09:47:52 -0700 (PDT)

Hi,

I have a windows XP and centos 6.0 installed. I have been struggling boot on windows from Grub.

---------------------------------
result of: >fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 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: 0x0342b964

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          52      409600   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              52        1357    10485760   83  Linux
/dev/sda3            1357        1879     4194304   82  Linux swap / Solaris
/dev/sda4            1879        9730    63059968    5  Extended
/dev/sda5            1879        2140     2097152   83  Linux
/dev/sda6            2141        9730    60960768   83  Linux

Disk /dev/sdc: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 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: 0x166e166e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1        4862    39053983+   7  HPFS/NTFS

Disk /dev/sdb: 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: 0x17e8e9fc

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       30402   244197376   83  Linux
--------------------------------
result of: >cat /boot/grub/device.map
# this device map was generated by anaconda
(hd0)     /dev/sda
(hd1)     /dev/sdc
------------------------------
result of: >cat /boot/grub/grub.conf
cat device.map
# this device map was generated by anaconda
(hd0)     /dev/sda
(hd1)     /dev/sdc
address@hidden grub]# cat /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,0)
#          kernel /vmlinuz-version ro root=/dev/sda2
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda1
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title CentOS Linux (2.6.32-71.29.1.el6.i686)
    root (hd0,0)
    kernel /vmlinuz-2.6.32-71.29.1.el6.i686 ro root=UUID=a87ecf2b-8ad1-4d2b-8922-78b02377a832 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-71.29.1.el6.i686.img
title XP
    rootnoverify (hd1,0)
    map (hd0) (hd1)
    map (hd1) (hd0)
    makeactive
    chainloader +1
---------------------
error when I boot XP:
invalid or unsupported executable format
I know that this error is generated by the last line.

thanks in advance!

sun


reply via email to

[Prev in Thread] Current Thread [Next in Thread]