Linux - Newbie This 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.
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.
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.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
01-20-2010, 09:49 AM
|
#1
|
Member
Registered: Jun 2003
Distribution: Redhat 8, Redhat 9, Win2k, WinXP
Posts: 64
Rep:
|
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.. ![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
Last edited by scoob8000; 01-20-2010 at 03:40 PM.
Reason: Solved - Title
|
|
|
01-20-2010, 09:58 AM
|
#2
|
Member
Registered: Sep 2003
Distribution: Slackware
Posts: 626
Rep:
|
The kernel line in menu.lst should point to root=/dev/sda
You will also need to edit /etc/fstab to reflect the change.
Last edited by mdg; 01-20-2010 at 09:59 AM.
Reason: grammar
|
|
|
01-20-2010, 11:24 AM
|
#3
|
Member
Registered: Jun 2003
Distribution: Redhat 8, Redhat 9, Win2k, WinXP
Posts: 64
Original Poster
Rep:
|
In the meantime I did fumble around with my menu.lst and did fix the root= line. Should that be /dev/sda or /dev/sda3 (my root partition)?
Oddly I did edit my /etc/fstab, but on the next boot I'm still getting
Quote:
Unable to access resume device SWAP-hda2
|
I did boot up my rescue disc, and low and behold my fstab is still correct.
On another attempt I tried getting rid of all the labels in menu.lst and /etc/fstab. Still hangs with the same messages.
Last edited by scoob8000; 01-20-2010 at 11:35 AM.
|
|
|
01-20-2010, 02:19 PM
|
#4
|
Member
Registered: Sep 2003
Distribution: Slackware
Posts: 626
Rep:
|
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.
|
|
|
01-20-2010, 02:45 PM
|
#5
|
Senior Member
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,410
Rep: ![Reputation: 141](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
Don't forget your device.map.
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.
|
|
|
01-20-2010, 02:53 PM
|
#6
|
Member
Registered: Jun 2003
Distribution: Redhat 8, Redhat 9, Win2k, WinXP
Posts: 64
Original Poster
Rep:
|
Quote:
Originally Posted by mdg
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.
|
|
|
01-20-2010, 03:32 PM
|
#7
|
Senior Member
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,410
Rep: ![Reputation: 141](https://www.linuxquestions.org/questions/images/reputation/reputation_pos.gif)
|
Quote:
Originally Posted by scoob8000
I did notice a file in my grub folder called device.map. In it was an entry pointing hd0 to /dev/hda.
|
And you don't have a /dev/hda anymore, right?
|
|
|
01-20-2010, 03:40 PM
|
#8
|
Member
Registered: Jun 2003
Distribution: Redhat 8, Redhat 9, Win2k, WinXP
Posts: 64
Original Poster
Rep:
|
[SOLVED]
I ended up remaking my initrd image from the rescue disc.
Thanks for your help! I don't use the forums much, but I'm sure glad they're here! ![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
|
|
|
All times are GMT -5. The time now is 12:44 AM.
|
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
|
|