Moving Harddrive

Issues related to hardware problems
Post Reply
Shantred
Posts: 3
Joined: 2011/07/05 17:51:47

Moving Harddrive

Post by Shantred » 2011/07/07 06:28:40

I recently installed CentOS on a spare harddrive I had laying around. I'm now looking to move that same harddrive to another pc, but that pc doesn't have a dvd reader so I can't just reinstall the OS. Is there some way I can "repair" the installation once the harddrive is hooked up to the new motherboard or is reinstalling my only available option?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Moving Harddrive

Post by gerald_clark » 2011/07/07 14:04:37

Unless the hard drive controllers use different drivers, it should boot.
If not, you may need to borrow a USB DVD reader, boot in rescue mode,
and run mkinitrd.

Shantred
Posts: 3
Joined: 2011/07/05 17:51:47

Re: Moving Harddrive

Post by Shantred » 2011/07/07 14:23:28

I moved the hard drive this morning and can't get it to load up now. I get an error saying "error loading operating system". Is this something that I could fix by getting that usb reader and running mkinitrd?

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Moving Harddrive

Post by pschaff » 2011/07/07 22:02:24

See my answer in your [url=https://www.centos.org/modules/newbb/viewtopic.php?viewmode=flat&topic_id=32007&forum=39]USB Installation question[/url] topic, [url=http://wiki.centos.org/TipsAndTricks/ReinstallGRUB]How to re-install bootstrap code (GRUB)[/url], and [url=http://wiki.centos.org/TipsAndTricks/CreateNewInitrd]Creating a New Initial RAM Disk[/url].

Post Reply