LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 06-10-2009, 11:02 AM   #1
thephilly
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Rep: Reputation: 0
Moving hard drive with RHEL 4 from one machine to another.


Machines are similar hardware, moving from newer box (compA) to slightly older (compB). Both machines are single SATA drives. Pulled cover from compA, removed drive, replaced into compB.

When booting I get this error:
Booting 'Red Hat Enterprise Linux ES (2.6.9-67.ELsmp)'

root(hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.9-67.ELsmp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9-67.ELsmp.img

Uncompressing Linux… Ok, booting the kernel.
Red Hat nash version 4.2.1.13 starting
Reading all physical volumes. This may take a while…
No volume groups found
Volume group “VolGroup00” not found
ERROR: /bin/lvm exited abnormally! (pid 460)
Mount: error 6 mounting ext3
Mount: error 2 mounting none
Switchroot: mount failed: 22
Umount /initrd/dev failed: 2
Kernel panic – not syncing: Attempted to kill init!

-----end-----


Boot to rescue with cd, mounts ok

#fdisk -l

Disk /dev/sda: 80.0 GB,

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 9729 78043770 8e Linux LVM

Any help would be appreciated.
 
Old 06-10-2009, 11:56 AM   #2
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 157

Rep: Reputation: 35
It sounds like you may need to edit your bootloader's (GRUB or LILO) config file and make sure everything still checks out correctly in the new box.
 
Old 06-10-2009, 03:23 PM   #3
thephilly
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Will reinstalling GRUB update the config file or do I need to manually edit grub.conf?

I'm a little unsure to what the correct settings are, nothing has really changed as far as partitions everything is located in the same place as before.
 
Old 06-10-2009, 04:00 PM   #4
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 157

Rep: Reputation: 35
I don't know if RedHat comes with a utility to update grub, I'm pretty sure Ubuntu has one called update-grub or something along those lines.

You can manually edit /boot/grub/menu.lst, however.

Perhaps there was a second hard drive in your first box, and none in your second box? That could cause your hard drive to no longer be hd(1,0) or whatever partition it was, and instead be hd(0,0), which would need to be changed in the bootloader.

You can try reinstalling grub, though, which I think would automatically configure the settings for you again, if you want to avoid editting the file yourself.

Who knows, maybe it has nothing to do with grub at all Just trying to help troubleshoot.
 
Old 06-10-2009, 06:29 PM   #5
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Moving the HDD from one machine to another sometimes can provide quirky, unreliable error messages due to the differences in hardware, MB layout, etc.

I did the same thing not too long ago with very different machines. Here's all I needed to do to make it work:

When you see "Grub loading...", press ESC to enter the Grub menu.

Select Recovery mode. You'll see a few lines of text, then a low-res menu.

Select xfix, which will detect the new configuration and correct the config file.

Then select Normal Boot.

Hope this helps.
 
Old 06-11-2009, 10:31 AM   #6
thephilly
LQ Newbie
 
Registered: Jun 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Might be a different version of GRUB but if I esc in it only gives me options to modify kernel options, go to command line etc.

There is no rescue option unless booting from the CD. Can't find much on xfix command, everything seems related to ubuntu or debian. Thanks for the tip though.

I solved this earlier today, apparently the BIOS settings did not match. Went into the BIOS of the new machine and turned on Legacy support and it booted fine. Auto ran through Kudzu and seems to be working ok.

Thanks.
 
Old 06-11-2009, 12:03 PM   #7
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
Quote:
Originally Posted by thephilly View Post
I solved this earlier today, apparently the BIOS settings did not match. Went into the BIOS of the new machine and turned on Legacy support and it booted fine. Auto ran through Kudzu and seems to be working ok.

Thanks.
Great! Glad to hear it. Thank you for letting us know.

Cheers
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
kernel panic when moving drive to new machine gimecoffee Linux - Kernel 13 11-14-2007 11:27 AM
Moving Old Hard Drives (& OS's) to a New Machine brianeanna Linux - Hardware 1 10-12-2007 03:13 PM
moving to a new hard drive n1wil Linux - Software 4 05-21-2003 02:38 PM
moving my hard drive illtbagu Linux - General 2 02-08-2003 04:56 PM


All times are GMT -5. The time now is 03:46 AM.

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