LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-19-2013, 04:48 PM   #1
iceman81
Member
 
Registered: Jan 2013
Location: New Jersey
Distribution: CentOS, Arch
Posts: 181

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, 05:03 PM   #2
Kustom42
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, 08:16 PM   #3
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

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, 08:31 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

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

DONT DD TO THE SAME PHYSICAL DRIVE!

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

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

Code:
lvdisplay
vgdisplay
pvdisplay
 
  


Reply



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 02:55 PM
Need help with backing up hard drive! JohnDoe13 Linux - General 6 11-17-2006 08:27 AM
backing up a directory to another hard drive aducarrab Linux - Newbie 1 01-29-2005 09:27 PM
Backing up my hard drive? brynjarh Linux - Newbie 1 07-04-2004 05:28 PM
Adding Hard Drive and Backing Up Cynthia Blue Linux - Hardware 2 12-26-2002 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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