LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-22-2007, 01:33 AM   #1
gainil
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Rep: Reputation: 0
Moving Redhat AS4 from IDE to SATA


Hi

I am a newbie to Linux. This is my first post here.

I have RedHat AS 4 Installed on a P4 2.4GHz/Intel845 MotherBoard/1GB RAM/80GB IDE which working fine. I have taken a new PC with p4 3GHz/IntelD102 MotherBoard/2 GB RAM /80GB SATA. After upgrading hardware I used dd if=/dev/hdd of=/dev/sda. After rebooting the new system (with 80GB SATA) it shows "Kernel Panic".

Both the harddisks are of same geometry. I checked the SATA on other Linux, it shows all the partitions proper.

below are the fdisk results for IDE and SATA

-- IDE

[root@test.linux]# fdisk -l

Disk /dev/hdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 1305 10482381 7 HPFS/NTFS
/dev/hdd2 1306 1318 104422+ 83 Linux
/dev/hdd3 1319 9475 65521102+ 83 Linux
/dev/hdd4 9476 9729 2040255 f Win95 Ext'd (LBA)
/dev/hdd5 9476 9729 2040223+ 82 Linux swap
[root@test.linux]#

-- SATA

[root@test.linux]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1305 10482381 7 HPFS/NTFS
/dev/sda2 1306 1318 104422+ 83 Linux
/dev/sda3 1319 9475 65521102+ 83 Linux
/dev/sda4 9476 9729 2040255 f Win95 Ext'd (LBA)
/dev/sda5 9476 9729 2040223+ 82 Linux swap

[root@test.linux]#

Can any one tell how could I proceed further to correct this problem? or any other way to achive it?


Thanks and regards.
 
Old 03-22-2007, 12:24 PM   #2
geo_gt
LQ Newbie
 
Registered: Nov 2004
Distribution: OpenSUSE 11.3 64bit Intel Core2 Quad Core Q9300, 4GBRAM
Posts: 9

Rep: Reputation: 0
Hello,
that's because all links are to /dev/hdd and now you have instead /dev/sda.
Normally you should reinstall linux and copy only the files you want.

Otherwise you should try a trick.
Boot from the IDE disk and mount the SATA to a directory eg /mnt/sata.
cd /mnt/sata/dev
rm -f hdd*
and foreach hdd you have (hdd0, hdd1 etc) make a link to the corresponding sda

ln -s ./sda hdd
ln -s ./sda1 hdd1
etc.

Try "ln -s" or "ln".
It might work. I didn't tried yet but it is easy for you to test it.

Let me know if it works.

rgrgs,
Geo
 
Old 03-22-2007, 12:38 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
This HowTo is geared strongly to Debian, but it might give you some ideas on where your move is failing.

http://www.linuxquestions.org/questi...15#post2663415
 
Old 03-22-2007, 12:49 PM   #4
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Well I think its a issue which need a bit of work.

First add the below entry in /etc/modprobe.conf

alias scsi_hostadapter ata_piix

Now rebuild the initrd :

# cp initrd-(kernel-version).img initrd-(kernel-version).img.bak
# mkinitrd -f initrd-$(uname -r).img $(uname -r)

Once done make sure you chnage all hda to sda in both fstab and grub.conf ( not applicable when using labels ). Reboot the system and see.

This is what a known issue with Red Hat distro.
 
Old 03-23-2007, 02:51 AM   #5
gainil
LQ Newbie
 
Registered: Mar 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hello Guys!!

Thanks for the quick response

Here is the exact error I get while booting from the SATA


VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel Panic: VFS: Unable to mount root fs on 00:00


GEO_GT - I tried the solution suggested by you but it didnt work.

METHER - I could not find /etc/modprobe.conf

though result of #uname -r is
2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux

/boot/grub/menu.lst looks like this

# 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,1)
# kernel /vmlinuz-version ro root=/dev/hdd3
# initrd /initrd-version.img
#boot=/dev/hdd
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
title DOS
rootnoverify (hd0,0)
chainloader +1

Anyother solution for this?

Regards
 
Old 03-23-2007, 10:21 AM   #6
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Where exactly u doing all this stuff I mean how u getting these details. I guess from rescue mode ...if so make sue you have mounted / . Make use of the old disk ( lower update )...Then look for /etc/modprobe.conf
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo: Moving Linux from IDE to a SATA drive Quakeboy02 Linux - General 15 08-10-2008 11:12 PM
SATA and IDE with XP and RedHat Linux monk_mst Linux - Newbie 6 08-12-2007 07:25 AM
Redhat AS4.0 Eswar Linux - General 1 01-14-2007 11:54 AM
I can't find the the other 2 SATA seagate 320G hard disk0 in AS4.0 lsj Linux - Hardware 1 09-04-2006 02:17 AM
SATA with Redhat AS4 consty Red Hat 5 02-09-2006 02:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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