LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-01-2008, 12:11 PM   #1
siggma
LQ Newbie
 
Registered: Jul 2007
Posts: 19
Blog Entries: 1

Rep: Reputation: 0
Partition copy from SATA to IDE fails to boot (debian amd-64 rc2)


Context:

Debian amd-64 rc2 server, NO gui.
ECS P4M800PRO-M
Intel Pentium-D
1 gig 533 Kingston ram
Internal video set to 16 meg PCI

I have a home based webserver setup and running fine on a SATA 250 GB drive. It was originally using a WD800JB EIDE drive but I upgraded and copied the files to the SATA. I realized that drive is overkill in size and decided to move it back to the smaller IDE drive. I installed the IDE without the SATA controller, run the install CD to make sure I have an appropriate duplicate file system on the IDE drive. It boots fine alone and mounts /dev/hda1 (?supposed to be sda?) as the root.

I copied the contents of the SATA drive as follows:
mkdir /new-disk
mount /dev/hda1 /new-disk
cp -ax / /new-disk

Edited /new-disk/etc/fstab
Changed /dev/sda1 to /dev/hda1 /
Changed /dev/sda5 to /dev/hda5 swap

Removed the SATA drive and boot the system.

I get a normal Grub boot menu and a normal boot until the root file system attempts to mount. Then it hangs "mounting root filesystem..."

I've run fsck on both drives and they are clean. If I turn on the SATA controller and change fstab back to /dev/sdax it mounts the /dev/sda1 and /dev/sda5 and boots normally using the WRONG root file system (the SATA).

I tried adding #/dev/hda1 and #/dev/hda5 in fstab and the kernel finds the drives (dynamically?) but still won't mount them...

Is there some reason a kernel installed on a SATA won't mount the IDE as a root file system?

I feel like a dufus, it's got to be something really stupid simple.
-Tom
 
Old 03-01-2008, 12:43 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,705

Rep: Reputation: 245Reputation: 245Reputation: 245
From your ide hard drive, post your /boot/grub/menu.lst and /etc/fstab files. Also, boot up with just your ide hard drive in the box and when you see the grub boot menu, hit the Esc key to get to a grub prompt and run:

find /sbin/init

and post the output here.
 
Old 03-01-2008, 01:08 PM   #3
siggma
LQ Newbie
 
Registered: Jul 2007
Posts: 19

Original Poster
Blog Entries: 1

Rep: Reputation: 0
[SOLVED] Partition copy from SATA to IDE fails to boot

Quote:
Originally Posted by kilgoretrout View Post
From your ide hard drive, post your /boot/grub/menu.lst and /etc/fstab files. Also, boot up with just your ide hard drive in the box and when you see the grub boot menu, hit the Esc key to get to a grub prompt and run:

find /sbin/init

and post the output here.
I fixed it, I think (I hope).

Fix:
I reinstalled a fresh minimal install from the amd-64 rc2 CD to the IDE, then copied all files EXCEPT /boot and initrd and vmlinuz*
I think there was something either in the kernel or the boot setup other than the device names that was different between the SATA install and the IDE install.

History:
When I originally moved the IDE to the SATA I upgraded from x86 to amd-64 at the same time and installed all new amd-64 packages. I suspect there is something in the way the install runs that doesn't include IDE devices or modules if there are no EIDE drives. Thus, moving it to an IDE failed to mount either due to corrupt or missing IDE drivers.

Trivia:
The ECS board has two separate controllers, one SATA & SATA-RAID (IDE mapped) and a separate IDE controller. This board supports four IDE devices and two SATA but has no PCIe bus, using a 16X AGP instead. Once I get a newer AGP card that will fit in the slot (1x,2,4x,8x are different, key tab in different place) I'll be able to use all the RAM for my humble home server system instead of mapping 16 meg (minimum) to a seldom used S3 video adapter.

Anyway, thanks for the quick response. I really appreciate it. Sometimes complaining in writing jogs my thoughts.
-Tom
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 4.0 R2 amd 64 bit SATA RAID INSTALL TeMpUs_FuGiT Linux - Hardware 9 04-25-2008 08:05 AM
SUSE USB installation boot up fails dep. on IDE or SATA oozie Linux - Kernel 0 10-23-2006 05:00 PM
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee SUSE / openSUSE 20 10-31-2005 07:30 AM
After adding ide to SATA(via) machine, boot fails - Fedora core 2 Jemsquash Linux - Hardware 6 09-21-2004 08:41 AM
Slack 10 fails to mount 100 GB IDE partition Nothingsbirth Slackware - Installation 2 08-02-2004 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration