LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-11-2004, 11:21 PM   #1
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
can i move my hard drive to a different computer


can i move my hard drive to a similar computer and have linux work?

possibly haveing to reinstall drivers for certain stuff like cd card

or would i have to recompile the kernel
or would i just have to do a fresh install?
 
Old 04-11-2004, 11:33 PM   #2
sphink
LQ Newbie
 
Registered: Apr 2004
Location: U.S.A.
Distribution: Slackware 9.1, Astaro
Posts: 13

Rep: Reputation: 0
Chances are, you would have to recompile/reinstall. All computers all different, and your kernel configuration/installation settings is for your computer only.
 
Old 04-11-2004, 11:41 PM   #3
wolfe2554
Member
 
Registered: Apr 2003
Location: denver co
Distribution: redhat9
Posts: 156

Rep: Reputation: 30
yes what I would do is compile a new kernel for that system from the first computer. This would involve the full kernel recompile. refer to http://www.linuxquestions.org/questi...rnel+recompile
it is very nice. Once you have this done you need to set it up. before you move the HD make a rescue disk so that you can boot the new machine up. move the hard drive boot the machine using the rescue disk and then install your lilo or grub. this will prove to be a very challenging task. By the way make sure the kernel boots before moving the HD. Let me know how this does.
 
Old 04-12-2004, 12:50 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I doubt you would need to recompile the kernel. If you are using a generic kernel from your distro's install, it is going to work on 99% of the computers out there (assuming the same architecture).

I have switched drives between machines many times, and never had a problem.

Last edited by MS3FGX; 04-12-2004 at 04:08 AM.
 
Old 04-12-2004, 12:58 AM   #5
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
yeah thats what i thought....
 
Old 04-12-2004, 03:30 AM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
I would recommend just putting the drive into the new PC and booting up. I'm with MS3FGX - as long as you don't have any funky equipment in your case, the default kernel is pretty much going to work. I've done this a couple of times myself, without any problems. A recompile would be useful in terms of optimizing the system, but it's unlikely that you'd truly need to do one unless that were your choice. Like I said, I'd just give it a try and see what happens. Worst case scenario is that your PC won't boot; best case is that it boots up and you've got Linux running with zero effort. -- J.W.
 
  


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
Transferring Hard Drive to Newer Computer kaplan71 Fedora 1 11-04-2005 01:32 PM
new computer old hard drive dstromberg Linux - Newbie 9 10-14-2005 10:45 AM
Hard drive dying. Need to move Linux partition over. Fear58 Linux - General 3 01-29-2005 05:14 PM
Move an existing partition to a new hard drive? vdemuth Linux - Hardware 9 06-04-2004 02:29 AM
Can I move my linux installation to another Hard Drive? enderjm Linux - Newbie 7 03-11-2004 02:00 AM

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

All times are GMT -5. The time now is 09:12 AM.

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