LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2012, 06:22 PM   #1
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 190

Rep: Reputation: Disabled
Installing two different dsitros on two different HDDs


Hi,

I first looked for a sectiont for installation problems but did not find one, so if this is not the right please, please move it to the right one.

OK! here is my problem:
I have Linux Ubuntu on my box, and since my kids use it (yes my wife and kids love Ubuntu over that other M$ thing) I decided I should buy another HDD to install (and experiment with) some other distros. I have installed Scientific Linux on that second HDD (SL is basically RHEL 6.2). The installation went flawlessly and all is fine, but I was faced with two problems:

1- When I first installed SL, it detected the secoond HDD as /dev/sda and not as /dev/sdb as Fedora did before (it is hooked up as a slave to the box. I used Fedora through the liveCD and did not install it)

2- I installed grup on /dev/sda (the one which has SL and which is hooked as a slave) and then I rebooted to Ubuntu and tried sudo grub-install dev/sda (where sda is now the one which has Ubuntu and hooked up as a master HDD). It went fine.
When I rebooted, I could not see SL and I cannot boot it up.

I have searched already for some solutions to installing 2 different dsitros on 2 different HDDs but could come up with nothing.

Can you please help me. SL is important because that's the one distro I use in my work.

Thanks in advance
 
Old 04-20-2012, 06:52 PM   #2
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 190

Original Poster
Rep: Reputation: Disabled
As a follow up, here is the output of bootinfo:
Code:
                  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 (,msdos1)/boot/grub on this drive.
 => Grub Legacy0.97 is installed in the MBR of /dev/sdb and looks at sector 
    267376 on boot drive #1 for the stage2 file.  A stage2 file is at this 
    location on /dev/sdb.  Stage2 looks on partition #1 for 
    /boot/grub/grub.conf..

sda1: __________________________________________________________________________

    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

sda2: __________________________________________________________________________

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

sda5: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Scientific Linux release 6.2 
                       (Carbon) Kernel on an
    Boot files:        /boot/grub/menu.lst /boot/grub/grub.conf /etc/fstab

sdb2: __________________________________________________________________________

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

sdb5: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 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    *          2,048   300,474,367   300,472,320  83 Linux
/dev/sda2         300,476,414   312,498,175    12,021,762   5 Extended
/dev/sda5         300,476,416   312,498,175    12,021,760  82 Linux swap / Solaris


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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/sdb1    *          2,048   621,012,991   621,010,944  83 Linux
/dev/sdb2         621,015,038   625,141,759     4,126,722   5 Extended
/dev/sdb5         621,015,040   625,141,759     4,126,720  82 Linux swap / Solaris


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/sda1        a020b54d-76b6-4f74-b64a-b33dca1e7b30   ext4       
/dev/sda5        6d6c4cea-2d30-44da-8b81-dd890f9ed1d4   swap       
/dev/sdb1        ab94bddd-5702-48f6-a4d0-d1e24c0beb8c   ext4       _SL-62-i386-Live
/dev/sdb5        a63ba7b1-4b14-434f-8bf6-aa794d8170f6   swap       

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

Device           Mount_Point              Type       Options

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


=========================== 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
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,msdos1)'
search --no-floppy --fs-uuid --set=root a020b54d-76b6-4f74-b64a-b33dca1e7b30
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd0,msdos1)'
  search --no-floppy --fs-uuid --set=root a020b54d-76b6-4f74-b64a-b33dca1e7b30
  set locale_dir=($root)/boot/grub/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
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' --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)'
	search --no-floppy --fs-uuid --set=root a020b54d-76b6-4f74-b64a-b33dca1e7b30
	linux	/boot/vmlinuz-3.2.0-23-generic root=UUID=a020b54d-76b6-4f74-b64a-b33dca1e7b30 ro   quiet splash $vt_handoff
	initrd	/boot/initrd.img-3.2.0-23-generic
}
menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
	recordfail
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root a020b54d-76b6-4f74-b64a-b33dca1e7b30
	echo	'Loading Linux 3.2.0-23-generic ...'
	linux	/boot/vmlinuz-3.2.0-23-generic root=UUID=a020b54d-76b6-4f74-b64a-b33dca1e7b30 ro recovery nomodeset 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-23-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)'
	search --no-floppy --fs-uuid --set=root a020b54d-76b6-4f74-b64a-b33dca1e7b30
	linux16	/boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
	insmod part_msdos
	insmod ext2
	set root='(hd0,msdos1)'
	search --no-floppy --fs-uuid --set=root a020b54d-76b6-4f74-b64a-b33dca1e7b30
	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Scientific Linux (2.6.32-220.4.1.el6.i686) (on /dev/sdb1)" --class gnu-linux --class gnu --class os {
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos1)'
	search --no-floppy --fs-uuid --set=root ab94bddd-5702-48f6-a4d0-d1e24c0beb8c
	linux /boot/vmlinuz-2.6.32-220.4.1.el6.i686 ro root=UUID=ab94bddd-5702-48f6-a4d0-d1e24c0beb8c rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
	initrd /boot/initramfs-2.6.32-220.4.1.el6.i686.img
}
### 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 ###
--------------------------------------------------------------------------------

=============================== sda1/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' 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/sda1 during installation
UUID=a020b54d-76b6-4f74-b64a-b33dca1e7b30 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=6d6c4cea-2d30-44da-8b81-dd890f9ed1d4 none            swap    sw              0       0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

 136.281257629 = 146.330886144  boot/grub/core.img                             1
 136.281265259 = 146.330894336  boot/grub/grub.cfg                             1
  30.041206360 = 32.256499712   boot/initrd.img-3.2.0-23-generic               3
   4.860351562 = 5.218762752    boot/vmlinuz-3.2.0-23-generic                  2
  30.041206360 = 32.256499712   initrd.img                                     3
   4.860351562 = 5.218762752    vmlinuz                                        2

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

--------------------------------------------------------------------------------
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/sda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Scientific Linux (2.6.32-220.4.1.el6.i686)
	root (hd0,0)
	kernel /boot/vmlinuz-2.6.32-220.4.1.el6.i686 ro root=UUID=ab94bddd-5702-48f6-a4d0-d1e24c0beb8c rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto  KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM
	initrd /boot/initramfs-2.6.32-220.4.1.el6.i686.img
--------------------------------------------------------------------------------

=============================== sdb1/etc/fstab: ================================

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

#
# /etc/fstab
# Created by anaconda on Fri Apr 20 17:24:43 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=ab94bddd-5702-48f6-a4d0-d1e24c0beb8c /                       ext4    defaults        1 1
UUID=a63ba7b1-4b14-434f-8bf6-aa794d8170f6 swap                    swap    defaults        0 0
UUID=6d6c4cea-2d30-44da-8b81-dd890f9ed1d4 swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
--------------------------------------------------------------------------------

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

           GiB - GB             File                                 Fragment(s)

   0.127483368 = 0.136884224    boot/grub/grub.conf                            1
   0.127483368 = 0.136884224    boot/grub/menu.lst                             1
   0.127613068 = 0.137023488    boot/grub/stage2                               1
   1.967540741 = 2.112630784    boot/initramfs-2.6.32-220.4.1.el6.i686.img     2
   1.507579803 = 1.618751488    boot/vmlinuz-2.6.32-220.4.1.el6.i686           1

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

           GiB - GB             File                                 Fragment(s)

   0.916595459 = 0.984186880    boot/extlinux/cat.c32                          1
   0.916614532 = 0.984207360    boot/extlinux/chain.c32                        1
   0.916557312 = 0.984145920    boot/extlinux/cmd.c32                          1
   0.916625977 = 0.984219648    boot/extlinux/config.c32                       1
   0.916633606 = 0.984227840    boot/extlinux/cpuid.c32                        1
   0.916645050 = 0.984240128    boot/extlinux/cpuidtest.c32                    1
   0.916656494 = 0.984252416    boot/extlinux/disk.c32                         1
   0.916690826 = 0.984289280    boot/extlinux/dmitest.c32                      1
   0.916740417 = 0.984342528    boot/extlinux/elf.c32                          1
   0.916770935 = 0.984375296    boot/extlinux/ethersel.c32                     1
   0.916793823 = 0.984399872    boot/extlinux/gfxboot.c32                      1
   0.916618347 = 0.984211456    boot/extlinux/gpxecmd.c32                      1
   0.917053223 = 0.984678400    boot/extlinux/hdt.c32                          1
   0.917060852 = 0.984686592    boot/extlinux/host.c32                         1
   0.916648865 = 0.984244224    boot/extlinux/ifcpu64.c32                      1
   0.916709900 = 0.984309760    boot/extlinux/ifcpu.c32                        1
   0.917064667 = 0.984690688    boot/extlinux/ifplop.c32                       1
   0.917076111 = 0.984702976    boot/extlinux/kbdmap.c32                       1
   0.917095184 = 0.984723456    boot/extlinux/linux.c32                        1
   0.917106628 = 0.984735744    boot/extlinux/ls.c32                           1
   0.917335510 = 0.984981504    boot/extlinux/lua.c32                          1
   0.917369843 = 0.985018368    boot/extlinux/mboot.c32                        1
   0.917411804 = 0.985063424    boot/extlinux/meminfo.c32                      1
   0.917469025 = 0.985124864    boot/extlinux/menu.c32                         1
   0.917503357 = 0.985161728    boot/extlinux/pcitest.c32                      1
   0.917518616 = 0.985178112    boot/extlinux/pmload.c32                       1
   0.917526245 = 0.985186304    boot/extlinux/pwd.c32                          1
   0.917533875 = 0.985194496    boot/extlinux/reboot.c32                       1
   0.917556763 = 0.985219072    boot/extlinux/rosh.c32                         1
   0.917560577 = 0.985223168    boot/extlinux/sanboot.c32                      1
   0.917587280 = 0.985251840    boot/extlinux/sdi.c32                          1
   0.917629242 = 0.985296896    boot/extlinux/sysdump.c32                      1
   0.917640686 = 0.985309184    boot/extlinux/vesainfo.c32                     1
   0.917793274 = 0.985473024    boot/extlinux/vesamenu.c32                     1
   0.917800903 = 0.985481216    boot/extlinux/vpdtest.c32                      1
   0.917633057 = 0.985300992    boot/extlinux/whichsys.c32                     1

