LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-17-2014, 10:43 AM   #1
FMCDH
Member
 
Registered: Feb 2014
Posts: 34

Rep: Reputation: Disabled
(SOLVED)Help, Tried to install 2nd copy of Linux and now I cant boot 1st copy


SOLVED....Thanks everyone who contributed in the fix!


I have an older Dell laptop (vostro 1500) with a new 500g HD. I had Mint-16 installed and setup just the way I like it. I wanted to try Centos6 and setup a vm. When I installed C06 it saw the ONE 500g partition. It asked where I wanted to install, how and what I wanted to do.

I told it to resize the drive to two 250g's and install on the 2nd one. It did what I asked and rebooted to start. I thought I would see a boot menu with two distros to choose from but instead I only see C06.

Once booted into the C06 I can see the other partition with all my stuff (thank God) but I have no clue how to fix this and make it dual boot.

I tried reading different posts on how to fix it but none dealt with my specific issue. At this point I want to take the path of least resistance. If its easier to just bring back my Mint16 thats good enough as I have to work this week and need my bookmarks and email. If its not to much trouble to dual boot both then great, lets do it.

Is there an easy way to fix this? I assume that C06 trashed the grub for Mint, am I correct?

Help and thanks for assisting me...........

Gparted shows..........

/dev/sda1--ext4 -231g -unused 178g-flag- boot
/dev/sda3-- ext4-500mib
/dev/sda4 --lvm2 pv-mount point- vol group-231g unused->(zero empty space) flag lvm
/dev/sda2 -- extended-1.99g
/dev/sda5-- linux swap -1.99g

Last edited by FMCDH; 02-19-2014 at 10:16 AM.
 
Old 02-17-2014, 11:16 AM   #2
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,838

Rep: Reputation: 763Reputation: 763Reputation: 763Reputation: 763Reputation: 763Reputation: 763Reputation: 763
Based on the information you posted, I would guess you have Mint on sda1. You can boot CentOS and open the /boot/grub/grub.conf file as root and put the entries below in that file and save it. Either should work if Mint is on sda1:

Quote:
title Mint
root (hd0,0)
kernel /boot/grub/core.img

title Mint
root (hd0,0)
chainloader +1
If neither option works, go to the site below and read the instructions for the bootinfoscript, download and run it and post the output, a results.txt file:

http://sourceforge.net/projects/bootinfoscript/
 
Old 02-17-2014, 11:38 AM   #3
FMCDH
Member
 
Registered: Feb 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
OK tried that it did not work. There was no file there so I created it and the contents. I also do not see the .img file there that your commnds point to (/boot/grub/core.img)


Quote:
Originally Posted by yancek View Post
Based on the information you posted, I would guess you have Mint on sda1. You can boot CentOS and open the /boot/grub/grub.conf file as root and put the entries below in that file and save it. Either should work if Mint is on sda1:



If neither option works, go to the site below and read the instructions for the bootinfoscript, download and run it and post the output, a results.txt file:

http://sourceforge.net/projects/bootinfoscript/
 
Old 02-17-2014, 11:49 AM   #4
FMCDH
Member
 
Registered: Feb 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
Ugh had a heck of a time running that script. I am new to linux and do not know any commands. I could not figure out how to run the file in downloads so I moved it to root and ran it. C06 does not have a "terminal from here" like mint

..........
Boot Info Script 0.61 [1 April 2012]


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

=> Grub Legacy0.97 is installed in the MBR of /dev/sdb and looks at sector
485919718 on boot drive #1 for the stage2 file. A stage2 file is at this
location on /dev/sdb. Stage2 looks on partition #3 for /grub/grub.conf..

sdb1: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Linux Mint 16 Petra
Boot files: /boot/grub/grub.cfg /boot/grub/grub.conf /etc/fstab

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

sdb3: __________________________________________________________________________

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

sdb4: __________________________________________________________________________

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

VolGroup-lv_root': _____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

VolGroup-lv_home': _____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''

VolGroup-lv_swap': _____________________________________________________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

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

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 * 2,048 485,378,047 485,376,000 83 Linux
/dev/sdb2 972,599,294 976,771,071 4,171,778 5 Extended
/dev/sdb5 972,599,296 976,771,071 4,171,776 82 Linux swap / Solaris
/dev/sdb3 485,378,048 486,402,047 1,024,000 83 Linux
/dev/sdb4 486,402,048 972,597,247 486,195,200 8e Linux LVM


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/mapper/VolGroup-lv_home 9be0e4bf-d6a3-476d-8579-9a220eea4fc2 ext4
/dev/mapper/VolGroup-lv_root 4624f1a2-a52c-4c6b-be5a-7fe8a7a37c8d ext4
/dev/mapper/VolGroup-lv_swap 493db82f-ad45-47cd-8ae9-753b231de7c9 swap
/dev/sdb1 8a346485-0658-4dea-9254-5b4b8d3d32d3 ext4
/dev/sdb3 5a0b9236-318e-4caa-a17b-6aa4fab5063f ext4
/dev/sdb4 Mq02KX-KM7a-aGGV-aqlA-IV5K-c8tI-pbeHcV LVM2_member
/dev/sdb5 ebb7fc10-c8f6-41a9-8935-a5d9648e9d4d swap

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
VolGroup-lv_home
VolGroup-lv_root
VolGroup-lv_swap

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

Device Mount_Point Type Options

/dev/mapper/VolGroup-lv_home /home ext4 (rw)
/dev/mapper/VolGroup-lv_root / ext4 (rw)
/dev/sdb1 /media/8a346485-0658-4dea-9254-5b4b8d3d32d3 ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb3 /boot ext4 (rw)


=========================== sdb1/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 [ 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 8a346485-0658-4dea-9254-5b4b8d3d32d3
else
search --no-floppy --fs-uuid --set=root 8a346485-0658-4dea-9254-5b4b8d3d32d3
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=-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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/06_mint_theme ###
set menu_color_normal=white/black
set menu_color_highlight=white/light-gray
### END /etc/grub.d/06_mint_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 'Linux Mint 16 Cinnamon 32-bit, 3.11.0-12-generic (/dev/sda1)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
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 8a346485-0658-4dea-9254-5b4b8d3d32d3
else
search --no-floppy --fs-uuid --set=root 8a346485-0658-4dea-9254-5b4b8d3d32d3
fi
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=8a346485-0658-4dea-9254-5b4b8d3d32d3 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.11.0-12-generic
}
menuentry 'Linux Mint 16 Cinnamon 32-bit, 3.11.0-12-generic (/dev/sda1) -- recovery mode' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
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 8a346485-0658-4dea-9254-5b4b8d3d32d3
else
search --no-floppy --fs-uuid --set=root 8a346485-0658-4dea-9254-5b4b8d3d32d3
fi
echo 'Loading Linux 3.11.0-12-generic ...'
linux /boot/vmlinuz-3.11.0-12-generic root=UUID=8a346485-0658-4dea-9254-5b4b8d3d32d3 ro recovery nomodeset
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.11.0-12-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/10_lupin ###
### END /etc/grub.d/10_lupin ###

### 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 8a346485-0658-4dea-9254-5b4b8d3d32d3
else
search --no-floppy --fs-uuid --set=root 8a346485-0658-4dea-9254-5b4b8d3d32d3
fi
linux16 /boot/memtest86+.bin
}
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 8a346485-0658-4dea-9254-5b4b8d3d32d3
else
search --no-floppy --fs-uuid --set=root 8a346485-0658-4dea-9254-5b4b8d3d32d3
fi
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
--------------------------------------------------------------------------------

========================== sdb1/boot/grub/grub.conf: ===========================

--------------------------------------------------------------------------------
title Mint
root (hd0,0)
kernel /boot/grub/core.img

title Mint
root (hd0,0)
chainloader +1
--------------------------------------------------------------------------------

=============================== sdb1/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=8a346485-0658-4dea-9254-5b4b8d3d32d3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=ebb7fc10-c8f6-41a9-8935-a5d9648e9d4d none swap sw 0 0
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

120.251838684 = 129.119428608 boot/grub/grub.cfg 1
124.131813049 = 133.285519360 boot/grub/grub.conf 1
1.345626831 = 1.444855808 boot/initrd.img-3.11.0-12-generic 13
1.215820312 = 1.305477120 boot/vmlinuz-3.11.0-12-generic 2
1.345626831 = 1.444855808 initrd.img 13
1.215820312 = 1.305477120 vmlinuz 2

============================= sdb3/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/VolGroup-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-431.5.1.el6.i686)
root (hd0,2)
kernel /vmlinuz-2.6.32-431.5.1.el6.i686 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.5.1.el6.i686.img
title CentOS (2.6.32-431.el6.i686)
root (hd0,2)
kernel /vmlinuz-2.6.32-431.el6.i686 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.el6.i686.img
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)

231.705568314 = 248.791959552 grub/grub.conf 2
231.705568314 = 248.791959552 grub/menu.lst 2
231.704695702 = 248.791022592 grub/stage2 1
231.510311127 = 248.582303744 initramfs-2.6.32-431.5.1.el6.i686.img 2
231.478704453 = 248.548366336 initramfs-2.6.32-431.el6.i686.img 2
231.515182495 = 248.587534336 initrd-2.6.32-431.5.1.el6.i686kdump.img 1
231.483548164 = 248.553567232 initrd-2.6.32-431.el6.i686kdump.img 1
231.492986679 = 248.563701760 vmlinuz-2.6.32-431.5.1.el6.i686 2
231.461736679 = 248.530147328 vmlinuz-2.6.32-431.el6.i686 2

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

Unknown BootLoader on sdb2

00000000 14 88 9c ac d5 9d 7a 7c ad ac 9f 53 ef 00 a4 69 |......z|...S...i|
00000010 f5 7d f8 87 a8 94 a7 be fc 55 6f a0 95 e1 30 fe |.}.......Uo...0.|
00000020 4a 40 0e 6e 7f 82 3d 41 87 a5 03 35 5f 2b 2b ca |J@.n..=A...5_++.|
00000030 84 a1 f4 15 0b 57 00 03 83 c7 85 bc ca 83 ac 5c |.....W.........\|
00000040 3f 02 f7 0b 46 c9 5d 2b 07 e7 3c 06 20 5e fd 4c |?...F.]+..<. ^.L|
00000050 27 52 85 9c 31 1d b4 f3 2d e2 01 f7 8f ac 24 0a |'R..1...-.....$.|
00000060 ed 44 69 0a 95 a0 97 f2 f7 e2 5a 9d 67 ce ee b4 |.Di.......Z.g...|
00000070 5f 7f 97 03 22 78 35 9f cb 08 40 cd 8a 8c 69 07 |_..."x5...@...i.|
00000080 68 e7 af 95 d3 95 76 30 bc b5 a4 b0 39 1c d5 fd |h.....v0....9...|
00000090 df 78 ee f8 e3 21 c0 c2 1f 31 9d 2d 40 46 3c 89 |.x...!...1.-@F<.|
000000a0 9e 91 8f 0a 54 d7 42 ea 07 f3 f1 4d 4f a6 07 76 |....T.B....MO..v|
000000b0 19 3b d1 46 19 01 a9 cb cd 9a 39 cd a4 af 6f 20 |.;.F......9...o |
000000c0 f3 f3 8c 8e df 9b e2 22 29 96 37 19 81 dc 2e 7c |.......").7....||
000000d0 3d 1c 60 8e 00 a6 00 0c d3 7f dd e7 e1 87 0e de |=.`.............|
000000e0 4a 24 ca a0 68 e2 4d 81 d7 da 55 ea cd 0a 31 16 |J$..h.M...U...1.|
000000f0 ca 4e bc 6f 66 46 cd 73 12 9f 66 fb 4f 34 93 1e |.N.ofF.s..f.O4..|
00000100 33 8f 54 6e fe f4 dc 06 70 64 4b 9f 0e 36 66 c4 |3.Tn....pdK..6f.|
00000110 11 5e f3 70 0c 23 30 67 f7 d7 3e 5f d7 f9 ef a9 |.^.p.#0g..>_....|
00000120 0e e0 47 96 df 9f f2 2e 64 61 a3 ec f6 5e 8a ab |..G.....da...^..|
00000130 96 05 32 9e b9 4e 15 4d 6f 21 0f 47 7b 40 12 8a |..2..N.Mo!.G{@..|
00000140 ef a4 10 60 47 46 df 9c e7 07 09 d6 a2 e9 05 b8 |...`GF..........|
00000150 1d 0e 85 c4 ee c3 7b ca 79 7a a0 57 d6 3c c2 86 |......{.yz.W.<..|
00000160 b9 f1 dc be 84 16 de f6 2d 59 3b e6 31 bf d9 fc |........-Y;.1...|
00000170 b5 73 24 15 cb 33 f2 51 35 08 cc 3c 47 b5 40 75 |.s$..3.Q5..<G.@u|
00000180 a9 d4 84 8f fa 78 c0 1a 1e 67 1e 6b c0 04 c5 31 |.....x...g.k...1|
00000190 9c 95 f1 99 80 82 33 00 d4 6b 95 87 62 b7 49 da |......3..k..b.I.|
000001a0 47 3a 70 26 02 c6 f6 f8 99 1c a9 01 07 4a e9 13 |G&.........J..|
000001b0 2d 0a de b6 f7 09 b4 67 6f 9d c0 ab 29 7f 00 fe |-......go...)...|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 a8 3f 00 00 00 |............?...|
000001d0 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 VolGroup-lv_root'


Unknown BootLoader on VolGroup-lv_home'


Unknown BootLoader on VolGroup-lv_swap'



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

One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/VolGroup-lv_root': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/VolGroup-lv_root': No such file or directory
hexdump: /dev/mapper/VolGroup-lv_root': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/VolGroup-lv_home': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/VolGroup-lv_home': No such file or directory
hexdump: /dev/mapper/VolGroup-lv_home': Bad file descriptor
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
One or more specified logical volume(s) not found.
hexdump: /dev/mapper/VolGroup-lv_swap': No such file or directory
hexdump: stdin: Bad file descriptor.
hexdump: /dev/mapper/VolGroup-lv_swap': No such file or directory
hexdump: /dev/mapper/VolGroup-lv_swap': Bad file descriptor
mdadm: No arrays found in config file or automatically

Last edited by FMCDH; 02-17-2014 at 11:52 AM.
 
Old 02-17-2014, 01:14 PM   #5
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,065
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by FMCDH View Post
OK tried that it did not work. There was no file there so I created it and the contents. I also do not see the .img file there that your commnds point to (/boot/grub/core.img)
Hi:

That bootinfoscript-60 1.tar.gz has to be extracted.
Right click on that file and choose 'extract here'
Upon doing so you will have another file that looks like a folder and it should be marked:
"bootinfoscript-061" right click on that and read the "Read Me" file.
That should help you to understand how to install and run that script.

Go to your file system in your home directory and double click on boot then double click on the grub folder. From there you should see your 'core img' file. Here it is on my system--
http://s1052.photobucket.com/user/Ul...reImg.png.html

http://www.cyberciti.biz/faq/install-tarballs/

Hope that helps-
 
1 members found this post helpful.
Old 02-17-2014, 01:25 PM   #6
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware, CentOS & Android
Posts: 3,065
Blog Entries: 1

Rep: Reputation: Disabled
Here is the commanline utility for CentOS which is Red Hat based. Big difference from Linux Mint. (different pkg management)
http://www.centos.org/docs/5/html/yu...-packages.html

