Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-27-2008, 03:12 PM
|
#1
|
|
Member
Registered: Jul 2007
Posts: 54
Rep: 
|
Moving hard drive with install intact
I'm trying to move a hard drive from one PC to another so I can retain the install without having to do it over. It's not working on the new machine, it gives an error about not being able to move root.
The two machines are different architecture, but I even compiled a new kernel on the old PC to the spec of the new one but it didn't matter. I don't remember the exact errors but something about not finding resume device, so maybe the partitions are not being detected. Isn't that strange? Same exact hard drive, no other hard drives set up. Why wouldn't it detect it as it is? The root param in grub is set up to the label, so it shouldn't matter. Does mkinitrd use the partition UUID or something like that? Even if it did, is that going to change on a new PC on the same hard drive? I don't know but I'm doubting it. What could be causing this?
|
|
|
|
09-27-2008, 03:37 PM
|
#2
|
|
Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Squeeze, Fedora 14
Posts: 7,268
Rep:
|
Quote:
Originally Posted by Q..
Does mkinitrd use the partition UUID or something like that? Even if it did, is that going to change on a new PC on the same hard drive?
|
The initrd is different for different hardware. it is not unusual for an initrd not to work when transferred to different hardware. You may need to use the mkinitrd command to create an initrd which will work on the second computer.
http://www.ibm.com/developerworks/li.../l-initrd.html
-----------------------
Steve Stites
|
|
|
|
09-27-2008, 08:09 PM
|
#3
|
|
Member
Registered: Jul 2007
Posts: 54
Original Poster
Rep: 
|
Thanks, but that link doesn't really explain how to do that. I tried setting ARCH=i686, nothing. Nothing in the man about it either.
Last edited by Q..; 09-27-2008 at 08:13 PM.
|
|
|
|
09-28-2008, 10:40 PM
|
#4
|
|
Member
Registered: Jul 2007
Posts: 54
Original Poster
Rep: 
|
Oh well, I got it. These are the basic steps I found to work with Fedora:
Set up the old drive on the new PC, of course. Boot up another install on it, live media or otherwise. It must be new enough in relation to the install to be recovered, so for example, no 2.4 for recovering Fedora. I had an unused partition so I installed an old version of Fedora on it, same version being recovered.
Once up and running, mount the partition to be recovered to /mnt for example, full read and write
cd /mnt
mount -t proc proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt /bin/bash
mkinitrd -f /boot/initrd-[kernel-version-applicable].img [kernel-version-applicable]
Last edited by Q..; 09-28-2008 at 10:41 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:28 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|