Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Transfering entire system and files to new HDD
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
catgate
LXF regular


Joined: Wed Jul 19, 2006 7:45 pm
Posts: 1013
Location: Just over there, in that corner.

PostPosted: Sun May 12, 2013 4:45 pm    Post subject: Transfering entire system and files to new HDD Reply with quote

I feel that my HDD is getting older and it might be policy to replace it before it rolls over and throws its legs in the air.
Being a lazy luddite, and not at all well versed in the black arts of terminal use, I am looking for a way of transfering the contents of my current HDD to a new HDD without the loss of data and/or blood, sweat and tears.
I have come across a thing called " Redo Backup and Recovery". It says on the website "Based on Ubuntu and partclone" and so I am hoping it will do what I want.
So my question is, "Does anyone have any experience of this animal, and if this this animal bites or kicks can an alternative method, one which is really docile and user friendly, be recommended."
My usual thanks in advance.
_________________
Oh, sod it.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8368
Location: Warrington, UK

PostPosted: Sun May 12, 2013 6:01 pm    Post subject: Reply with quote

Clonezilla is a popular choice.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4242
Location: wild West Wales

PostPosted: Sun May 12, 2013 8:47 pm    Post subject: Reply with quote

+1 for clonezilla
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2423

PostPosted: Sun May 12, 2013 9:00 pm    Post subject: Reply with quote

+1 for the cli... It's often quicker then using a GUI, I found. But, it's your time Razz
Back to top
View user's profile Send private message
catgate
LXF regular


Joined: Wed Jul 19, 2006 7:45 pm
Posts: 1013
Location: Just over there, in that corner.

PostPosted: Mon May 13, 2013 4:48 pm    Post subject: Reply with quote

Dutch_Master wrote:
+1 for the cli... It's often quicker then using a GUI, I found. But, it's your time Razz

I know what you mean D-M, but I fear my knowledge of command line instructions is woefully limited. I could cope well enough with the earlier Widows offerings, because with them it really was essential, but, despite a strong similarity with some areas of DOS, I find Linux terminal commands very trying. I have to look up most of them, and their syntax.
_________________
Oh, sod it.
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2423

PostPosted: Mon May 13, 2013 6:08 pm    Post subject: Reply with quote

Let me tell you a secret: so do we! Wink Seriously though, this is the opportunity to give it a try. The dd command is what you're after, and that syntax is pretty basic:
Code:
dd if=/full/path/to/source of=/full/path/to/destination bs=<size of block during copy>
For copying a full harddrive, use bs=1M (1 MB) to speed things up.

Example, assuming your old drive is at /dev/sda and the new drive is /dev/sdc:
Code:
dd if=/dev/sda of=dev/sdc bs=1M


Your turn now Wink

PS: in case you don't have it yet, here's a site with Bash commands and their syntax: http://www.ss64.com/bash/
Back to top
View user's profile Send private message
catgate
LXF regular


Joined: Wed Jul 19, 2006 7:45 pm
Posts: 1013
Location: Just over there, in that corner.

PostPosted: Mon May 13, 2013 10:27 pm    Post subject: Reply with quote

Dutch_Master wrote:
Let me tell you a secret: so do we! Wink Seriously though, this is the opportunity to give it a try. The dd command is what you're after, and that syntax is pretty basic:
Code:
dd if=/full/path/to/source of=/full/path/to/destination bs=<size of block during copy>
For copying a full harddrive, use bs=1M (1 MB) to speed things up.

Example, assuming your old drive is at /dev/sda and the new drive is /dev/sdc:
Code:
dd if=/dev/sda of=dev/sdc bs=1M


Your turn now Wink

PS: in case you don't have it yet, here's a site with Bash commands and their syntax: http://www.ss64.com/bash/


Thanks again D_M.
I have ordered my new larger HDD and have also downloaded and burned a copy of Clonezilla. I think what I shall do is to try both it and "terminal" on my spare machine before I risk making a complete mess of my serious use machine.
_________________
Oh, sod it.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8368
Location: Warrington, UK

PostPosted: Mon May 13, 2013 10:57 pm    Post subject: Reply with quote

dd is a REALLY inefficient way of copying a drive, particularly to a larger one. You end up copying all the file fragmentation as well as old, unused data, and then you still have to repartition the drive when you have done it.

Also, if the new drive is 2TB or larger, it will use the new 4K blocks instead of the old 512byte one. dding a drive partitioned with the smaller blocks to a newer drive will slow it down to barely faster than a Sinclair Microdrive - using the wrong alignment on a 4K drive massively hurts performance.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2423

PostPosted: Tue May 14, 2013 3:01 am    Post subject: Reply with quote

Yes Nelz, but isn't that the purpose of cloning, to make an exact replica of the original? Razz

Anyway, rsync will solve a lot of those issues. Despite its name it's perfectly capable of sync'ing local filesystems too. Syntax is a bit more complicated:
Code:
rsync [options] /full/path/to/source /full/path/to/destination
Read the man-page to get an idea what options are available, but for sync'ing my desktop to the fileserver I use the -rdtvu options. Downside is that you'd have to sync each partition individually, after creating new partitions on the new disk.
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8368
Location: Warrington, UK

PostPosted: Tue May 14, 2013 8:47 am    Post subject: Reply with quote

Dutch_Master wrote:
Yes Nelz, but isn't that the purpose of cloning, to make an exact replica of the original? Razz


Yes it is, and an exact replica is a bad thing in this case. Clonezilla, despite its name, does not make an exact replica.

As you say, rsync is a much better way of doing it.

If you want to minimise downtime, RAID can be used while the system is still running, but that it a bit more complex, and very command line.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
catgate
LXF regular


Joined: Wed Jul 19, 2006 7:45 pm
Posts: 1013
Location: Just over there, in that corner.

PostPosted: Tue May 14, 2013 10:22 am    Post subject: Reply with quote

nelz wrote:

....Also, if the new drive is 2TB or larger,......


I am not in that league, nelz. The new one will be 250Gb replacing a 150Gb model, which still has 100Gb free.
_________________
Oh, sod it.
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4242
Location: wild West Wales

PostPosted: Fri May 17, 2013 8:41 am    Post subject: Reply with quote

Having just spent two days moving from a 250Gb hdd to a 500Gb I'm impressed even more with Clonezilla, now working on a faster second-hand computer Very Happy
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
catgate
LXF regular


Joined: Wed Jul 19, 2006 7:45 pm
Posts: 1013
Location: Just over there, in that corner.

PostPosted: Fri May 17, 2013 8:56 pm    Post subject: Reply with quote

towy71 wrote:
Having just spent two days moving from a 250Gb hdd to a 500Gb I'm impressed even more with Clonezilla, now working on a faster second-hand computer Very Happy

That gives me great encouragement, towy71. However what does frighten me is the "two days" part.
My new drive arrived today, and I was turning over in my mind just exactly I was going to do. Please tell me that there is a way to do it in less than two days.
_________________
Oh, sod it.
Back to top
View user's profile Send private message
towy71
Moderator


Joined: Wed Apr 06, 2005 3:11 pm
Posts: 4242
Location: wild West Wales

PostPosted: Fri May 17, 2013 9:15 pm    Post subject: Reply with quote

I had to grow the partitions after clonezilla had done its work and I have bought a "new" quieter computer with the hard-drive attached and had fun cannibalising and moving hardware, these things happen Rolling Eyes

A couple of hours for normal people Wink

ps then my wife's very old pentium3 died and so I had to spend time migrating her to my old box too (she only has the thing to email and look at the weather, oh and buy tickets to things and places Wink )
_________________
still looking for that door into summer
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2423

PostPosted: Fri May 17, 2013 9:41 pm    Post subject: Reply with quote

As you now have 2 different drives, use the new one to do a fresh install, then copy over the relevant bits from the old HDD. Much quicker then cloning Wink
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast