LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 12-14-2004, 09:16 AM   #1
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: LinuxMint Elyssa
Posts: 373

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, 10:48 AM   #2
green_dragon37
Member
 
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.
Code:
 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
Code:
 tar -xvjpf filename.tar.bz2
Keep in mind that the p option is important, as it preserves the proper permissions on the files.

--Ian
 
Old 12-14-2004, 10:58 AM   #3
jlangelier
Member
 
Registered: Jun 2003
Location: Denver, CO
Distribution: Slackware 10
Posts: 93

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.

http://groups-beta.google.com/group/...d?dmode=source

Last edited by jlangelier; 12-14-2004 at 11:01 AM.
 
Old 12-14-2004, 07:28 PM   #4
cadj
Member
 
Registered: Aug 2003
Location: Melbourne Australia
Distribution: LinuxMint Elyssa
Posts: 373

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?
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this hard drive dying? newmoon Linux - Hardware 5 11-14-2005 02:46 PM
good backup method msound Linux - General 2 10-07-2005 11:58 AM
Hard drive dying. Need to move Linux partition over. Fear58 Linux - General 3 01-29-2005 05:14 PM
URGENT: Hard drive is dying, need migration AngryLlama Linux - General 12 11-27-2004 10:31 AM
How to copy ext2fs from failed hard drive to good drive? DogWalker Linux - Hardware 2 08-30-2004 10:52 PM


All times are GMT -5. The time now is 03:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration