Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-14-2004, 10:16 AM   #1
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Rep: Reputation: 32
Hard drive dying, good backup method

my harddrive is on the way out, and id like to backup the partitons as images. i know how to use dd if=/dev/hda1 of=hda1.img, but the problem is my hda1 is only 20% full, but a full 10gb image is made.

what is a good way to image my drives?
Old 12-14-2004, 11:48 AM   #2
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
Why not use tar? That's a perfect use for it.
 tar -cvjpf filename.tar.bz2 /
That'll backup everything starting from / and compress it with bzip2 to boot! When it comes time to recover it (if ever,) simply
 tar -xvjpf filename.tar.bz2
Keep in mind that the p option is important, as it preserves the proper permissions on the files.

Old 12-14-2004, 11:58 AM   #3
Registered: Jun 2003
Location: Denver, CO
Distribution: Debian
Posts: 95

Rep: Reputation: 15
This is the way to go

I wouldn't back up as an image, per se, I'd just clone your partitions. Disk space is so cheap, there is no need to get fancy and have your entire image fail because of one bad bit.

This is the best way I have found to clone a linux installation. I have used it with success about five times with never a problem. HIGHLY recommended.

Last edited by jlangelier; 12-14-2004 at 12:01 PM.
Old 12-14-2004, 08:28 PM   #4
Registered: Aug 2003
Location: Melbourne Australia
Distribution: Debian Stretch
Posts: 374

Original Poster
Rep: Reputation: 32
just reminding that tar -cvjpf filename.tar.bz2 / wont backup my mbr, so ill havto do that too.

by the way my hd is a wester digital 40gb and is making a loud high pitched noise. ive read that its the bearings.

i know its going because ive heard that sound before

anyone else had this problem?


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
Is this hard drive dying? newmoon Linux - Hardware 5 11-14-2005 03:46 PM
good backup method msound Linux - General 2 10-07-2005 12:58 PM
Hard drive dying. Need to move Linux partition over. Fear58 Linux - General 3 01-29-2005 06:14 PM
URGENT: Hard drive is dying, need migration AngryLlama Linux - General 12 11-27-2004 11:31 AM
How to copy ext2fs from failed hard drive to good drive? DogWalker Linux - Hardware 2 08-30-2004 11:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 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