LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   move linux from IDE HDD to SATA HDD (https://www.linuxquestions.org/questions/linux-hardware-18/move-linux-from-ide-hdd-to-sata-hdd-320769/)

markmalcolm 05-06-2005 12:43 PM

move linux from IDE HDD to SATA HDD
 
Hi all,

I am wondering how you move a linux install from a IDE hard drive to a sata one
I have tried it with ghost and it fails big time.

Is there any way to prepare linux to move on to a sata drive.

Or is there a utility out there which allows you to move your linux from one hard drive format to another ?

Any ideas / solutions ?

Thanks

Mark.

J.W. 05-06-2005 03:41 PM

Welcome to LQ. Check the man pages for the "dd" command. Assuming the drives have the same capacity you could run something along the lines of
Code:

dd if=/dev/hdx of=/dev/hdy
where x and y are the actual device letters. Please see the man pages for details -- J.W.

Electro 05-07-2005 03:24 AM

The dd command will not work very well because both disks have to have similar capacities which is a very, very slim chance. Even if you did use dd, you will have to use sfdisk to reconstruct the partition table and resize the filesystem. You can use partimage but it needs space to save the image and it also needs both drives be the same capacity. I suggest using Knoppix or any Live CD distributions for making partitions, formating, mounting, and copying files.

Norton Ghost only works with ext2 and ext3 for Linux filesystems.


All times are GMT -5. The time now is 01:56 AM.