LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-17-2004, 07:21 AM   #1
dougp25
Member
 
Registered: Dec 2003
Location: Seacoast NH
Distribution: PCLinuxOS
Posts: 37

Rep: Reputation: 2
Moved my Hard Drive, now need HELP!


Hi.

I had a compaq with a 120 GB hard drive. 50 MB for Windoze and 70 MB for Mandrake 9.2

I got a new computer, so I just popped out the hard drive, and slid this one in the new machine.

LILO still comes up fine, but any attempt to go into Linux gets a "kernel panic", no init found. I assume this is due to the fact that the HD was hda in the old machine, and is now hdd in the new machine. I have tried passing commands at the lilo prompt (linux init=/dev/hdd5) but that doesn't work either.

I made a Tom's Root boot, and I can see my files, if I mount with a type of ext3. I edited my lilo.conf, reran lilo, and I get an error about a "read only" disk. Even though I have mounted rw.

I am ready to re-install and kiss everything good bye. Can someone help?

Thanks.

Doug
 
Old 03-17-2004, 07:43 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
You most likely got it on the wrong IDE controller if it thinks its hdd now. And why are you taking a pre-existing install of two OS's and popping it in a new computer thinking its going to work correctly? You do realize unless you totally have all the same components of your old machine, unless you got a lot of time on your hands, it would probably be easier to backup your data first, move hard drive and then reinstall both OS's, then placing your important data back on the system instead of wasting your time reconfiguring your existing OS's to work with totally new hardware in which it was working fine with before the move.
 
Old 03-17-2004, 10:19 AM   #3
icwiener
LQ Newbie
 
Registered: Mar 2004
Location: Seoul
Distribution: k0NkreTix
Posts: 3

Rep: Reputation: 0
Re: Moved my Hard Drive, now need HELP!

Quote:
Originally posted by dougp25
... any attempt to go into Linux gets a "kernel panic", no init found. I assume this is due to the fact that the HD was hda in the old machine, and is now hdd in the new machine. ...
You have to change the entry for your root partition in "/etc/fstab".

If your fstab looked like this (I assume the swap partition was on hda6):
Code:
# filesystem    mount-point     fs-type         options         dump    fsck-order
/dev/hda5       /               ext3            defaults        1       1
/dev/hda6       swap            swap            pri=1           0       0
...
change 'hda' to 'hdd' like following:

Code:
# filesystem    mount-point     fs-type         options         dump    fsck-order
/dev/hdd5       /               ext3            defaults        1       1
/dev/hdd6       swap            swap            pri=1           0       0
...
 
Old 03-17-2004, 11:55 AM   #4
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
Talking

>I had a compaq with a 120 GB hard drive. 50 MB for Windoze and 70 MB for Mandrake 9.2

Wow, then you are 120000MB-120MB short! :-D
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Moved hard drive with dual boot to another computer atlaika Linux - General 6 11-05-2005 05:38 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

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

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