LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to install centos side by side ubuntu (http://www.linuxquestions.org/questions/linux-newbie-8/unable-to-install-centos-side-by-side-ubuntu-4175421595/)

mrajdeep 08-11-2012 01:41 PM

unable to install centos side by side ubuntu
 
Unable to include centos in ubuntu grub2...installed ubuntu and centos several times...tried updating grub2 in ubuntu but not able to have centos as boot option...please help.

vtel57 08-11-2012 04:06 PM

Did you install the bootloader for CentOS on its / partition? GRUB2 looks for the distribution's bootloader on its / (root) partition and then creates a chainloading entry for in in grub.cfg. I don't like or use GRUB2, so I'm not expert. However, if you install CentOS and allow its bootloader to be installed on its own / partition, I believe GRUB2 will properly detect it then.

Luck!

yancek 08-11-2012 04:37 PM

With the information you have posted, it would be very difficult to give you practical advice. I would suggest you go to the site linked below, download and run the bootinfoscript after reading the instructions and post the output here:

http://sourceforge.net/projects/bootinfoscript/

mrajdeep 08-12-2012 02:21 AM

output of bootinfoscript
 
Boot Info Script 0.61 [1 April 2012]


============================= Boot Info Summary: ===============================

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos6)/boot/grub on this drive.

sda1: __________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista/7: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/ubuntu/winboot/wubildr /ubuntu/winboot/wubildr.mbr

sda2: __________________________________________________________________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________________________________

File system: swap
Boot sector type: -
Boot sector info:

sda6: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda3: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files: /grub/menu.lst /grub/grub.conf

sda4: __________________________________________________________________________

File system: LVM2_member
Boot sector type: -
Boot sector info:

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 63 139,116,543 139,116,481 7 NTFS / exFAT / HPFS
/dev/sda2 196,460,542 488,396,799 291,936,258 5 Extended
/dev/sda5 477,147,136 488,396,799 11,249,664 82 Linux swap / Solaris
/dev/sda6 196,460,544 477,147,135 280,686,592 83 Linux
/dev/sda3 * 139,116,544 140,140,543 1,024,000 83 Linux
/dev/sda4 140,140,544 196,458,495 56,317,952 8e Linux LVM


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/sda1 669655C774B1F79B ntfs Windows
/dev/sda3 45b4657a-18d7-42e4-bb58-632a66b3140a ext4
/dev/sda4 vN53yY-9luE-S3LO-SV15-FImq-0NCy-vPmM32 LVM2_member
/dev/sda5 289b791c-f696-4722-a0fc-9da8ec2123ce swap
/dev/sda6 9ed6b5ee-d283-4321-aba3-046ef4d9be5d ext4

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/sda6 / ext4 (rw,errors=remount-ro)


=========================== sda6/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9ed6b5ee-d283-4321-aba3-046ef4d9be5d
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9ed6b5ee-d283-4321-aba3-046ef4d9be5d
set locale_dir=($root)/boot/grub/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9ed6b5ee-d283-4321-aba3-046ef4d9be5d
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=9ed6b5ee-d283-4321-aba3-046ef4d9be5d ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9ed6b5ee-d283-4321-aba3-046ef4d9be5d
echo 'Loading Linux 3.2.0-23-generic-pae ...'
linux /boot/vmlinuz-3.2.0-23-generic-pae root=UUID=9ed6b5ee-d283-4321-aba3-046ef4d9be5d ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-23-generic-pae
}
### 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_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9ed6b5ee-d283-4321-aba3-046ef4d9be5d
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 9ed6b5ee-d283-4321-aba3-046ef4d9be5d
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 669655C774B1F79B
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you 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 $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda6 during installation
UUID=9ed6b5ee-d283-4321-aba3-046ef4d9be5d / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=289b791c-f696-4722-a0fc-9da8ec2123ce none swap sw 0 0
--------------------------------------------------------------------------------

=================== sda6: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

162.401321411 = 174.377091072 boot/grub/core.img 1
107.824237823 = 115.775393792 boot/grub/grub.cfg 1
108.068111420 = 116.037251072 boot/initrd.img-3.2.0-23-generic-pae 2
105.812740326 = 113.615564800 boot/vmlinuz-3.2.0-23-generic-pae 1
108.068111420 = 116.037251072 initrd.img 2
105.812740326 = 113.615564800 vmlinuz 1

============================= sda3/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_rajdeep-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-279.el6.i686)
root (hd0,2)
kernel /vmlinuz-2.6.32-279.el6.i686 ro root=/dev/mapper/vg_rajdeep-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=uk LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=vg_rajdeep/lv_swap rd_LVM_LV=vg_rajdeep/lv_root rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-279.el6.i686.img
title Other
rootnoverify (hd0,0)
chainloader +1
--------------------------------------------------------------------------------

=================== sda3: Location of files loaded by Grub: ====================

GiB - GB File Fragment(s)

66.593978882 = 71.504740352 grub/grub.conf 1
66.593978882 = 71.504740352 grub/menu.lst 1
66.594099045 = 71.504869376 grub/stage2 1
66.366061211 = 71.260015616 initramfs-2.6.32-279.el6.i686.img 2
66.347908974 = 71.240524800 vmlinuz-2.6.32-279.el6.i686 1

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda2

00000000 a2 b6 88 4d e1 e2 c0 df a7 55 68 23 44 9b bd 15 |...M.....Uh#D...|
00000010 7f 70 70 d0 5d 59 ce b0 5d 45 14 85 76 48 b2 aa |.pp.]Y..]E..vH..|
00000020 1a c2 ce 8d da 83 3e 76 3c d8 70 36 f8 33 ca 6b |......>v<.p6.3.k|
00000030 11 b4 86 2a a0 3f 1d cf b8 5c 3b 24 82 86 7c e4 |...*.?...\;$..|.|
00000040 42 ea 65 dd 9d de cb ec 19 c1 a4 51 99 88 26 ef |B.e........Q..&.|
00000050 be 46 0c b9 ed 74 e5 a9 dc bb a7 e1 16 84 b9 fd |.F...t..........|
00000060 83 ab a1 0e 1c ec dc 52 0d 5d 46 a9 f3 67 bf fb |.......R.]F..g..|
00000070 c3 3c bc c3 76 de aa ec 5c 68 ec 35 87 74 20 a9 |.<..v...\h.5.t .|
00000080 29 3f e7 f2 ea 01 2d d3 77 cf ee 0a 0c 68 ce 98 |)?....-.w....h..|
00000090 67 e7 33 d7 c4 e2 05 f0 89 32 db 94 43 94 99 6f |g.3......2..C..o|
000000a0 ed 4c 4d ce 33 71 38 56 c3 9b b4 8f d7 79 56 e1 |.LM.3q8V.....yV.|
000000b0 72 5b e6 a5 93 f4 4a 59 21 cd 31 54 85 96 a9 c6 |r[....JY!.1T....|
000000c0 e4 25 79 6c e6 1f 14 f9 66 d2 2c a6 dd 7b 8d ec |.%yl....f.,..{..|
000000d0 a8 0a 20 dd a6 04 92 29 3d 4c bd 68 2b 97 43 f8 |.. ....)=L.h+.C.|
000000e0 d0 37 52 1d ca 2e 40 78 d2 9c 74 94 c3 55 41 78 |.7R...@x..t..UAx|
000000f0 0c 25 f8 c1 44 aa 29 7e 93 ad a5 66 2a f2 de 12 |.%..D.)~...f*...|
00000100 8c 85 e9 06 d5 1d 76 98 44 e0 87 89 e9 84 ce a7 |......v.D.......|
00000110 fc 10 c0 b5 5d 35 43 c9 36 4a 90 73 51 73 d9 53 |....]5C.6J.sQs.S|
00000120 63 c4 60 9a da f1 0e 2a 48 40 b2 df 1a 74 3f 26 |c.`....*H@...t?&|
00000130 59 f9 9b 93 db 1e bd 1e 42 d9 99 d7 1a 97 05 54 |Y.......B......T|
00000140 a4 83 15 f4 4f eb 43 e1 5e c1 cc 67 f9 79 79 3e |....O.C.^..g.yy>|
00000150 d2 70 d5 c9 da b3 e0 e8 d2 c6 b6 d8 de 6a 99 cc |.p...........j..|
00000160 3c 50 35 e9 ab a0 f2 d0 c1 35 23 b7 a6 0b b1 91 |<P5......5#.....|
00000170 cb 91 a5 77 4e d1 22 cd 22 ab b9 63 5e 95 79 8f |...wN."."..c^.y.|
00000180 60 e1 26 bb ee 05 72 3a f2 07 7d 5b 7c c3 99 bb |`.&...r:..}[|...|
00000190 83 da aa 47 42 b9 e5 c1 15 7e c5 05 be ae 95 7f |...GB....~......|
000001a0 a2 6c e4 3f d0 12 79 2c a0 b9 c7 fc 5b 9a 5b 09 |.l.?..y,....[.[.|
000001b0 22 ab 62 b9 56 a8 41 c5 1a 89 41 c2 82 b9 00 fe |".b.V.A...A.....|
000001c0 ff ff 82 fe ff ff 02 f0 ba 10 00 a8 ab 00 00 fe |................|
000001d0 ff ff 05 fe ff ff 01 00 00 00 01 f0 ba 10 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200


=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt


All times are GMT -5. The time now is 06:54 PM.