PDA

View Full Version : [SOLVED] Get "Error 13: Invalid or unsupported executable format" logging into Ubuntu MATE



spython01
August 29th, 2015, 09:02 PM
Apologies in advance if I should be posting this first in the Ubuntu-MATE or CentOS forums but the community here seems quite friendly and responsive so here goes:

I had originally installed Ubuntu MATE 15.04 on my laptop with separate partitions for root (/) and home (/home), leaving approximately 35GB free in an unallocated partition.

I then tried installing CentOS 6.7 into the unallocated space but now, when I try to start Ubuntu MATE via GNU GRUB version 0.97, I get the "Error 13: Invalid or unsupported executable format" message. While I can still log into CentOS, I can now no longer log into Ubuntu MATE.

Below is the output of "fdisk -l" run through the CentOS terminal, where /dev/sda1 is the Ubuntu root partition, /dev/sda2 is the Ubuntu home partition and /dev/sda3 is the Ubuntu swap partition. /dev/sda4, /dev/sda5 and /dev/sda6 all pertain to CentOS.

How can I boot back into Ubuntu?

Thanks in advance.


#fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 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: 0x503e107d


Device Boot Start End Blocks Id System
/dev/sda1 * 1 5471 43943936 83 Linux
/dev/sda2 5471 14590 73242624 83 Linux
/dev/sda3 14590 14833 1952768 82 Linux swap / Solaris
/dev/sda4 14833 19458 37149696 5 Extended
/dev/sda5 14833 14897 512000 83 Linux
/dev/sda6 14897 19458 36635648 83 Linux


Disk /dev/mapper/luks-b4d0c300-e6d7-478d-87d8-b859f4204483: 37.5 GB, 37512806400
bytes
255 heads, 63 sectors/track, 4560 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/mapper/vg_t61-lv_root: 33.3 GB, 33281802240 bytes
255 heads, 63 sectors/track, 4046 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/mapper/vg_t61-lv_swap: 4227 MB, 4227858432 bytes
255 heads, 63 sectors/track, 514 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

oldfred
August 29th, 2015, 09:27 PM
Many grub legacy 0.97 do not support ext4.
Ubuntu modified its last use of grub legacy in 9.04 to include ext4, but with 9.10 converted to grub2 as standard.

I would think it would be better to use grub2, but do not know versions of other systems you have installed and what they may need.

Post the link to the Create BootInfo summary report. Is part of Boot-Repair:
https://help.ubuntu.com/community/Boot-Info

Do not run Boot-Repair's auto-fix. Better to use advanced mode, select a system and reinstall grub to MBR with that. Or in Advanced options a full uninstall/reinstall of grub2. Boot-Repair will not fix grub legacy issues.

yancek
August 30th, 2015, 12:14 AM
Many grub legacy 0.97 do not support ext4.

That is most likely the problem. My primary system boots with Grub Legacy and I have no problem booting other systems on ext4 partitions but all systems don't have the necessary modifications/patches to do this. Any particular reason why you are using CentOS 6.7 as I believe 7.0 has been out for some time and it does use Grub2. You might try a chainload entry in CentOS menu.lst or grub.conf file and see if that does the job. In your case:


title Ubuntu Mate
root (hd0,0)
chainloader +1

Posting the boot repair suggested is probably better as more details will be available.

spython01
August 30th, 2015, 12:59 AM
Post the link to the Create BootInfo summary report. Is part of Boot-Repair:
https://help.ubuntu.com/community/Boot-Info



Thanks for the quick reply, oldfred. Here is the link that was generated by the Boot-Info tool you suggested:

http://paste.ubuntu.com/12226334/

I will wait to proceed once I hear back more here.

spython01
August 30th, 2015, 01:05 AM
Any particular reason why you are using CentOS 6.7 as I believe 7.0 has been out for some time and it does use Grub2.

I have an older machine (Thinkpad T61) with only 2GB of memory and have found that the performance of CentOS 6.7 was a bit faster than 7.0.


You might try a chainload entry in CentOS menu.lst or grub.conf file and see if that does the job. In your case:


title Ubuntu Mate
root (hd0,0)
chainloader +1

Posting the boot repair suggested is probably better as more details will be available.

Apologies for asking, but could you please clarify what your suggestion means? I'm still a relative newcomer to Linux (perhaps one who should be content with running just one distribution at a time!). Is this a config file that I need to edit? If so, do you know which directory it may be located in?

Thanks!

