public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Chris Walters <cjw2004d@comcast.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Hard drive change
Date: Fri, 09 Nov 2012 12:56:52 -0500	[thread overview]
Message-ID: <509D43E4.4000203@comcast.net> (raw)
In-Reply-To: <1430915.hHFjP07X6l@energy>

On 11/9/2012 10:14 AM, Volker Armin Hemmann wrote:
> Am Freitag, 9. November 2012, 01:38:41 schrieb mindrunner:
>> volker, what is your intention to say i am dumb and stupid. actually you
>> do not know me.
> 
> everybody does something dumb and/or stupid once in a while. I average that 
> one to 1/day.
> 
> There are two ways to react if someone points out that something you do is not 
> the best idea since sliced bread.
> 
> -> oops. Yeah, I see it.
> or
> -> sulking.

I'm going to have to agree with Volker on this.  I don't believe he was calling
*you* stupid - just the idea of using dd to transfer files from old drive to
new drive.  The dd utility has it's good uses - that's just not one of those
good uses.

> no, it does not. Apart from fragmentation you also copy all deleted files. All 
> damaged blocks AND the UUID. 
> 
> Oh, and it is slow (I know, fiddling with blocksize etc you can speed it up a 
> lot. Still slow).

Yes, you copy everything with dd, and it is extremely slow.  It is better to
use another utility to just copy the files and directory structure from the old
drive to the new one.

> Create an image with dd to do some file rescuing? forensic stuff? as a template 
> for containers? To burn it on a dvd/cd? Well, those are valid uses for dd. 
> Converting files? Yes, that is what dd was made for.

Agreed.

> Copying a partition to another disk, different disk? Wow.. that is just wrong. 
> Even if both disks were identical it would not be great idea. Just a 'well, it 
> does work and at least I am not punishing the new disk' way to do it.
> 
> Mind you, cp -auv is not the best way either. With ACLs&co it is not such a 
> good choice. And I am surprised that Joerg Schilling hasn't posted how 
> incredible star is for this job yet. Btw, star is a really good tool for the 
> job. It just needs a lot of typing. 
> 
> tar, rsync, cp, star... there are many good or good enough ways to copy files 
> from one harddisk to another
> 
> dd doesn't belong in that category.

Very true.  I'd personally rather use tar or even dar to copy the files.  cp
has it's limitations, though it is faster, as it doesn't use compression
(technically, you don't need that with tar, either).

Regards,
Chris


---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 121109-0, 11/09/2012
Tested on: 11/9/2012 12:56:53 PM
avast! - copyright (c) 1988-2012 AVAST Software.
http://www.avast.com





  parent reply	other threads:[~2012-11-09 18:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 11:08 [gentoo-user] Hard drive change jdm
2012-11-08 11:51 ` Neil Bothwick
2012-11-08 13:03 ` Volker Armin Hemmann
2012-11-08 14:12   ` Srdjan Rakic
2012-11-08 15:23     ` mindrunner
2012-11-08 15:37       ` Neil Bothwick
2012-11-08 18:33         ` mindrunner
2012-11-08 20:37       ` Volker Armin Hemmann
2012-11-09 12:00         ` mindrunner
2012-11-09 12:25           ` Bruce Hill
2012-11-09 13:56           ` Mark Knecht
2012-11-09 14:37             ` Bruce Hill
2012-11-13 21:10             ` Lukas Elsner
2012-11-09 14:00           ` Philip Webb
2012-11-09 15:07             ` Bruce Hill
     [not found]         ` <509C5091.4040903@ccube.de>
2012-11-09 15:14           ` Volker Armin Hemmann
2012-11-09 15:40             ` Bruce Hill
2012-11-09 17:56             ` Chris Walters [this message]
2012-11-08 15:10   ` Neil Bothwick
2012-11-08 16:37   ` Paul Hartman
2012-11-08 18:17     ` Florian Philipp
2012-11-08 19:46       ` john
2012-11-12 12:14         ` Mick
  -- strict thread matches above, loose matches on Subject: below --
2012-11-08 12:08 jdm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=509D43E4.4000203@comcast.net \
    --to=cjw2004d@comcast.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox