LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-15-2012, 01:19 PM   #1
MicahCarrick
Member
 
Registered: Jul 2004
Distribution: Fedora
Posts: 241

Rep: Reputation: 31
Backup by simply cloning the drive


I have 2 identical hard drives. Can my backup solution simply be cloning my primary drive to the secondary drive via the `dd` command?
 
Old 06-15-2012, 01:32 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
yes, something like
Code:
dd if=/dev/sda of=/dev/sdb bs=8192
be very sure of the input and output files since dd is very destructive.

Last edited by schneidz; 06-15-2012 at 01:34 PM.
 
Old 06-15-2012, 02:31 PM   #3
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Works, especially if you need a bare metal backup, but very slow compared to incremental backup, ie with rsync. Slow backups often mean not very often, which leads to perdition.
 
Old 06-15-2012, 03:08 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Well, yes tends to be the answer but not all OS's can be easily cloned back to an UNLIKE drive unless you know more about how it boots. Some OS's have specific things that tie the exact drive to the boot process. Things like grub may have very specific hard drive name's that you'd have to change if you replaced the drive.

Using any of the clone type ways is OK. Not sure you need to fill the entire drive. Could just make an image file in compressed format that can be returned.

Any backup is better than none.

DD is a tricky deal too. Might consider a file based backup with some sort of checksumming to be sure.

I might be tempted to suggest something like clonezilla as your first attempt.
 
  


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
Cloning dual-boot drive onto a smaller drive. Harju Linux - Newbie 4 05-29-2010 11:40 AM
LXer: The best Linux disk cloning software - Mephisto Backup v1.5 LXer Syndicated Linux News 0 05-19-2009 06:40 AM
Backup/restore and/or cloning of a hard drive Ubuntu 7.10 taylorkh Ubuntu 3 02-02-2008 07:47 PM
Need help in cloning drive raddad51x Fedora 1 05-16-2006 01:31 AM
How do I simply format my 2nd drive gigglesnorter Linux - Newbie 11 07-05-2004 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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