============== sdb1: Version of COM32(R) files used by Syslinux: ===============

 boot/extlinux/cat.c32              :  COM32R module (v4.xx)
 boot/extlinux/chain.c32            :  COM32R module (v4.xx)
 boot/extlinux/cmd.c32              :  COM32R module (v4.xx)
 boot/extlinux/config.c32           :  COM32R module (v4.xx)
 boot/extlinux/cpuid.c32            :  COM32R module (v4.xx)
 boot/extlinux/cpuidtest.c32        :  COM32R module (v4.xx)
 boot/extlinux/disk.c32             :  COM32R module (v4.xx)
 boot/extlinux/dmitest.c32          :  COM32R module (v4.xx)
 boot/extlinux/elf.c32              :  COM32R module (v4.xx)
 boot/extlinux/ethersel.c32         :  COM32R module (v4.xx)
 boot/extlinux/gfxboot.c32          :  COM32R module (v4.xx)
 boot/extlinux/gpxecmd.c32          :  COM32R module (v4.xx)
 boot/extlinux/hdt.c32              :  COM32R module (v4.xx)
 boot/extlinux/host.c32             :  COM32R module (v4.xx)
 boot/extlinux/ifcpu64.c32          :  COM32R module (v4.xx)
 boot/extlinux/ifcpu.c32            :  COM32R module (v4.xx)
 boot/extlinux/ifplop.c32           :  COM32R module (v4.xx)
 boot/extlinux/kbdmap.c32           :  COM32R module (v4.xx)
 boot/extlinux/linux.c32            :  COM32R module (v4.xx)
 boot/extlinux/ls.c32               :  COM32R module (v4.xx)
 boot/extlinux/lua.c32              :  COM32R module (v4.xx)
 boot/extlinux/mboot.c32            :  COM32R module (v4.xx)
 boot/extlinux/meminfo.c32          :  COM32R module (v4.xx)
 boot/extlinux/menu.c32             :  COM32R module (v4.xx)
 boot/extlinux/pcitest.c32          :  COM32R module (v4.xx)
 boot/extlinux/pmload.c32           :  COM32R module (v4.xx)
 boot/extlinux/pwd.c32              :  COM32R module (v4.xx)
 boot/extlinux/reboot.c32           :  COM32R module (v4.xx)
 boot/extlinux/rosh.c32             :  COM32R module (v4.xx)
 boot/extlinux/sanboot.c32          :  COM32R module (v4.xx)
 boot/extlinux/sdi.c32              :  COM32R module (v4.xx)
 boot/extlinux/sysdump.c32          :  COM32R module (v4.xx)
 boot/extlinux/vesainfo.c32         :  COM32R module (v4.xx)
 boot/extlinux/vesamenu.c32         :  COM32R module (v4.xx)
 boot/extlinux/vpdtest.c32          :  COM32R module (v4.xx)
 boot/extlinux/whichsys.c32         :  COM32R module (v4.xx)

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

xz: (stdin): Compressed data is corrupt
I hope this may help.
 
Old 04-20-2012, 07:13 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
So you changed the BIOS boot order before you attempted to install SL ?.
Looking at that bootinfo, you should be seeing SL on the Ubuntu boot menu - do you even see a boot menu ?.

Try hitting <Shift> key during the blank screen after boot.
 
Old 04-20-2012, 07:21 PM   #4
faizlo
Member
 
Registered: Sep 2008
Location: USA
Distribution: Linux Mint Qiana
Posts: 190

Original Poster
Rep: Reputation: Disabled
Hi, and thank you for the reply.
Actually I solved my problem. My second HDD was not ON on the bios HDDs menue. I should have guessed it.

But to answer your question: Yes, Ubuntu could see SL and it was listed in the menu.

I will mark this thread as solved.

Thanks again
 
  


Reply



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
Accessing other HDDs/Booting from other HDDs Namatacka Ubuntu 2 05-07-2006 11:21 AM
Portable HDDs? draget Linux - Hardware 3 01-07-2006 01:15 AM
Which dsitros use apt? Mingthefirst Linux - Distributions 4 05-30-2004 10:57 PM
Installing where HDDs not recognized regorbro Linux - Software 0 01-20-2004 11:40 PM
two HDDs gag Linux - Newbie 8 10-14-2003 03:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration