Linux Device Mapper development
 help / color / mirror / Atom feed
* Using the dm tools to create a writable "mirror" of a physical disk
@ 2011-02-02 22:31 Anders Andersson
  2011-02-03  0:17 ` Phillip Susi
  0 siblings, 1 reply; 2+ messages in thread
From: Anders Andersson @ 2011-02-02 22:31 UTC (permalink / raw)
  To: dm-devel

Good evening! I was recently given the task of trying to salvage files
from a 1.5TB harddrive that was accidentally formatted and/or
repartitioned. Normally I would do a 1:1 copy of the whole drive to a
file and operate on that, but I simply do not have that much room this
time.

Ideally I would like to create a writable snapshot in the same way as
I do with my LVM volumes, storing the changes in a smaller file or in
another block device so that I can experiment freely without worrying
about destroying anything else on the drive. Is this possible
(probably) and easy (probably not?) with any device mapper tools? I'm
not really sure where I should begin looking, because dmsetup is
probably pretty low-level.

Thanks for any pointers and ideas.

// Anders

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using the dm tools to create a writable "mirror" of a physical disk
  2011-02-02 22:31 Using the dm tools to create a writable "mirror" of a physical disk Anders Andersson
@ 2011-02-03  0:17 ` Phillip Susi
  0 siblings, 0 replies; 2+ messages in thread
From: Phillip Susi @ 2011-02-03  0:17 UTC (permalink / raw)
  To: device-mapper development; +Cc: Anders Andersson

On 02/02/2011 05:31 PM, Anders Andersson wrote:
> Good evening! I was recently given the task of trying to salvage files
> from a 1.5TB harddrive that was accidentally formatted and/or
> repartitioned. Normally I would do a 1:1 copy of the whole drive to a
> file and operate on that, but I simply do not have that much room this
> time.
>
> Ideally I would like to create a writable snapshot in the same way as
> I do with my LVM volumes, storing the changes in a smaller file or in
> another block device so that I can experiment freely without worrying
> about destroying anything else on the drive. Is this possible
> (probably) and easy (probably not?) with any device mapper tools? I'm
> not really sure where I should begin looking, because dmsetup is
> probably pretty low-level.

Yep, you need to use dmsetup.  Documentation/device-mapper/snapshot.txt 
in the kernel sources documents how.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-03  0:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-02 22:31 Using the dm tools to create a writable "mirror" of a physical disk Anders Andersson
2011-02-03  0:17 ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox