- 论坛徽章:
- 0
|
回复 2# jerryjzm
电脑原来有windows XP系统,后来安装了linux的centos最新版本(2.8G)。
安装完后重启到Grub的时候,只能选择进入centos系统,没有进入windows系统的选项。
其中grub.conf内容如下:
[root@localhost Desktop]# vim /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,2)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_centos-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title CentOS Linux (2.6.32-71.el6.i686)
root (hd0,2)
kernel /vmlinuz-2.6.32-71.el6.i686 ro root=/dev/mapper/vg_centos-lv_root rd_LVM_LV=vg_centos/lv_root rd_LVM_LV=vg_centos/lv_swap rd_NO_LUKS 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.el6.i686.img
以上是不是说明grub.conf里面已经只有Centos系统了,请问如何添加上windows启动到该Grub使得电脑启动的时候可以实现双启动,即可选择进入windows系统或者centos系统。
以下是电脑分区情况,请参考:
[root@localhost Desktop]# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 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: 0xf601f601
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3648 29302528+ c W95 FAT32 (LBA)
/dev/sda2 3649 12559 71577607+ f W95 Ext'd (LBA)
/dev/sda3 12560 12623 512000 83 Linux
/dev/sda4 12623 14594 15827968 8e Linux LVM
/dev/sda5 3649 8512 39070048+ b W95 FAT32
/dev/sda6 8513 12559 32507496 b W95 FAT32
Disk /dev/dm-0: 14.1 GB, 14092861440 bytes
255 heads, 63 sectors/track, 1713 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: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 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: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table |
|