From: Theodore Tso <tytso@mit.edu>
To: Eric Sandeen <sandeen@redhat.com>
Cc: Alexey Salmin <alexey.salmin@gmail.com>,
Jesper Jensen <linux-ext4_mailinglist@elector.dk>,
linux-ext4@vger.kernel.org
Subject: Re: Formatted/repartitioned wrong disk, arrgh!
Date: Fri, 6 Nov 2009 11:01:52 -0500 [thread overview]
Message-ID: <20091106160152.GB26342@mit.edu> (raw)
In-Reply-To: <4AF43525.1040205@redhat.com>
On Fri, Nov 06, 2009 at 08:39:33AM -0600, Eric Sandeen wrote:
>
> Well, if you repartitioned / moved the partition, then the new mkfs
> likely wouldn't have perfectly overwritten the old metadata structures,
> so if you can re-partition again and put the starting sector -back- at
> the original location, an e2fsck might have a fighting chance to find
> -something- ...
I thought what had been done was that a physical disk had a new ESX
layout slapped on top of it, and then a new partition label was
created, and *then* mkfs.ext4 was run --- so that the new filesystem
pretty much overlaid the original filesystem. In that case, there
really isn't much that can be done. If the repartitioning really did
move the start of the filesystem sufficiently to avoid smashing all of
the metadata fields, then I agree, there might be a chance....
One idea which Andi Kleen and I tossed around at Linux Kongress was to
add a 4 byte per-inode CRC that also mixed in the inode number (to
detect inode table blocks getting written to the wrong location on
disk) as well as a per-filesystem ID. This would allow us to detect
inodes from pervious filesystems formats, which would also allow us to
avoid needing to zero out the inode table, and it might allow for
people to have a slightly better chance of recovering after a mke2fs
(as well as making mke2fs faster without needing to zero the inode
table, either in mke2fs or via a background kernel thread once the
file system is mounted).
- Ted
next prev parent reply other threads:[~2009-11-06 16:01 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 10:19 Formatted/repartitioned wrong disk, arrgh! Jesper Jensen
2009-11-06 10:49 ` Alexey Salmin
2009-11-06 11:49 ` Jesper Jensen
2009-11-06 11:57 ` Alexey Salmin
2009-11-06 14:04 ` Theodore Tso
2009-11-06 14:39 ` Eric Sandeen
2009-11-06 16:01 ` Theodore Tso [this message]
2009-11-06 14:43 ` Alexey Fisher
2009-11-06 15:02 ` Greg Freemyer
2009-11-06 16:06 ` Jesper Jensen
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=20091106160152.GB26342@mit.edu \
--to=tytso@mit.edu \
--cc=alexey.salmin@gmail.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-ext4_mailinglist@elector.dk \
--cc=sandeen@redhat.com \
/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