LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Moved my Hard Drive, now need HELP! (https://www.linuxquestions.org/questions/linux-general-1/moved-my-hard-drive-now-need-help-158892/)

dougp25 03-17-2004 07:21 AM

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

trickykid 03-17-2004 07:43 AM

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.

icwiener 03-17-2004 10:19 AM

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
...


Thulemanden 03-17-2004 11:55 AM

>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


All times are GMT -5. The time now is 10:22 AM.