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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-02-2010, 11:48 AM   #1
integrale16
Member
 
Registered: Sep 2009
Posts: 56

Rep: Reputation: 15
What's the best tool to clone my system disk?


Hi,

I actually bought a 1.5TB HD which should replace my 320GB one.

Which tool is the best one to clone my system from the 320GB HD to the 1.5TB one in an easy and straight forward way.
The filesystem is ext4 and the OS is Slackware64 13.1.


integrale
 
Old 10-02-2010, 12:05 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look at clonezilla
http://clonezilla.org/

Kind regards
 
Old 10-02-2010, 12:17 PM   #3
integrale16
Member
 
Registered: Sep 2009
Posts: 56

Original Poster
Rep: Reputation: 15
After cloning it with clonezilla, do I have to boot from a SlackwareDVD with giving the new hard disk partition as the root partition at boot promt and execute lilo afterwards?
 
Old 10-02-2010, 07:54 PM   #4
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
Cloning Partitions

I use rsync.
Code:
/usr/bin/rsync -v --progress -axHz --delete / /pathto/formattedbackup/partition
If you do not want verbose output, leave out the "-v --progress" part. I "stole" the basic code from piratesmacks post in this thread, dressed it up a little & wrote a bash script to backup all the partitions on this machine. There are a lot of programs out there to clone/backup a partition, but you really don't need any of them.
Regards,
Bill
 
Old 10-02-2010, 09:16 PM   #5
Lirey
Member
 
Registered: Sep 2009
Distribution: Slackware
Posts: 39

Rep: Reputation: 12
rsync is definitely one of the easiest and most flexible ways to do something like this.

I just finished upgrading a hard drive this way. I installed the new drive as the secondary drive, partitioned it, formatted it, and mounted it. Then I used:

rsync -vaxH / /path/to/new/drive

The only small problem is that the boot loader won't be properly installed on the new drive. This, of course, is only a problem if you are cloning your root partition. The solution (after removing the old drive) is to boot from a Slackware install disk or USB key, and follow the recovery instructions on how to boot the existing, installed system. Once you've booted the system this way you can run lilo to properly install the boot loader. If the new drive doesn't have the same device name (i.e. /dev/sda) as the old drive you will have to edit lilo.conf.

Sincerely,
Mike R.
 
Old 10-03-2010, 09:56 AM   #6
integrale16
Member
 
Registered: Sep 2009
Posts: 56

Original Poster
Rep: Reputation: 15
@Lirey
I actually cloned my root partition.

Following the suggestion from repo, I cloned it with Clonezilla.
And it was really easy and straight forward. Clonezilla also copied the boot loader right in place, so that I didn't have to adjust anything.

Writing this reply, my system is already running from my new hard disk :-)

I'm really happy with the way it worked and the result.
 
Old 10-03-2010, 03:34 PM   #7
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
@integrale16: I'm glad you found a good solution. You should mark the thread SOLVED, via the "Thread Tools" button on top of your first post.
Regards,
Bill
 
Old 10-03-2010, 03:57 PM   #8
zbreaker
Member
 
Registered: Dec 2008
Location: New York
Distribution: Slack -current, siduction
Posts: 253

Rep: Reputation: 29
Yep...Clonezilla is indeed an invaluable utility.
 
Old 10-07-2010, 07:46 PM   #9
lpallard
Senior Member
 
Registered: Nov 2008
Posts: 1,045

Rep: Reputation: Disabled
If you are still searching for answers.... Clonezilla! All the way. I use it to perform quarterly clones of my system (not my user files) and also when I need to clone hard drives or partitions... Used it about 50 times in the last 2 years and it always did the job perfectly.
 
Old 10-08-2010, 12:10 AM   #10
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
If you were using lvm, however, you could simply add the new disk as a physical volume and run the command:
Code:
pvmove old_physical_volume
You can use your system while the command is running.
 
Old 10-08-2010, 09:53 AM   #11
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
http://sourceforge.net/projects/g4l/

Better than clonezilla.
 
  


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
clone hard disk with: cat /dev/sda >/media/disk/backup deathalele Linux - Security 3 04-17-2009 12:29 AM
RAID1 array down to one disk with bad blocks, clone to good disk with dd noerror? ewolf Linux - Server 2 05-10-2008 12:40 AM
Sample all layers with clone tool in GIMP? Cinematography Linux - Software 1 10-31-2007 02:35 PM
tool to clone my hd regularly for backup reasons xomic Linux - Software 2 05-30-2007 04:18 PM
Missing O/S reported when booting the clone system disk. hg7688 Linux - Software 2 07-26-2006 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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