LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-30-2006, 09:08 AM   #1
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
Changing from SATA to IDE boot drive.


I've wanted to do this for a while, because my SATA drive seems to be getting unstable(first gen Maxtor sata... ugh) so I want to transfer my boot drive (80gb) to a reliable IDE drive I know to be good(80gb). I am planning on doing a DD to transfer all my partitions over, but I want to know if this will be possible to boot after the fact? I know I'll have to change where my bootloader points, and my fstab, but have I thought of everything? What else should I change to prepare for this? Or am I crazy for even doing this?

Thanks,
 
Old 01-30-2006, 01:56 PM   #2
egghead
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware 9.1
Posts: 23

Rep: Reputation: 15
You obviously will have to make the changes that you have mentioned, but since after copying, you can mess with the new one, there's no harm in trying! You will know what other changes to make... So I don't think there's any risk in trying.
 
Old 01-30-2006, 02:03 PM   #3
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
that's what I had thought! I was at work when I wrote that message, so I was more or less asking if it was a futile task or not.

Well if anyone else has any words of wisdom, please let me know.
 
Old 01-30-2006, 02:16 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,665

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by purelithium
I've wanted to do this for a while, because my SATA drive seems to be getting unstable(first gen Maxtor sata... ugh) so I want to transfer my boot drive (80gb) to a reliable IDE drive I know to be good(80gb). I am planning on doing a DD to transfer all my partitions over, but I want to know if this will be possible to boot after the fact? I know I'll have to change where my bootloader points, and my fstab, but have I thought of everything? What else should I change to prepare for this? Or am I crazy for even doing this?

Thanks,
Personally I would get a Knoppix disk boot with it partition the ide hard drive similar to your old one then reboot to make sure the partition table gets read properly. Then format the new partitions with your file system of choice then mount and copy the individual partitions edit the /etc/fstab to change the /dev/sd?? to /dev/hd?? and edit your menu.lst or lilo.conf depending on which you are using to change the same values again. If using grub then go to the grub command prompt tell it where your root is and run the setup to install the boot loader to the MBR, if lilo then you would need to chroot into your root and run lilo from there to install to the MBR. If you need more than this info can you post the output of fdisk -l, tell us the boot order of the drives in the BIOS and if using grub or lilo.
 
Old 01-30-2006, 03:29 PM   #5
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
Why not DD? I have the original 80gb crappy SATA drive and I have a replacement 80gb IDE drive. This would be easier than copying approx. 7 partitions(incl NTFS, but i'm not worried about that one surviving...).
 
Old 02-09-2006, 01:52 AM   #6
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
Yikes, this was a horrible mistake. Luckily I didn't torch my original drive. Although I did somehow modify the boot record of my original one, but that's all fixed now.

So DD seemed to have made spaghetti out of my filesystems on the new drive. That could have been from me still working on the machine while it was doing the deed, but It might have also been the NTFS partition as the first partition. I'm considering making a brand new, fresh install onto this new IDE drive and then boot into the old drive to copy over critical config files and my home partition and such. this should let me do what I need. Although i'll need some time to do this, and that's at a premium right now.

Well, just thought I'd leave an update here. See ya.
 
Old 02-09-2006, 11:16 AM   #7
egghead
LQ Newbie
 
Registered: Jan 2006
Distribution: Slackware 9.1
Posts: 23

Rep: Reputation: 15
What does dd exactly do? You should have used some tool like PartitionMagic to copy the entire partition to the free space on the new hard disk. Copying the files one by one using that command isn't the right way IMO.
 
Old 02-09-2006, 11:54 AM   #8
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Original Poster
Rep: Reputation: 30
It's data dump it's been around since the original Unix days. It's supposed to copy data directly from the /dev devices as in reading and writing the actual 1's and 0's from the disk.

Here's a great tutorial on it by a member here, it's kind of hard to read because it's been formatted strange, but it's got great info, and it works awesome for copying cds and other things like that.

http://www.linuxquestions.org/questi...d.php?t=362506
 
  


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
Dual Boot XP w/ Grub (IDE + SATA) TruckStuff Linux - General 3 09-25-2006 09:01 PM
slackware 10 sata and ide drive problem RadixInsurgio Slackware - Installation 3 07-18-2005 11:12 PM
Installing grub onto sata drive to redirect to ide in Suse 9.3 d3viant Linux - Hardware 2 06-21-2005 09:14 AM
dual boot on 2 drives...sata and ide vrdhananjay Linux - Hardware 6 09-08-2004 01:19 AM
FD2 boots from Sata, add a new ide drive and ssyeme won't boot Hube Linux - Hardware 4 07-07-2004 02:25 PM

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

All times are GMT -5. The time now is 12:34 AM.

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