Installing the WINDOWS7+UBUNTU13.04+CENTOS7 three systems

Source: Internet
Author: User




Installing the WINDOWS7+UBUNTU13.04+CENTOS7 three systems

(a point, after using a U disk to make Centos7 boot disk, do not need to delete the package or anything, do not need to copy the image file or something, burning is can be used directly, I tested two desktop and a laptop installation is not a problem, but in the installation, to modify the location of the next USB flash drive, as follows:)

In the U-disk installation process, in the installation interface, press the TAB key to modify or directly press the E key: (direct installation is not successful, need to modify)

Vmlinuz initrd=initrd.img inst.stage2=hd:label=centos\x207\x20x86_64 Rd.live.check quiet instead:

Vmlinuz initrd=initrd.img INST.STAGE2=HD:/DEV/SDB4 Quiet

Where HD:/DEV/SDB4 is the location of the U disk, may not be the same, my is this, in the online browsing of other friends have sda1, do not know is not the U disk or how different.



After installing the third system CENTOS7, I encountered the problem of windows7 boot without booting.

Workaround: Use the CentOS system as the boot system

Method: My practice is to modify/boot/grub2/grub.cfg this file, that is, to this file to add the boot Windows Script

Menuentry ' windows 7 (loader) (on/dev/sda1) '--class windows--class os $menuentry _id_option ' osprober-chain-xxx ' {
Insmod Chain
Insmod Part_msdos
Insmod NTFS
Set root= ' HD0,MSDOS1 '
Chainloader +1
}

Or, add this

Menuentry ' Win7 ' {
Insmod Chain
Insmod NTFS
Set root= (HD0,MSDOS1)
Chainloader +1
}

Menuentry ' Win7 search ' {
Insmod Chain
Insmod NTFS
Search-f/ntldr--set Root
Chainloader +1
}

On the Internet to see another way to solve the problem, but I did the test, is not possible, but still write a reference it

#---------------------------------------------------

Steps:

1. Switch to the root user

Su

2. Execution of Orders

Grub2-mkconfig-o/boot/grub2/grub.cfg

Details of implementation are as follows

-------------------------------------------------------------------------------------

[Root@localhost jiezh]# Grub2-mkconfig-o/boot/grub2/grub.cfg
Generating GRUB configuration file ...
Found Linux Image:/boot/vmlinuz-3.10.0-123.el7.x86_64
Found initrd Image:/boot/initramfs-3.10.0-123.el7.x86_64.img
Found Linux Image:/boot/vmlinuz-3.10.0-123.4.2.el7.x86_64
Found initrd Image:/boot/initramfs-3.10.0-123.4.2.el7.x86_64.img
Found Linux Image:/boot/vmlinuz-0-rescue-70ff68ea7ac34677a25f45f3417dd76c
Found initrd Image:/boot/initramfs-0-rescue-70ff68ea7ac34677a25f45f3417dd76c.img
Found Windows 7 (loader) ON/DEV/SDB1
Done

-------------------------------------------------------------------------------------

By the completion of this repair, the boot reboot can be seen Windows7 (on my computer is not)

I do #sudo update-grub2 on Ubuntu.

Can achieve the above Windows7 guidance

#---------------------------------------------------


The completion code for this file is as follows:

#
# do not EDIT the this FILE
#
# It is automatically generated by grub2-mkconfig using templates
# FROM/ETC/GRUB.D and Settings From/etc/default/grub
#

# # # Begin/etc/grub.d/00_header # #
Set Pager=1

If [-S $prefix/grubenv]; Then
Load_env
Fi
if ["${next_entry}"]; Then
Set default= "${next_entry}"
Set next_entry=
Save_env Next_entry
Set Boot_once=true
Else
Set default= "${saved_entry}"
Fi

If [x "${feature_menuentry_id}" = xy]; Then
menuentry_id_option= "--id"
Else
Menuentry_id_option= ""
Fi

Export Menuentry_id_option

if ["${prev_saved_entry}"]; Then
Set saved_entry= "${prev_saved_entry}"
Save_env Saved_entry
Set prev_saved_entry=
Save_env Prev_saved_entry
Set Boot_once=true
Fi

function Savedefault {
If [-Z "${boot_once}"]; Then
saved_entry= "${chosen}"
Save_env Saved_entry
Fi
}

function Load_video {
if [x$feature_all_video_module = xy]; Then
Insmod All_video
Else
Insmod EFI_GOP
Insmod Efi_uga
Insmod IEEE1275_FB
Insmod VBE
Insmod VGA
Insmod Video_bochs
Insmod Video_cirrus
Fi
}

Terminal_output Console
if [x$feature_timeout_style = xy]; Then
Set Timeout_style=menu
Set timeout=5
# Fallback Normal Timeout code in case the Timeout_style feature is
# unavailable.
Else
Set timeout=5
Fi
# # # End/etc/grub.d/00_header # #

# # # Begin/etc/grub.d/10_linux # #
Menuentry ' CentOS Linux, with Linux 3.10.0-123.el7.x86_64 '--class CentOS--class gnu-linux--class GNU--class os--unres tricted $menuentry _id_option ' gnulinux-3.10.0-123.el7.x86_64-advanced-8091b91e-1049-4c97-8e64-59fa7cda6671 ' {
Load_video
Set Gfxpayload=keep
Insmod Gzio
Insmod Part_msdos
Insmod XFS
Set root= ' Hd0,msdos10 '
if [x$feature_platform_search_hint = xy]; Then
Search--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos10--hint-efi=hd0,msdos10--hint-baremetal=ahci0, Msdos10--hint= ' Hd0,msdos10 ' Ab21651b-b9d9-403a-9115-f288ca6b7bd5
Else
Search--no-floppy--fs-uuid--set=root ab21651b-b9d9-403a-9115-f288ca6b7bd5
Fi
linux16/vmlinuz-3.10.0-123.el7.x86_64 root=uuid=8091b91e-1049-4c97-8e64-59fa7cda6671 ro Rd.lvm.lv=centos/swap Vconsole.font=latarcyrheb-sun16th.lvm.lv=centos/root crashkernel=auto vconsole.keymap=us rhgb quiet LANG=zh_CN. UTF-8
Initrd16/initramfs-3.10.0-123.el7.x86_64.img
}


Menuentry ' windows 7 (loader) (on/dev/sda1) '--class windows--class os $menuentry _id_option ' osprober-chain-xxx ' {
Insmod Chain
Insmod Part_msdos
Insmod NTFS
Set root= ' HD0,MSDOS1 '
Chainloader +1
}



Menuentry ' CentOS Linux, with Linux 0-rescue-a9741edb99374138ad3514311cc1ba77 '--class centos--class gnu-linux--class g Nu--class os--unrestricted $menuentry _id_option ' gnulinux-0-rescue-a9741edb99374138ad3514311cc1ba77-advanced-8091b91e-1049-4c97-8e64-59fa7cda6671 ' {
Load_video
Insmod Gzio
Insmod Part_msdos
Insmod XFS
Set root= ' Hd0,msdos10 '
if [x$feature_platform_search_hint = xy]; Then
Search--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos10--hint-efi=hd0,msdos10--hint-baremetal=ahci0, Msdos10--hint= ' Hd0,msdos10 ' Ab21651b-b9d9-403a-9115-f288ca6b7bd5
Else
Search--no-floppy--fs-uuid--set=root ab21651b-b9d9-403a-9115-f288ca6b7bd5
Fi
Linux16/vmlinuz-0-rescue-a9741edb99374138ad3514311cc1ba77 root=uuid=8091b91e-1049-4c97-8e64-59fa7cda6671 RO Rd.lvm.lv=centos/swap Vconsole.font=latarcyrheb-sun16th.lvm.lv=centos/root Crashkernel=auto vconsole.keymap=us RHGB quiet
Initrd16/initramfs-0-rescue-a9741edb99374138ad3514311cc1ba77.img
}
If ["X$default" = ' CentOS Linux, with Linux 3.10.0-123.el7.x86_64 '); Then default= ' Advanced options for CentOS Linux>centos Linux, with Linux 3.10.0-123.el7.x86_64 '; Fi
# # # End/etc/grub.d/10_linux # #

# # # Begin/etc/grub.d/20_linux_xen # #
# # # End/etc/grub.d/20_linux_xen # #

# # # Begin/etc/grub.d/20_ppc_terminfo # #
# # # End/etc/grub.d/20_ppc_terminfo # #

# # # Begin/etc/grub.d/30_os-prober # #
Menuentry ' Ubuntu 13.04 (13.04) (on/dev/sda9) '--class gnu-linux--class GNU--class os $menuentry _id_option ' osprober-gn Ulinux-simple-0cbece5c-328e-4f94-aa52-da220cca34a2 ' {
Insmod Part_msdos
Insmod ext2
Set root= ' Hd0,msdos9 '
if [x$feature_platform_search_hint = xy]; Then
Search--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos9--hint-efi=hd0,msdos9--hint-baremetal=ahci0,msdos9-- Hint= ' Hd0,msdos9 ' 0cbece5c-328e-4f94-aa52-da220cca34a2
Else
Search--no-floppy--fs-uuid--set=root 0cbece5c-328e-4f94-aa52-da220cca34a2
Fi
Linux/boot/vmlinuz-3.8.0-19-generic root=uuid=0cbece5c-328e-4f94-aa52-da220cca34a2 ro Locale=zh_CN Quiet Splash $vt _ Handoff
Initrd/boot/initrd.img-3.8.0-19-generic
}
Submenu ' Advanced options for Ubuntu 13.04 (13.04) (on/dev/sda9) ' $menuentry _id_option ' Osprober-gnulinux-advanced-0cbece5c-328e-4f94-aa52-da220cca34a2 ' {
Menuentry ' Ubuntu (on/dev/sda9) '--class gnu-linux--class GNU--class os $menuentry _id_option ' osprober-gnulinux-/boot/ Vmlinuz-3.8.0-19-generic--0cbece5c-328e-4f94-aa52-da220cca34a2 ' {
Insmod Part_msdos
Insmod ext2
Set root= ' Hd0,msdos9 '
if [x$feature_platform_search_hint = xy]; Then
Search--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos9--hint-efi=hd0,msdos9--hint-baremetal=ahci0,msdos9-- Hint= ' Hd0,msdos9 ' 0cbece5c-328e-4f94-aa52-da220cca34a2
Else
Search--no-floppy--fs-uuid--set=root 0cbece5c-328e-4f94-aa52-da220cca34a2
Fi
Linux/boot/vmlinuz-3.8.0-19-generic root=uuid=0cbece5c-328e-4f94-aa52-da220cca34a2 ro Locale=zh_CN Quiet Splash $vt _ Handoff
Initrd/boot/initrd.img-3.8.0-19-generic
}
Menuentry ' Ubuntu,linux 3.8.0-19-generic (on/dev/sda9) '--class gnu-linux--class GNU--class os $menuentry _id_option ' OS Prober-gnulinux-/boot/vmlinuz-3.8.0-19-generic--0cbece5c-328e-4f94-aa52-da220cca34a2 ' {
Insmod Part_msdos
Insmod ext2
Set root= ' Hd0,msdos9 '
if [x$feature_platform_search_hint = xy]; Then
Search--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos9--hint-efi=hd0,msdos9--hint-baremetal=ahci0,msdos9-- Hint= ' Hd0,msdos9 ' 0cbece5c-328e-4f94-aa52-da220cca34a2
Else
Search--no-floppy--fs-uuid--set=root 0cbece5c-328e-4f94-aa52-da220cca34a2
Fi
Linux/boot/vmlinuz-3.8.0-19-generic root=uuid=0cbece5c-328e-4f94-aa52-da220cca34a2 ro Locale=zh_CN Quiet Splash $vt _ Handoff
Initrd/boot/initrd.img-3.8.0-19-generic
}
Menuentry ' Ubuntu,linux 3.8.0-19-generic (Recovery mode) (ON/DEV/SDA9) '--class gnu-linux--class GNU--class os $menuentry _id_opt Ion ' OSPROBER-GNULINUX-/BOOT/VMLINUZ-3.8.0-19-GENERIC--0CBECE5C-328E-4F94-AA52-DA220CCA34A2 ' {
Insmod Part_msdos
Insmod ext2
Set root= ' Hd0,msdos9 '
if [x$feature_platform_search_hint = xy]; Then
Search--no-floppy--fs-uuid--set=root--hint-bios=hd0,msdos9--hint-efi=hd0,msdos9--hint-baremetal=ahci0,msdos9-- Hint= ' Hd0,msdos9 ' 0cbece5c-328e-4f94-aa52-da220cca34a2
Else
Search--no-floppy--fs-uuid--set=root 0cbece5c-328e-4f94-aa52-da220cca34a2
Fi
Linux/boot/vmlinuz-3.8.0-19-generic root=uuid=0cbece5c-328e-4f94-aa52-da220cca34a2 ro Recovery nomodeset locale=zh_ CN
Initrd/boot/initrd.img-3.8.0-19-generic
}
}

# # # End/etc/grub.d/30_os-prober # #

# # # Begin/etc/grub.d/40_custom # #
# This file provides a easy to add custom menu entries. Simply Type the
# menu entries want to add after this comment. Be careful not to change
# the ' EXEC tail ' line above.
# # # End/etc/grub.d/40_custom # #

# # # Begin/etc/grub.d/41_custom # #
If [-f ${config_directory}/custom.cfg]; Then
SOURCE ${config_directory}/custom.cfg
elif [-Z "${config_directory}"-a-f $prefix/custom.cfg]; Then
SOURCE $prefix/custom.cfg;
Fi
# # # End/etc/grub.d/41_custom # #

Installing the WINDOWS7+UBUNTU13.04+CENTOS7 three systems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.