To update your CentOS distribution run:

Code:
su 
your password
yourname@localhost:$ yum update
Hit Enter
 
1 members found this post helpful.
Old 02-17-2014, 02:25 PM   #7
FMCDH
Member
 
Registered: Feb 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
Im confused......

I ran the script and posted the results above, are they not visible?

The core.img file is NOT in my grub folder. In fact very little is there and I had to create the .conf file you wanted me to edit.



Quote:
Originally Posted by Ztcoracat View Post
Hi:

That bootinfoscript-60 1.tar.gz has to be extracted.
Right click on that file and choose 'extract here'
Upon doing so you will have another file that looks like a folder and it should be marked:
"bootinfoscript-061" right click on that and read the "Read Me" file.
That should help you to understand how to install and run that script.

Go to your file system in your home directory and double click on boot then double click on the grub folder. From there you should see your 'core img' file. Here it is on my system--
http://s1052.photobucket.com/user/Ul...reImg.png.html

http://www.cyberciti.biz/faq/install-tarballs/

Hope that helps-
 
Old 02-17-2014, 02:27 PM   #8
FMCDH
Member
 
Registered: Feb 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
Ran what you posted and nothing happened (nothing marked to download it said)


Quote:
Originally Posted by Ztcoracat View Post
Here is the commanline utility for CentOS which is Red Hat based. Big difference from Linux Mint. (different pkg management)
http://www.centos.org/docs/5/html/yu...-packages.html

To update your CentOS distribution run:

Code:
su 
your password
yourname@localhost:$ yum update
Hit Enter
 
Old 02-17-2014, 02:46 PM   #9
FMCDH
Member
 
Registered: Feb 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
So Im wondering which partition and which "grub" folder you wanted me to go into and edit. Remember there are -->2<-- partitions and both contain a grub folder. One is for mint and one is for Cent6. The one containing c6 has a boot.conf file but NO core.img file. The mint grub folder had neither file until I created .conf file and inserted what you posted.

Also you mention "either" fix when I only see one posted in this qoute.

This is the guts of the C6 grub file.............

.........
# 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/VolGroup-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-431.5.1.el6.i686)
root (hd0,2)
kernel /vmlinuz-2.6.32-431.5.1.el6.i686 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.5.1.el6.i686.img
title CentOS (2.6.32-431.el6.i686)
root (hd0,2)
kernel /vmlinuz-2.6.32-431.el6.i686 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
initrd /initramfs-2.6.32-431.el6.i686.img


Quote:
Originally Posted by yancek View Post
Based on the information you posted, I would guess you have Mint on sda1. You can boot CentOS and open the /boot/grub/grub.conf file as root and put the entries below in that file and save it. Either should work if Mint is on sda1:



If neither option works, go to the site below and read the instructions for the bootinfoscript, download and run it and post the output, a results.txt file:

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

Last edited by FMCDH; 02-17-2014 at 02:50 PM.
 
Old 02-17-2014, 06:18 PM   #10
FMCDH
Member
 
Registered: Feb 2014
Posts: 34

Original Poster
Rep: Reputation: Disabled
Urgent!!!!

Trying to get this going asap, anyone else can help?
 
Old 02-17-2014, 06:38 PM   #11
purevw
Member
 
Registered: Jan 2007
Location: Texas
Distribution: OpenSuSE 13, Kernel 3.13.3
Posts: 88

