LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 10-19-2006, 12:57 PM   #1
dodgydodgy
LQ Newbie
 
Registered: May 2004
Posts: 22

Rep: Reputation: 15
/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?
 
Old 10-19-2006, 01:01 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
You must have missed something in grub.conf or menu.lst. It's probably a parameter of the kernel, look for "resume=/dev/hda3".
 
Old 10-19-2006, 01:11 PM   #3
dodgydodgy
LQ Newbie
 
Registered: May 2004
Posts: 22

Original Poster
Rep: Reputation: 15
Hi,

I did a cat /boot/grub/* |grep rescue with no result, also the same with hda - nothing.
 
Old 10-19-2006, 01:18 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
try "grep -R resume /boot" or "grep -R hda /boot"
 
Old 10-19-2006, 01:27 PM   #5
dodgydodgy
LQ Newbie
 
Registered: May 2004
Posts: 22

Original Poster
Rep: Reputation: 15
It reported nothing of any significance for 'resume' and nothing at all for 'hda'.

This is driving me crazy!
 
Old 10-19-2006, 01:36 PM   #6
dodgydodgy
LQ Newbie
 
Registered: May 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 10-19-2006, 01:47 PM   #7
dodgydodgy
LQ Newbie
 
Registered: May 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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!
 
Old 10-19-2006, 01:57 PM   #8
dodgydodgy
LQ Newbie
 
Registered: May 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 10-19-2006, 02:45 PM   #9
dodgydodgy
LQ Newbie
 
Registered: May 2004
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 10-20-2006, 06:07 PM   #10
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
The kernel I compiled reads my sata drives as hda even though the rpm kernel read sda abefroman Linux - Software 5 07-10-2006 04:42 PM
Do I use hda or sda? jumico Linux - General 2 02-12-2006 05:55 PM
found problem now how to change from hda to sda bird603568 Slackware 29 10-28-2005 11:18 AM
hda and hdb automounts nicely, but sda does not Navyblue Linux - Newbie 7 08-21-2005 11:53 AM
hda? sda? what do i have? nr5 Linux - Newbie 12 02-24-2005 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration