LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-07-2014, 07:20 AM   #1
nanlogan2
LQ Newbie
 
Registered: Oct 2005
Location: khazk
Posts: 13

Rep: Reputation: 0
old HDD to new machine RHEL/centos 4.0


I've been trying to move my old disk to a new machine. The old one ran RHEL4.0 & I want to be able to invoke that again. I get the message

Uncompressing Linux... Ok, booting the kernel.
Red Hat nash version 4.2.1.8 starting
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
Kernel panic - not syncing: Attempted to kill init!

plugged disk to PC running Centos 6.4 and mounted root & boot
did a mount -t proc none /mnt/root/proc
when I ran mkinitrd --with=sata_via /initrd-new2.img 2.6.9-42.0.10.EL & successfully created it.then copied it to boot. Changed grub.conf & modprobe.conf Yet I have the same problem
Most grateful if someone can help

Last edited by nanlogan2; 01-07-2014 at 02:06 PM.
 
Old 01-07-2014, 08:30 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,921

Rep: Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618Reputation: 3618
http://lists.centos.org/pipermail/ce...il/036154.html

Might work.
 
Old 01-08-2014, 08:17 AM   #3
nanlogan2
LQ Newbie
 
Registered: Oct 2005
Location: khazk
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
The above was based on this article & it has not worked...
 
Old 01-08-2014, 08:45 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Most times there's two obstacles when migrating machines. The bootloader and the /etc/fstab with regards to device locations. If you're not using UUIDs (partition specific) to specify it's location, chances are that the /dev/ names are not the same so it fails to find things. The bootloader passes root= and /etc/fstab connects / with a device. Which is unlikely to match on new hardware.

There's also issues with differing BusID and Driver for xorg.conf if you get to the gui portion. If there is a gui portion.
 
1 members found this post helpful.
Old 01-08-2014, 02:00 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,621

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
also keep in mind that redhat no longer even supports rhel4.0
4.0 is ancient

only 4.9 is still supported ( in the 4 series ) under the newly added "EXTRA" extended life support
and for only one more year

what format is that ancient rhel4.0 drive
ext2 or something else

was it in a raid set up ?
or what

from the first post i take it you want to boot the ancient RHEL4.0 in a what dual boot with CentOS 6.5

i would try to use the grub in cent6.5 to point to the very old ryhel4.0 boot partition on that drive ,using a chainload .
 
Old 01-09-2014, 07:43 PM   #6
nanlogan2
LQ Newbie
 
Registered: Oct 2005
Location: khazk
Posts: 13

Original Poster
Rep: Reputation: 0
[QUOTE=Shadow_7;5094288]Most times....
shadow 7 -thanks ...
can you please be more specific with all your points.. I have hardware background (ie soldering iron) ... fstab for me is to permanently mount ...how can I run fdisk to check this ..what & where is this /dev/ names & where is BusID and Driver for xorg.conf..... I'd be most grateful if you could kindly what & where need to look & do.

Jonh W -thanks..it is ext3 sata i installed a program on this machine an old version of a program i use for work.. lost my job a year ago so I thought I'd try get some practise...any help would be greatly appreciated

Last edited by nanlogan2; 01-09-2014 at 07:49 PM.
 
Old 01-10-2014, 09:54 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
# blkid /dev/???

To get the UUID of a partition. Where ??? is the /dev/ name of the appropriate device (partition). /dev/sda1 or whatever applies. It should show up to some degree in /proc/partitions if you're unsure of the naming conventions.

In the bootloader, instead of root=/dev/??? use root=UUID=12345678-1234-1234-1234-0123456789abcdef where the UUID is what "your" UUID actually is.

In /etc/fstab, also replace /dev/??? with UUID=??? for the UUID in question. They are roughly equivalent for all modern purposes. Although that is an older version of things and may not support UUIDs. So you may end up guessing appropriate /dev/??? names depending on your device tree. You could also swap the hardware around to make things play well with the original software expectations. I.E. pulls all drives except that one so it might default to /dev/sdaX.
 
Old 01-17-2014, 10:59 AM   #8
ProfWEB
LQ Newbie
 
Registered: Jan 2014
Location: Sierra Leone
Distribution: GrigoriyKxiuKM
Posts: 2

Rep: Reputation: 0
old HDD to new machine RHEL/centos 4 0

Looking for an updated repo that will keep up with the community squeeze releases that does not require me to switch over to Fedora for my media server. Is there one out there? If not I suppose I could make the switch, although I would much rather not as I have been enjoying the stability of centos

The slimdevices repo seems to have not gotten an updated since 7.7.2, which was in march.

Thanks and hopefully someone can point me in the correct direction. =
 
  


Reply

Tags
centos, hdd, move, rhel


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
Booting Problem. Windows and ubuntu on internal hdd. Centos on External USB hdd faisal59 Linux - Distributions 1 07-17-2013 08:19 AM
Can't Ping Linux CentOS 5.3 Machine to XP SP2 Windows Machine Moderns Linux - Networking 20 11-04-2009 12:33 AM
Recovering the OS from software RAID HDD crash with rPath (or RHEL/CentOS/Fedora)? pwjohnston Linux - Server 0 08-21-2009 08:01 PM
Possible to have virtual machine in RHEL 5.1 run RHEL 4.0-1 ES (64-bit) maryjane Linux - Newbie 1 10-20-2008 12:04 PM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 03:47 AM

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

All times are GMT -5. The time now is 09:05 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