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 |
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.
|
|
10-19-2006, 12:57 PM
|
#1
|
LQ Newbie
Registered: May 2004
Posts: 22
Rep:
|
/hda to /sda - help!
Hi,
I'm trying to move my linux server to a new machine, this machine only supports SATA drives rather than the PATA of my old machine.
I've cloned the disk image to the new SATA drive, but when I boot Fedora FC5 I get the following error and then a kernel panic:
Trying to resume from /dev/hda3
Unable to access resume device (/dev/hda3)
I've edited grub.conf and fstab (and did a grub-install /dev/sda), but I still have the error. I can get into the partition using the rescue CD to perform edits.
Would anyone be kind enough to point me in the direction of what I need to do to fix this?
|
|
|
10-19-2006, 01:01 PM
|
#2
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
You must have missed something in grub.conf or menu.lst. It's probably a parameter of the kernel, look for "resume=/dev/hda3".
|
|
|
10-19-2006, 01:11 PM
|
#3
|
LQ Newbie
Registered: May 2004
Posts: 22
Original Poster
Rep:
|
Hi,
I did a cat /boot/grub/* |grep rescue with no result, also the same with hda - nothing.
|
|
|
10-19-2006, 01:18 PM
|
#4
|
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507
Rep:
|
try "grep -R resume /boot" or "grep -R hda /boot"
|
|
|
10-19-2006, 01:27 PM
|
#5
|
LQ Newbie
Registered: May 2004
Posts: 22
Original Poster
Rep:
|
It reported nothing of any significance for 'resume' and nothing at all for 'hda'.
This is driving me crazy!
|
|
|
10-19-2006, 01:36 PM
|
#6
|
LQ Newbie
Registered: May 2004
Posts: 22
Original Poster
Rep:
|
If it helps:
fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225290 bytes
Device Boot Start End Blocks id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 30393 244027350 83 Linux
/dev/sda3 30394 30515 979965 82 Linux swap / Solaris
more /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda
more /boot/grub/grub.conf
# grub.conf generated by anaconda
# ...
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
#boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.17-1.2187_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2187_FC5 ro root=LABEL=/ rhgb
initrd /initrd-2.6.17-1.2187_FC5.img
|
|
|
10-19-2006, 01:47 PM
|
#7
|
LQ Newbie
Registered: May 2004
Posts: 22
Original Poster
Rep:
|
This is the result of the boot:
Code:
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Setting up hotplug
Creating block device nodes.
Loading jdb.ko module
Loading ext3.ko module
Trying to resume from /dev/hda3
Unable to access resume device (/dev/hda3)
Creating root device
Mounting root filesystem
mount: could not find filesystem '/dev/root/'
Setting up other filesystems
Setting up new root fs
setuproot: moving /dev failed: No such file or direcroty
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
|
|
|
10-19-2006, 01:57 PM
|
#8
|
LQ Newbie
Registered: May 2004
Posts: 22
Original Poster
Rep:
|
fstab:
Code:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/sda3 swap swap defaults 0 0
|
|
|
10-19-2006, 02:45 PM
|
#9
|
LQ Newbie
Registered: May 2004
Posts: 22
Original Poster
Rep:
|
Okay, in the end I used the FC5 DVD and did an 'upgrade' overwriting the boot records. As far as I can see it didn't change a thing in the files, but it worked.
|
|
|
10-20-2006, 06:07 PM
|
#10
|
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Rep:
|
Fedora uses the partition/Filesystem label with Grub to dictate which partition is which FS (/,/boot, etc). Likely, these didn't transfer with your image move.
You'll notice that the device column in your fstab uses labels, rather than device names to specify what is what (except the swap partition). Booting with a live CD and changing those to the actual device names would probably have solved this issue for you
-- Shade
|
|
|
All times are GMT -5. The time now is 10:54 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
|
|