Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-19-2013, 05:48 PM   #1
Registered: Jan 2013
Location: New Jersey
Distribution: CentOS, Arch
Posts: 166

Rep: Reputation: Disabled
backing up , hard drive transfer

i have CentOS running on an older pc on a sata drive. what i'd like to do is ghost the drive so that i can transfer it to an ide drive that have so i can use that sata drive for another computer. ideally i'd like to just buy another sata drive and leave well enough alone, but money is an issue and if this can be done without much trouble i'd like to give it a shot. its *basically* a fresh install, aside from having apache set up with a test web page, that i don't want to lose.

any suggestions?
Old 02-19-2013, 06:03 PM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
You could use dd to image your drive but if its just a base install why dont you just back up your apache config and test page then do a clean install and restore them? It would be much less painless and has a much smaller potential for problems.
Old 02-19-2013, 09:16 PM   #3
Registered: Jul 2009
Posts: 619

Rep: Reputation: 42
This command works great, it give a duplicate of the drive.You should have another drive to backup to, dont dd to the same drive you are backing up.

dd if=/dev/hda3 of=/Some_folder/on_a_different_drive/backup_set_1.img
Old 02-19-2013, 09:31 PM   #4
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
To further iterate the previous warning...


You will corrupt the drive if you dd to itself, it has happened to the best of us. Don't assume that you are writing to another drive based upon it being a different filesystem. Check your mounts with

mount | column -t
Also verify that you arent using LVM as it can cause confusion on the mount output:



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
[SOLVED] transfer data from a SATA external hard drive to a IDE internal hard drive Cabtech Linux - Newbie 7 04-22-2012 03:55 PM
Need help with backing up hard drive! JohnDoe13 Linux - General 6 11-17-2006 09:27 AM
backing up a directory to another hard drive aducarrab Linux - Newbie 1 01-29-2005 10:27 PM
Backing up my hard drive? brynjarh Linux - Newbie 1 07-04-2004 06:28 PM
Adding Hard Drive and Backing Up Cynthia Blue Linux - Hardware 2 12-26-2002 12:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 PM.

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