[SOLVED] Moved install to new drive (/hda to /sda) - Wont boot
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Moved install to new drive (/hda to /sda) - Wont boot
I just moved a Centos 5 install (using Grub to boot) to a new hard drive in the same system. Moved from and IDE drive to a SATA so now my device is /dev/sda instead of /dev/hda.
Without changing any lines in Grub, it starts to boot and gets to
Unable to access resume device SWAP-hda2
Mount: Could not find filesystem '/dev/root'
I'm sure it's a matter of booting a rescue cd and editing the proper files, but not sure where to begin..
Last edited by scoob8000; 01-20-2010 at 03:40 PM.
Reason: Solved - Title
Yes, root= should point to /dev/sda3 if that is your root partition.
I assume that your swap partition was hda2. If it is now on the same disk as your root partition, will be called /dev/sda*. Make sure that is also updated in /etc/fstab.
And also don't forget that your goal is to get the system working; not to become an expert in grub. Google "Super Grub Disk". It has a very good track record of fixing things like this.
Yes, root= should point to /dev/sda3 if that is your root partition.
I assume that your swap partition was hda2. If it is now on the same disk as your root partition, will be called /dev/sda*. Make sure that is also updated in /etc/fstab.
Correct, that's all good.
FWIW, my partitions are sda1 = boot, sda2 = swap, sda3 = root.
Well, I'm still getting hung up at the same spot. I did notice a file in my grub folder called device.map. In it was an entry pointing hd0 to /dev/hda.
I fixed that, but still no avail.
I'm downloading a rescue disk now to try to build a new initrd.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.