spython01
August 30th, 2015, 01:23 AM
I did some more investigation with respect to yancek's response. Both my /boot/grub/menu.lst and /boot/grub/grub.conf files (on the CentOS side) have the following three lines at the end:


title Ubuntu MATE
rootnoverify (hd0,0)
chainloader +1

Hope that helps.

oldfred
August 30th, 2015, 04:33 AM
I would use Boot-Repair's advanced mode to install grub2 to MBR. Choose Ubuntu and sda as location to install grub into.

You probably will have to install in Ubuntu the lvm2 driver for grub2's os-prober to find Centos which is using LVM. Many with multiple installs do not use the LVM as that only really has advantages as a full drive install.

In Ubuntu:
sudo apt-get install lvm2
sudo update-grub

spython01
August 30th, 2015, 09:26 PM
I would use Boot-Repair's advanced mode to install grub2 to MBR. Choose Ubuntu and sda as location to install grub into.

You probably will have to install in Ubuntu the lvm2 driver for grub2's os-prober to find Centos which is using LVM. Many with multiple installs do not use the LVM as that only really has advantages as a full drive install.

In Ubuntu:
sudo apt-get install lvm2
sudo update-grub

That was brilliant advice, oldfred! Good news is that I am now back to where I was 24 hours ago. I did try to install the lvm2 driver in Ubuntu as you suggested but now the option to boot into CentOS no longer appears. I just get Ubuntu and a couple of options for a memory test. Is there any possibility to get the option to boot into CentOS back?

On the Ubuntu partition, here is what /boot/grub/grub.cfg looks like:

$more 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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
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 60,59,55; then
clear
fi

color_normal=light-gray/black

if [ -e ${prefix}/themes/ubuntu-mate/theme.txt ]; then
insmod png
theme=${prefix}/themes/ubuntu-mate/theme.txt
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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
linux /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.19.0-26-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
menuentry 'Ubuntu, with Linux 3.19.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-26-generic ...'
linux /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-26-generic ...'
linux /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
}

### 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,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ${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 ###

and here is the Boot-Info output now:

Boot Info Script e7fc706 + Boot-Repair extra info [Boot-Info 9Feb2015]


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

=> Grub2 (v2.00) 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 (,msdos1)/boot/grub.
=> Grub2 (v2.00) is installed in the MBR of /dev/sdb.

sda1: __________________________________________________ ________________________

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

sda2: __________________________________________________ ________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:

sda3: __________________________________________________ ________________________

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

sda4: __________________________________________________ ________________________

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

sda5: __________________________________________________ ________________________

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

sda6: __________________________________________________ ________________________

File system: crypto_LUKS
Boot sector type: Unknown
Boot sector info:

sdb1: __________________________________________________ ________________________

File system: iso9660
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: /dev/sdb1 is already mounted or /mnt/BootInfo/sdb1 busy

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

Drive: sda __________________________________________________ ___________________

Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 * 2,048 87,889,919 87,887,872 83 Linux
/dev/sda2 87,889,920 234,375,167 146,485,248 83 Linux
/dev/sda3 234,375,168 238,280,703 3,905,536 82 Linux swap / Solaris
/dev/sda4 238,280,704 312,580,095 74,299,392 5 Extended
/dev/sda5 238,282,752 239,306,751 1,024,000 83 Linux
/dev/sda6 239,308,800 312,580,095 73,271,296 83 Linux


Drive: sdb __________________________________________________ ___________________

Disk /dev/sdb: 7.3 GiB, 7803174912 bytes, 15240576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 64 2,264,639 2,264,576 17 Hidden NTFS / HPFS


"blkid" output: __________________________________________________ ______________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 cb271cf1-81d0-4994-9de3-aa6c934b3a93 ext4
/dev/sda2 fb7245d7-650e-4543-9bc3-cbd6bf770031 ext4
/dev/sda3 00b7090c-6a6d-4b4a-80fa-d642e5cf3b91 swap
/dev/sda5 137b63d7-30ed-4898-9168-9868f02c52fc ext4
/dev/sda6 b4d0c300-e6d7-478d-87d8-b859f4204483 crypto_LUKS
/dev/sdb1 2015-04-22-13-12-39-00 iso9660 Ubuntu-MATE 15.04 i386

========================= "ls -l /dev/disk/by-id" output: ======================

total 0
lrwxrwxrwx 1 root root 9 Aug 30 20:13 ata-DVD_CDRW_UJDA775 -> ../../sr0
lrwxrwxrwx 1 root root 9 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR -> ../../sda
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Aug 30 20:23 ata-ST9160823AS_5NK0VLJR-part6 -> ../../sda6
lrwxrwxrwx 1 root root 9 Aug 30 20:23 usb-Kingston_DataTraveler_2.0_6CF049E3311BED31C9360205-0:0 -> ../../sdb
lrwxrwxrwx 1 root root 10 Aug 30 20:23 usb-Kingston_DataTraveler_2.0_6CF049E3311BED31C9360205-0:0-part1 -> ../../sdb1

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

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb /cdrom iso9660 (ro,noatime)


=========================== sda1/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
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
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 recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; 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
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=10
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
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 60,59,55; then
clear
fi

color_normal=light-gray/black

if [ -e ${prefix}/themes/ubuntu-mate/theme.txt ]; then
insmod png
theme=${prefix}/themes/ubuntu-mate/theme.txt
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
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
linux /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.19.0-26-generic
}
submenu 'Advanced options for Ubuntu' $menuentry_id_option 'gnulinux-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
menuentry 'Ubuntu, with Linux 3.19.0-26-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-26-generic ...'
linux /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-26-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-26-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-26-generic ...'
linux /boot/vmlinuz-3.19.0-26-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-26-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-15-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-advanced-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
gfxmode $linux_gfx_mode
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro quiet splash $vt_handoff
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
menuentry 'Ubuntu, with Linux 3.19.0-15-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-15-generic-recovery-cb271cf1-81d0-4994-9de3-aa6c934b3a93' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
echo 'Loading Linux 3.19.0-15-generic ...'
linux /boot/vmlinuz-3.19.0-15-generic root=UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.19.0-15-generic
}
}

### 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,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
knetbsd /boot/memtest86+.elf
}
menuentry 'Memory test (memtest86+, serial console 115200)' {
insmod part_msdos
insmod ext2
set root='hd0,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 cb271cf1-81d0-4994-9de3-aa6c934b3a93
else
search --no-floppy --fs-uuid --set=root cb271cf1-81d0-4994-9de3-aa6c934b3a93
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ${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 ###
--------------------------------------------------------------------------------

=============================== sda1/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>
# / was on /dev/sda1 during installation
UUID=cb271cf1-81d0-4994-9de3-aa6c934b3a93 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda2 during installation
UUID=fb7245d7-650e-4543-9bc3-cbd6bf770031 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
#UUID=00b7090c-6a6d-4b4a-80fa-d642e5cf3b91 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0
--------------------------------------------------------------------------------

============================= sda5/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,4)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_t61-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=2
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-573.3.1.el6.i686)
root (hd0,4)
kernel /vmlinuz-2.6.32-573.3.1.el6.i686 ro root=/dev/mapper/vg_t61-lv_root rd_LVM_LV=vg_t61/lv_root rd_LUKS_UUID=luks-b4d0c300-e6d7-478d-87d8-b859f4204483 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_t61/lv_swap rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
initrd /initramfs-2.6.32-573.3.1.el6.i686.img
title CentOS Linux 6 (2.6.32-573.el6.i686)
root (hd0,4)
kernel /vmlinuz-2.6.32-573.el6.i686 ro root=/dev/mapper/vg_t61-lv_root rd_LVM_LV=vg_t61/lv_root rd_LUKS_UUID=luks-b4d0c300-e6d7-478d-87d8-b859f4204483 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=128M KEYBOARDTYPE=pc KEYTABLE=us rd_LVM_LV=vg_t61/lv_swap rd_NO_DM LANG=en_US.UTF-8 rhgb quiet
initrd /initramfs-2.6.32-573.el6.i686.img
title Ubuntu MATE
rootnoverify (hd0,0)
chainloader +1
--------------------------------------------------------------------------------

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

Unknown BootLoader on sda4

00000000 da 5b 85 27 c9 db 3b 01 db 2f 1a 7b 3c c8 e0 8f |.[.'..;../.{<...|
00000010 73 58 2d 6f 65 4e 32 45 1d 15 d6 12 57 d2 ff 5b |sX-oeN2E....W..[|
00000020 fc 54 18 ef 90 d9 96 20 6d d1 48 0e df ac 73 4f |.T..... m.H...sO|
00000030 d2 74 cb 9f 52 ef 42 3d e9 49 6e 08 c5 69 f5 cf |.t..R.B=.In..i..|
00000040 d7 52 ea 8d d3 ff 0a c6 4d bd 2b 4b 02 66 ee 73 |.R......M.+K.f.s|
00000050 fa b3 15 48 63 4a 2b 34 fb fd 53 1e 3c ca 48 36 |...HcJ+4..S.<.H6|
00000060 d7 21 c7 24 b5 75 13 e0 2e ff 98 ed 29 fc 08 c0 |.!.$.u......)...|
00000070 77 f7 66 13 39 4c 4a 6a e8 8b aa fa ea 3a 39 bb |w.f.9LJj.....:9.|
00000080 c7 57 54 9a e2 ed 5f 98 d2 9c 08 d6 38 cc d2 bc |.WT..._.....8...|
00000090 e4 a1 45 d5 d8 27 55 b3 ee 42 35 20 7c b1 87 57 |..E..'U..B5 |..W|
000000a0 9e 74 54 3d bc 98 de 86 07 ac 34 7b 4c 54 b2 a9 |.tT=......4{LT..|
000000b0 9a a0 03 78 fd 09 51 f8 58 5b a3 1d 9c 5d b2 56 |...x..Q.X[...].V|
000000c0 e6 f8 f8 52 7d 5c 16 98 5e d7 b8 68 3f 7f 9e ce |...R}\..^..h?...|
000000d0 74 ec fe d5 ae 7d ce 69 1e 23 4d 79 de f2 db 6a |t....}.i.#My...j|
000000e0 7f c2 c6 14 6e c4 cd c2 0d 4e 54 dd 3a b4 50 61 |....n....NT.:.Pa|
000000f0 e1 cf 8f 5e 89 45 d1 cf 80 13 a0 89 13 e0 76 96 |...^.E........v.|
00000100 1c a1 56 ff f2 04 f3 bb 85 4a e1 ed fb 8a 38 05 |..V......J....8.|
00000110 02 1b 63 06 68 80 77 56 5a 07 7a fc c8 60 a3 a7 |..c.h.wVZ.z..`..|
00000120 5f 06 44 08 f4 bf 80 bb 0d f4 2b a2 c6 10 74 01 |_.D.......+...t.|
00000130 e9 06 86 ae 84 c1 7c 3c 68 fe 3e 69 c3 91 31 bd |......|<h.>i..1.|
00000140 35 aa 82 55 3d e3 f5 32 2d 5e 48 c1 44 f8 ad cb |5..U=..2-^H.D...|
00000150 d9 83 02 16 67 f9 ef 95 60 34 ea 2d da 6c a7 14 |....g...`4.-.l..|
00000160 fc 44 7e f3 0d 06 d5 68 9d b7 84 00 52 02 ed 28 |.D~....h....R..(|
00000170 a3 e7 6a eb 33 86 e6 62 52 7f b9 98 88 94 49 62 |..j.3..bR.....Ib|
00000180 e0 9d 5b f5 bc e5 59 b8 32 b9 02 cc 29 78 7f 5f |..[...Y.2...)x._|
00000190 90 f2 64 4c 18 45 b5 c5 08 f6 c7 70 99 d9 a2 89 |..dL.E.....p....|
000001a0 0a 2f 04 a4 58 d3 4a 83 8f 61 4f 7c 38 fd b9 d3 |./..X.J..aO|8...|
000001b0 2b 39 f1 3d 40 13 f9 a6 35 22 b3 1f 26 27 00 fe |+9.=@...5"..&'..|
000001c0 ff ff 83 fe ff ff 00 08 00 00 00 a0 0f 00 00 fe |................|
000001d0 ff ff 05 fe ff ff 00 a8 0f 00 00 10 5e 04 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

Unknown BootLoader on sda6

00000000 4c 55 4b 53 ba be 00 01 61 65 73 00 00 00 00 00 |LUKS....aes.....|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 00 00 00 00 78 74 73 2d 70 6c 61 69 |........xts-plai|
00000030 6e 36 34 00 00 00 00 00 00 00 00 00 00 00 00 00 |n64.............|
00000040 00 00 00 00 00 00 00 00 73 68 61 31 00 00 00 00 |........sha1....|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 00 00 00 00 00 00 00 00 00 00 10 00 00 00 00 40 |...............@|
00000070 48 46 0c f5 00 2d 1c bd 61 3d a0 e1 e1 1d 9c 6d |HF...-..a=.....m|
00000080 a0 c3 2c e8 89 0e 8e ad aa 94 c4 bd ec 2b 72 84 |..,..........+r.|
00000090 7e e6 31 d6 9f 9a c8 fa 8b 78 30 c2 c8 1c 51 f2 |~.1......x0...Q.|
000000a0 c4 ff 48 a9 00 00 8f 11 62 34 64 30 63 33 30 30 |..H.....b4d0c300|
000000b0 2d 65 36 64 37 2d 34 37 38 64 2d 38 37 64 38 2d |-e6d7-478d-87d8-|
000000c0 62 38 35 39 66 34 32 30 34 34 38 33 00 00 00 00 |b859f4204483....|
000000d0 00 ac 71 f3 00 02 3c 6a d4 94 68 24 6e e6 5d 42 |..q...<j..h$n.]B|
000000e0 44 52 f8 b9 66 0e a9 ba ef 95 8f 64 0e 17 66 28 |DR..f......d..f(|
000000f0 10 9d 71 9a 5e 82 72 e9 00 00 00 08 00 00 0f a0 |..q.^.r.........|
00000100 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000120 00 00 00 00 00 00 00 00 00 00 02 00 00 00 0f a0 |................|
00000130 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000150 00 00 00 00 00 00 00 00 00 00 03 f8 00 00 0f a0 |................|
00000160 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000170 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000180 00 00 00 00 00 00 00 00 00 00 05 f0 00 00 0f a0 |................|
00000190 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001b0 00 00 00 00 00 00 00 00 00 00 07 e8 00 00 0f a0 |................|
000001c0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001e0 00 00 00 00 00 00 00 00 00 00 09 e0 00 00 0f a0 |................|
000001f0 00 00 de ad 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000200

Unknown BootLoader on sdb1

00000000 01 43 44 30 30 31 01 00 20 20 20 20 20 20 20 20 |.CD001.. |
00000010 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |
00000020 20 20 20 20 20 20 20 20 55 62 75 6e 74 75 2d 4d | Ubuntu-M|
00000030 41 54 45 20 31 35 2e 30 34 20 69 33 38 36 20 20 |ATE 15.04 i386 |
00000040 20 20 20 20 20 20 20 20 00 00 00 00 00 00 00 00 | ........|
00000050 90 a3 08 00 00 08 a3 90 00 00 00 00 00 00 00 00 |................|
00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000070 00 00 00 00 00 00 00 00 01 00 00 01 01 00 00 01 |................|
00000080 00 08 08 00 4e 03 00 00 00 00 03 4e 66 00 00 00 |....N......Nf...|
00000090 00 00 00 00 00 00 00 67 00 00 00 00 22 00 23 00 |.......g....".#.|
000000a0 00 00 00 00 00 23 00 08 00 00 00 00 08 00 73 04 |.....#........s.|
000000b0 16 0d 0c 27 00 02 00 00 01 00 00 01 01 00 20 20 |...'.......... |
000000c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | |
*
000001b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 58 4f | XO|
000001c0 52 52 49 53 4f 2d 31 2e 31 2e 38 20 32 30 31 31 |RRISO-1.1.8 2011|
000001d0 2e 31 31 2e 32 30 2e 31 37 33 30 30 31 2c 20 4c |.11.20.173001, L|
000001e0 49 42 49 53 4f 42 55 52 4e 2d 31 2e 31 2e 38 2c |IBISOBURN-1.1.8,|
000001f0 20 4c 49 42 49 53 4f 46 53 2d 31 2e 31 2e 36 2c | LIBISOFS-1.1.6,|
00000200


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

cat: write error: Broken pipe
File descriptor 9 (/proc/13944/mounts) leaked on lvs invocation. Parent PID 20941: bash
File descriptor 63 (pipe:[162711]) leaked on lvs invocation. Parent PID 20941: bash
No volume groups found

ADDITIONAL INFORMATION :
=================== log of boot-info 2015-08-30__20h23 ===================
boot-info version : 4ppa33
boot-sav version : 4ppa33
glade2script version : 3.2.2~ppa47~saucy
boot-sav-extra version : 4ppa33
boot-info is executed in live-session (Ubuntu 15.04, vivid, Ubuntu, i686)
CPU op-mode(s): 32-bit, 64-bit
file=/cdrom/preseed/ubuntu-mate.seed boot=casper initrd=/casper/initrd.lz quiet splash --- maybe-ubiquity
ls: cannot access /home/usr/.config: No such file or directory
mount: unknown filesystem type 'crypto_LUKS'
mount /dev/sda6 : Error code 32
mount -r /dev/sda6 /mnt/boot-sav/sda6
mount: unknown filesystem type 'crypto_LUKS'
mount -r /dev/sda6 : Error code 32

=================== os-prober:
/dev/sda1:Ubuntu 15.04 (15.04):Ubuntu:linux

=================== blkid:
/dev/sda1: UUID="cb271cf1-81d0-4994-9de3-aa6c934b3a93" TYPE="ext4" PARTUUID="503e107d-01"
/dev/sda2: UUID="fb7245d7-650e-4543-9bc3-cbd6bf770031" TYPE="ext4" PARTUUID="503e107d-02"
/dev/sda5: UUID="137b63d7-30ed-4898-9168-9868f02c52fc" TYPE="ext4" PARTUUID="503e107d-05"
/dev/loop0: TYPE="squashfs"
/dev/sda3: UUID="00b7090c-6a6d-4b4a-80fa-d642e5cf3b91" TYPE="swap" PARTUUID="503e107d-03"
/dev/sda6: UUID="b4d0c300-e6d7-478d-87d8-b859f4204483" TYPE="crypto_LUKS" PARTUUID="503e107d-06"
/dev/sdb1: UUID="2015-04-22-13-12-39-00" LABEL="Ubuntu-MATE 15.04 i386" TYPE="iso9660" PARTUUID="04ecbde7-01"


1 disks with OS, 1 OS : 1 Linux, 0 MacOS, 0 Windows, 0 unknown type OS.

mount: unknown filesystem type 'crypto_LUKS'
mount /dev/sda6 : Error code 32
mount -r /dev/sda6 /mnt/boot-sav/sda6
mount: unknown filesystem type 'crypto_LUKS'
mount -r /dev/sda6 : Error code 32
sfdisk: Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.

=================== sda1/etc/grub.d/ :
drwxr-xr-x 2 root root 4096 Aug 23 21:08 grub.d
total 76
-rwxr-xr-x 1 root root 9424 Jun 26 11:16 00_header
-rwxr-xr-x 1 root root 6058 Feb 11 2015 05_debian_theme
-rwxr-xr-x 1 root root 12261 Apr 6 20:44 10_linux
-rwxr-xr-x 1 root root 11082 Apr 6 20:44 20_linux_xen
-rwxr-xr-x 1 root root 1992 Mar 6 16:19 20_memtest86+
-rwxr-xr-x 1 root root 11692 Apr 6 20:44 30_os-prober
-rwxr-xr-x 1 root root 1416 Apr 6 20:44 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Apr 6 20:44 40_custom
-rwxr-xr-x 1 root root 216 Apr 6 20:44 41_custom
-rw-r--r-- 1 root root 483 Apr 6 20:44 README




=================== sda1/etc/default/grub :

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"



/mnt/boot-sav/sda5/grub/menu.lst detected

=================== UEFI/Legacy mode:
This live-session is not EFI-compatible.
SecureBoot maybe enabled.


=================== PARTITIONS & DISKS:
sda1 : sda, not-sepboot, grubenv-ok grub2, grub-pc , update-grub, 32, with-boot, is-os, not--efi--part, fstab-without-boot, fstab-without-efi, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, apt-get, grub-install, with--usr, fstab-without-usr, not-sep-usr, standard, not-far, /mnt/boot-sav/sda1.
sda2 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda2.
sda5 : sda, is-sepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda5.
sda6 : sda, maybesepboot, no-grubenv nogrub, no-docgrub, no-update-grub, 32, no-boot, no-os, not--efi--part, part-has-no-fstab, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot, nopakmgr, nogrubinstall, no---usr, part-has-no-fstab, not-sep-usr, standard, farbios, /mnt/boot-sav/sda6.

sda : not-GPT, BIOSboot-not-needed, has-no-EFIpart, not-usb, has-os, 2048 sectors * 512 bytes


=================== parted -l:

Model: ATA ST9160823AS (scsi)
Disk /dev/sda: 160GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 1049kB 45.0GB 45.0GB primary ext4 boot
2 45.0GB 120GB 75.0GB primary ext4
3 120GB 122GB 2000MB primary linux-swap(v1)
4 122GB 160GB 38.0GB extended
5 122GB 123GB 524MB logical ext4
6 123GB 160GB 37.5GB logical


Model: Kingston DataTraveler 2.0 (scsi)
Disk /dev/sdb: 7803MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 32.8kB 1159MB 1159MB primary boot, hidden

=================== parted -lm:

BYT;
/dev/sda:160GB:scsi:512:512:msdos:ATA ST9160823AS:;
1:1049kB:45.0GB:45.0GB:ext4::boot;
2:45.0GB:120GB:75.0GB:ext4::;
3:120GB:122GB:2000MB:linux-swap(v1)::;
4:122GB:160GB:38.0GB:::;
5:122GB:123GB:524MB:ext4::;
6:123GB:160GB:37.5GB:::;

BYT;
/dev/sdb:7803MB:scsi:512:512:msdos:Kingston DataTraveler 2.0:;
1:32.8kB:1159MB:1159MB:::boot, hidden;

=================== lsblk:
KNAME TYPE FSTYPE SIZE LABEL MODEL UUID
sda disk 149.1G ST9160823AS
sda1 part ext4 41.9G cb271cf1-81d0-4994-9de3-aa6c934b3a93
sda2 part ext4 69.9G fb7245d7-650e-4543-9bc3-cbd6bf770031
sda3 part swap 1.9G 00b7090c-6a6d-4b4a-80fa-d642e5cf3b91
sda4 part 1K
sda5 part ext4 500M 137b63d7-30ed-4898-9168-9868f02c52fc
sda6 part crypto_LUKS 35G b4d0c300-e6d7-478d-87d8-b859f4204483
sdb disk iso9660 7.3G Ubuntu-MATE 15.04 i386 DataTraveler 2.0 2015-04-22-13-12-39-00
sdb1 part iso9660 1.1G Ubuntu-MATE 15.04 i386 2015-04-22-13-12-39-00
sr0 rom 1024M DVD/CDRW UJDA775
loop0 loop squashfs 1G

KNAME ROTA RO RM STATE MOUNTPOINT
sda 1 0 0 running
sda1 1 0 0 /mnt/boot-sav/sda1
sda2 1 0 0 /mnt/boot-sav/sda2
sda3 1 0 0 [SWAP]
sda4 1 0 0
sda5 1 0 0 /mnt/boot-sav/sda5
sda6 1 0 0
sdb 1 0 1 running
sdb1 1 0 1
sr0 1 0 1 running
loop0 1 1 0 /rofs


=================== mount:
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=1011260k,nr_inodes=214124,mode=7 55)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode =000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=204568k,mode=755)
/dev/sdb on /cdrom type iso9660 (ro,noatime)
/dev/loop0 on /rofs type squashfs (ro,noatime)
/cow on / type overlay (rw,relatime,lowerdir=//filesystem.squashfs,upperdir=/cow/upper,workdir=/cow/work)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_age nt=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset,clone_chil dren)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,m axproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /run/user/999 type tmpfs (rw,nosuid,nodev,relatime,size=204568k,mode=700,ui d=999,gid=999)
/dev/sda1 on /mnt/boot-sav/sda1 type ext4 (rw,relatime,data=ordered)
/dev/sda2 on /mnt/boot-sav/sda2 type ext4 (rw,relatime,data=ordered)
/dev/sda5 on /mnt/boot-sav/sda5 type ext4 (rw,relatime,data=ordered)


=================== ls:
/sys/block/sda (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sda1 sda2 sda3 sda4 sda5 sda6 size slaves stat subsystem trace uevent
/sys/block/sdb (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro sdb1 size slaves stat subsystem trace uevent
/sys/block/sr0 (filtered): alignment_offset bdi capability dev device discard_alignment events events_async events_poll_msecs ext_range holders inflight power queue range removable ro size slaves stat subsystem trace uevent
/dev (filtered): autofs block bsg btrfs-control bus cdrom cdrw char console core cpu cpu_dma_latency cuse disk dri dvd ecryptfs fb0 fd full fuse fw0 hpet hugepages i2c-0 i2c-1 i2c-2 initctl input kmsg kvm log mapper mcelog mem memory_bandwidth mqueue net network_latency network_throughput null port ppp psaux ptmx pts random rfkill rtc rtc0 sda sda1 sda2 sda3 sda4 sda5 sda6 sdb sdb1 sg0 sg1 sg2 shm snapshot snd sr0 stderr stdin stdout tpm0 uhid uinput urandom vfio vga_arbiter vhci vhost-net xconsole zero
ls /dev/mapper: control
ls: cannot access /usr/lib/syslinux: No such file or directory

=================== df -Th:

Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 988M 0 988M 0% /dev
tmpfs tmpfs 200M 9.3M 191M 5% /run
/dev/sdb iso9660 1.1G 1.1G 0 100% /cdrom
/dev/loop0 squashfs 1.1G 1.1G 0 100% /rofs
/cow overlay 999M 207M 792M 21% /
tmpfs tmpfs 999M 264K 999M 1% /dev/shm
tmpfs tmpfs 5.0M 8.0K 5.0M 1% /run/lock
tmpfs tmpfs 999M 0 999M 0% /sys/fs/cgroup
tmpfs tmpfs 999M 756K 999M 1% /tmp
tmpfs tmpfs 200M 36K 200M 1% /run/user/999
/dev/sda1 ext4 42G 4.1G 35G 11% /mnt/boot-sav/sda1
/dev/sda2 ext4 69G 20G 47G 30% /mnt/boot-sav/sda2
/dev/sda5 ext4 477M 66M 382M 15% /mnt/boot-sav/sda5

=================== fdisk -l:

Disk /dev/loop0: 1 GiB, 1105805312 bytes, 2159776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 149.1 GiB, 160041885696 bytes, 312581808 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x503e107d

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 87889919 87887872 41.9G 83 Linux
/dev/sda2 87889920 234375167 146485248 69.9G 83 Linux
/dev/sda3 234375168 238280703 3905536 1.9G 82 Linux swap / Solaris
/dev/sda4 238280704 312580095 74299392 35.4G 5 Extended
/dev/sda5 238282752 239306751 1024000 500M 83 Linux
/dev/sda6 239308800 312580095 73271296 35G 83 Linux

Disk /dev/sdb: 7.3 GiB, 7803174912 bytes, 15240576 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x04ecbde7

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 2264639 2264576 1.1G 17 Hidden HPFS/NTFS


gui-tab-other.sh: line 94: _checkbutton_repairfilesystems: command not found


=================== Suggested repair
The default repair of the Boot-Repair utility would reinstall the grub2 of sda1 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s repair-filesystems


=================== Advice in case of suggested repair
You may want to retry after decrypting your partitions. (https://help.ubuntu.com/community/EncryptedPrivateDirectory)
Do you want to continue?


=================== User settings
The settings chosen by the user will not act on the boot.

oldfred
August 30th, 2015, 11:33 PM
I do not know encryption either.
But think you may have to install software to decrypt your CentOS install.
While discussing size change also shows how to mount an encrypted partition.
How to: Mount & Resize an Encrypted Partition (LUKS)
http://ubuntuforums.org/showthread.php?p=4530641


sudo apt-get update && sudo apt-get install lvm2 cryptsetup

Then see if you can mount your encrypted partitions. It should ask for passphrase.
Leave it mounted and rerun the grub update.
sudo update-grub

If not we can install grub legacy to the partition boot sector of your CentOS install and do a chain load from grub2 to grub legacy.

spython01
August 31st, 2015, 03:06 AM
I do not know encryption either.
But think you may have to install software to decrypt your CentOS install.
While discussing size change also shows how to mount an encrypted partition.
How to: Mount & Resize an Encrypted Partition (LUKS)
http://ubuntuforums.org/showthread.php?p=4530641


sudo apt-get update && sudo apt-get install lvm2 cryptsetup

Then see if you can mount your encrypted partitions. It should ask for passphrase.
Leave it mounted and rerun the grub update.
sudo update-grub

If not we can install grub legacy to the partition boot sector of your CentOS install and do a chain load from grub2 to grub legacy.

I read through the How to Resize a LUKS Encrypted File System (http://ubuntuforums.org/showthread.php?p=4530641) article but I have to admit that the steps presented there are beyond the scope of my knowledge but still have some questions:
(1) Do I just need to do step 1?

sudo apt-get update && sudo apt-get install lvm2 cryptsetup
(2) How would I mount the encrypted partition? Is the one for CentOS the one called sda6?
(3) Do I do all of this via a Live CD/USB or just do it in my now accessible Ubuntu MATE partition? Same goes for

sudo update-grub

Sorry for all of the questions. I appreciate your patience.

I don't have much vested in the CentOS partition. Would it make sense just to reinstall it but without the encryption activated?

oldfred
August 31st, 2015, 04:35 AM
I do not know enough about encryption to help.
If you do not know encryption best not to use it.

You can just mount using Nautilus.
Or use command line.
After adding the cyptsetup driver.

I think you need to use most of the commands in the beginning of the link as it seems you have to mount LVM & encrypted partition that is inside or part of the LVM.
Probably worth learning if you want to know more about it.

spython01
September 3rd, 2015, 09:35 PM
While I still cannot get GRUB to dual boot me between Ubuntu MATE and CentOS, I am now able to access MATE which is my main operating system, thanks to the help of oldfred. Therefore, I'm marking this thread as Solved. Thanks!