Groups | Search | Server Info | Login | Register


Groups > comp.os.linux.misc > #16816

Re: Is there a good "dd for dummies" tutorial around?

From "Carlos E.R." <robin_listas@invalid.es>
Newsgroups comp.os.linux.misc
Subject Re: Is there a good "dd for dummies" tutorial around?
Date 2016-02-22 04:39 +0100
Organization Netfront http://www.netfront.net/
Message-ID <tgcqpc-dvg.ln1@Telcontar.valinor> (permalink)
References <9be980ce-21a2-4d14-bfb4-ad96dcd9a5a5@googlegroups.com> <ck6qpc-lj9.ln1@minas-tirith.valinor>

Show all headers | View raw


On 2016-02-22 02:59, Carlos E. R. wrote:
> On 2016-02-20 19:04, pureheart@pacbell.net wrote:
>> This is probably considered basic stuff but I'm still having trouble understanding dd.
>>
>> In particular, why do the things it writes/reads to have to be *un*mounted?
> 
> They don't. It depends on what you want to do.

To clarify.

 dd if=/tmp/somefile of=/tmp/someotherfile

needs the filesystem be mounted. while:

 dd if=/dev/sdb1 of=/tmp/imageofsdb1

can run while sdb1 is mounted, but the resulting image will be "dirty";
ie, it will at need an fsck before being used. And if something changes
in the mounted sdb1 while the copy runs, the resulting image will be
inconsistent.

This one:

 dd if=/tmp/imageofsdb1 of=/dev/sdb1

might (at worst) provoke a crash of some kind if sdb1 is mounted while
you write to it this way.


None of that is specific to 'dd', but to copy and filesystem operations,
regardless of whatever tool you use.

In fact, all those operations can be done with a plain "cp", ie, the
copy file program.

-- 
Cheers, Carlos.

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Is there a good "dd for dummies" tutorial around? pureheart@pacbell.net - 2016-02-20 10:04 -0800
  Re: Is there a good "dd for dummies" tutorial around? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2016-02-20 20:24 +0200
  Re: Is there a good "dd for dummies" tutorial around? William Unruh <unruh@invalid.ca> - 2016-02-20 18:26 +0000
  Re: Is there a good "dd for dummies" tutorial around? Robert Heller <heller@deepsoft.com> - 2016-02-20 12:40 -0600
  Re: Is there a good "dd for dummies" tutorial around? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2016-02-20 14:10 -0500
  Re: Is there a good "dd for dummies" tutorial around? "Carlos E. R." <robin_listas@invalid.es> - 2016-02-22 02:59 +0100
    Re: Is there a good "dd for dummies" tutorial around? "Carlos E.R." <robin_listas@invalid.es> - 2016-02-22 04:39 +0100
      Re: Is there a good "dd for dummies" tutorial around? pureheart@pacbell.net - 2016-02-24 15:55 -0800
        Re: Is there a good "dd for dummies" tutorial around? "Carlos E. R." <robin_listas@invalid.es> - 2016-02-26 03:39 +0100
          Re: Is there a good "dd for dummies" tutorial around? pureheart@pacbell.net - 2016-02-29 18:05 -0800
            Re: Is there a good "dd for dummies" tutorial around? The Natural Philosopher <tnp@invalid.invalid> - 2016-03-01 02:45 +0000
            Re: Is there a good "dd for dummies" tutorial around? "Carlos E.R." <robin_listas@invalid.es> - 2016-03-01 11:14 +0100

csiph-web