LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-09-2008, 06:25 PM   #1
bbjam
LQ Newbie
 
Registered: Sep 2008
Distribution: Ubuntu 64
Posts: 4

Rep: Reputation: 0
Question System will only boot if bouth cloned HD are installed


The system setup is this:

There is a PCI sata card with 2 sata slots. Conected to each slot is a hard drive. Bouth hard drives have the same data on them, as I just cloned them with dd.
one is a Western Digital, I don't know what the other one is(lets call it HD2).

If I connect the WD to slot 2 and HD2 to slot 1 the system boots using the boot partition on the WD drive and then LVM uses the second partition on the WD as /.

however

If I connect HD2 to slot 2 and connect WD to slot 1 the system still boots using the boot partition on WD(bad) but LVM uses the second partition of HD2 as /(good)

Any configuration with only one drive fails before GRUB with something like:
Boot Failure:System halted

I am using 32bit CENTOS 5

kernel:
2.6.18-92.1.10.el5

/sbin/lspci:
00:00.0 Host bridge: Intel Corporation 82850 850 (Tehama) Chipset Host Bridge (MCH) (rev 04)
00:01.0 PCI bridge: Intel Corporation 82850 850 (Tehama) Chipset AGP Bridge (rev 04)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 04)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 04)
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 Controller (rev 04)
00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 04)
00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus Controller (rev 04)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB Controller #1 (rev 04)
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio Controller (rev 04)
01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440] (rev a3)
02:08.0 Ethernet controller: Intel Corporation 82801BA/BAM/CA/CAM Ethernet Controller (rev 03)
02:0b.0 Mass storage controller: Promise Technology, Inc. PDC20375 (SATA150 TX2plus) (rev 02)

I'm not realy sure what other info is needed, please ask.
 
Old 09-09-2008, 06:35 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
You probably need to change some of the information in /boot/grub/menu.lst on the clone. If the menu.lst is the same on both drives it means that the clone is probably referencing files on the original drive when it should be referencing the same files on the cloned drive.

-------------------
Steve Stites
 
Old 09-09-2008, 06:54 PM   #3
bbjam
LQ Newbie
 
Registered: Sep 2008
Distribution: Ubuntu 64
Posts: 4

Original Poster
Rep: Reputation: 0
What info do you need to help me do that?
 
Old 09-10-2008, 11:13 AM   #4
bbjam
LQ Newbie
 
Registered: Sep 2008
Distribution: Ubuntu 64
Posts: 4

Original Poster
Rep: Reputation: 0
Here is my /boot/grub/menu.lst
Code:
# 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,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.10.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.1.10.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-92.1.10.el5.img
title CentOS (2.6.18-92.1.6.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-92.1.6.el5.img
title CentOS (2.6.18-92.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-92.el5.img
Here is my /boot/grub/grub.conf
Code:
# 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,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.10.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.1.10.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-92.1.10.el5.img
title CentOS (2.6.18-92.1.6.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-92.1.6.el5.img
title CentOS (2.6.18-92.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-92.el5.img
Here is my /boot/grub/device.map
Code:
# this device map was generated by anaconda
(hd0)     /dev/sda
Hope that helps anyone trying to help.
 
Old 09-14-2008, 10:37 AM   #5
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
You didn't say if, when booted with the original HD, you can read the contents of the 2nd disk alright. A dd clone tends to work only if the geometries (cylinders, blocks, and total size) are exactly identical. Please check if you can mount the partitions on your cloned /dev/sdb disk alright. If that fails, please post back what fdisk /dev/sdb (and then "p" for a description of the partition table) gives.

Then, the root device is made by LVM (root=/dev/VolGroup00/LogVol00 in the grub config). That is set up in the initial ramdisk, and I'm not sure that this works on the clone the same way. Do you know how to look at the contents of that initial ramdisk?

Please do the first step first.

Cheers, mlp
 
Old 09-15-2008, 09:26 PM   #6
bbjam
LQ Newbie
 
Registered: Sep 2008
Distribution: Ubuntu 64
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mlp68 View Post
Then, the root device is made by LVM (root=/dev/VolGroup00/LogVol00 in the grub config).
That is strange, the LVM manager GUI tels me that the boot partition is not part of LVM.

I do not know how to mount the other drive because its LVM formated.
 
  


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
Valhalla 7.3 System won't boot without both hard drives installed AOI_Bandit Linux - Hardware 1 08-04-2008 03:11 PM
How to make a cloned partition boot? Q.. Linux - General 4 12-25-2007 08:41 PM
Cloned harddisk doesn't boot with LILO in MBR Kristian2 Slackware 8 07-24-2007 01:00 PM
boot problem with cloned hard drives stevebrooks452 Linux - Software 4 03-23-2006 03:07 AM
Newly installed slackware system will not boot yelo Slackware - Installation 5 05-11-2004 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:11 AM.

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