LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 12-20-2006, 07:41 PM   #1
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Rep: Reputation: 62
Clonning my Hard-Drive


Hmm....just a few minutes ago my hard-drive started making a "metal-on-metal" grinding sound and I had to do a cold reboot.
Its a relatively new one, only a 2 year old Seagate 80gb ide drive, and it looks like its on its last legs already.
I have a spare external 80gb hard-drive; so can anyone recommend a tool that will make an exact clone of my present drive to my backup one, so that if it does decide to go out with a bang, I can just pop the spare on into my computer and be on my way....

Last edited by easuter; 12-20-2006 at 07:52 PM.
 
Old 12-20-2006, 07:47 PM   #2
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
You can try something like "dd" which will make a bit for bit copy of your Linux drive to another Linux drive but it is slow as all hell and because it's bit for bit...you have to have an identical drive or something larger than the drive you're imaging since you're copying over un-used partitioned space.

Someone else can honestly post a better solution as I would also be interested.

I think the tool I last used was called "g4l" (Ghost For Linux).
 
Old 12-20-2006, 11:05 PM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
I did something similar, backing up and entire linux install when I upgraded the HD in my laptop. I used tar and split(because I was going to NFS). Tar allows you to make a tarball of the entire directory structure, and then all you've gotta do is format the new HD the correct way. You can exclude directories from the tarball, stuff like /proc, maybe /dev depending on how your system is set up, and of course the directory the new drive is mounted at.

This is what I ended up doing http://www.linuxquestions.org/questi...&highlight=tar

Last edited by microsoft/linux; 12-20-2006 at 11:16 PM.
 
Old 12-21-2006, 10:25 AM   #4
Dragineez
Member
 
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41
Yet Another Suggestion

You could give Partimage a try. Worked for me.
 
Old 12-21-2006, 04:33 PM   #5
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Original Poster
Rep: Reputation: 62
I was going to use dd, but partimage looks like a more senseable tool. one last thing about partimage: does the partition where I restore the image need to be exactly the same size/filesystem formatted as the original?
 
Old 12-21-2006, 11:57 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Generally, cloning SW is copying actual bit patterns and does not care about file systems. Think of it as a hierachy...At the lowest level is the raw device. Then you create partitions so that you can use specific zones to store data. Next, you create a filesystem that lives inside a partition.
Copy (clone) a partition and the filesystem goes with it.
Clone an entire drive and the partitions go with it.
 
Old 12-22-2006, 09:01 AM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,653

Rep: Reputation: 255Reputation: 255Reputation: 255
http://patrick295767.sitesled.com/da...r_harddisk.htm
 
Old 12-22-2006, 04:54 PM   #8
benjithegreat98
Senior Member
 
Registered: Dec 2003
Location: Shelbyville, TN, USA
Distribution: Fedora Core, CentOS
Posts: 1,019

Rep: Reputation: 45
If you do a method using dd, you should look into dd_rescue. It's very similar to dd, but it written to help with dying drives. It's saved my behind more than once.
 
Old 01-23-2007, 07:19 AM   #9
easuter
Member
 
Registered: Dec 2005
Location: Portugal
Distribution: Slackware64 13.0, Slackware64 13.1
Posts: 538

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by benjithegreat98
If you do a method using dd, you should look into dd_rescue. It's very similar to dd, but it written to help with dying drives. It's saved my behind more than once.
Yep, just used dd_rescue this weekend. pulled an old P1 i had in the garage, booter DSL with the two hard-drives attached and the cloning went perfectly.
The hard-drive was not even allowing the bootloader to start, making a fast succession of loud clicking noises.
dd_rescue is definitely an app to keep at hand.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
clonning linux with tar gobexe Linux - Software 1 03-24-2006 07:22 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Clonning data, fifo/pipe/tee problem : Resource temporarily unavailable rmarco Linux - General 2 05-05-2005 11:15 AM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

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