linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Used dd to copy an ext4 filesystem, but target contained an old (mounted!) filesystem
@ 2011-10-17 11:52 Bas van Schaik
  2011-10-17 12:37 ` Bas van Schaik
  2011-10-18  1:06 ` Jan Kara
  0 siblings, 2 replies; 3+ messages in thread
From: Bas van Schaik @ 2011-10-17 11:52 UTC (permalink / raw)
  To: linux-ext4

Hi all,

Long story short: I dd'ed 1.5TB of data to an LVM volume 'newdata' that 
already contained a filesystem (which I wanted to get rid of). 
Unfortunately, the old filesystem turned out to be mounted during the 
dd. After noticing this, I quickly created LVM snapshots of the 
'newdata' volume before unmounting the old filesystem (hoping that it 
didn't write out it fs data structures to 'newdata' yet, as I didn't 
access it) and tried mounting the snapshot. Unfortunately, it showed the 
old directory listing.

The actual data is definitely sitting on the 'newdata' volume, but the 
filesystem datastructures simply don't know about it. The source of the 
data is definitely gone, I can't simply dd it again.

Is there any other location where ext4 stores a copy of its data 
structures? Or any other tips & tricks?

Many thanks,

   Bas

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

end of thread, other threads:[~2011-10-18  1:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17 11:52 Used dd to copy an ext4 filesystem, but target contained an old (mounted!) filesystem Bas van Schaik
2011-10-17 12:37 ` Bas van Schaik
2011-10-18  1:06 ` Jan Kara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).