Rep: Reputation: 43
It looks like your Mint system used legacy grub, not grub2. Legacy grub does not have a grub.cfg file and there should not be one in /boot/grub of the Mint partition. Legacy grub uses menu.lst. You can look at /boot/grub/menu.lst in the Mint partition to get an idea of how Mint was set up to boot. Here is a section of my menu.lst (To me, grub2 is more trouble than it's worth. I have always forced legacy grub in my systems):

Quote:
title openSUSE - 3.13.3-1.g7ccf96b
root (hd0,1)
kernel /vmlinuz-3.13.3-1.g7ccf96b-default root=/dev/system/root resume=/dev/system/swap splash=silent quiet showopts vga=0x3d4
initrd /initrd-3.13.3-1.g7ccf96b-default
Now, your mint is apparently on /dev/sda1 You should be able to take Mint section (only the Mint section, not the whole text of menu.lst) of Mint's /boot/grub/menu.lst and paste the contents below the existing contents of the Centos grub.cfg file from your last post. root would be (hd0,0) for Mint, as an example.
If it's confusing, post back here with the contents of Mint's /boot/grub/menu.lst
 
Old 02-17-2014, 07:09 PM   #12
purevw
Member
 
Registered: Jan 2007
Location: Texas
Distribution: OpenSuSE 13, Kernel 3.13.3
Posts: 88

Rep: Reputation: 43
Also, here is the link for the Centos grub help page, if it might be of any help:

http://wiki.centos.org/HowTos/GrubInstallation?

It contains help on configuring grub.cfg on your Centos partition. I'll be away for a few hours. I'll check back when I can.
 
Old 02-17-2014, 07:39 PM   #13
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,344

Rep: Reputation: 184Reputation: 184
Adding these entries to the Centos6 /boot/grub/grub.conf file should fix the problem
Code:
title Mint
root (hd0,0)
kernel /boot/grub/core.img

title Mint
root (hd0,0)
chainloader +1
 
Old 02-17-2014, 07:53 PM   #14
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,344

Rep: Reputation: 184Reputation: 184
Scratch that last post. Centos grub won't be able to read the mint partition to find the core.img file. Use a live mint/ubuntu cd and follow these directions to reinstall mints grub. http://howtoubuntu.org/how-to-repair...d#.UwK8CWdVEU0
 
Old 02-17-2014, 07:58 PM   #15
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,838

Rep: Reputation: 763Reputation: 763Reputation: 763Reputation: 763Reputation: 763Reputation: 763Reputation: 763
Your bootinfoscript, for some reason shows only one drive and that shows as sdb rather than sda. The two options I posted earlier, one with the core.img entry and one a chainloader entry, should have been put it the grub.conf file for CentOS which is displayed in the output from bootinfoscript. Did you run the bootinfoscript from CentOS? I don't know why it would show both Mint and CentOS on sdb?

The Mint installation shows as being installed on sdb1 and the CentOS boot partition is sdb3. If you boot CentOS and can access the Mint partition, look in its /boot/grub/ directory to see if there is a core.img file. There should be but, if not use the chainloader entry and change it to:

Quote:
title Mint
root (hd1,0)
chainloader +1
There is no core.img file on CentOS, it is ony on systems with Grub2. You seem to have only one hard drive so it's a bit confusing that your output shows only an sdb drive unless you ran the script from a flash drive. Another problematic thing is that the grub.cfg file for Mint shows it on sda1. Delete the grub.conf file you created on Mint, it won't do anything.

So how many drives do you have? Did you run the script from CentOS? How did you install Mint, CD/DVD or flash drive? Did you have another drive attached during the install of Mint?

Also, Mint is not using Grub Legacy. You can see the Grub2 files in the output. CentOS does use Grub Legacy but there is no reason you should not be able to boot Mint with it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
again-dual boot windows XP, 1st drive-linux Mepis 8.0 2nd drive marvinudy Linux - Newbie 2 06-09-2009 09:51 AM
Anxious on Dual Boot .... 1st HD=WINXP... 2nd HD=? Mustard010 Linux - General 1 11-26-2004 02:36 PM
FC2 install on 2nd drive, no dual-boot, will install modify 1st WinXP drive at all? Equisilus Fedora - Installation 14 06-27-2004 02:38 AM
Can't boot 1st OS now after installing 2nd jillyt Linux - Newbie 3 01-05-2004 05:01 PM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM


All times are GMT -5. The time now is 05:50 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration