All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel van Smoorenburg <mikevs@xs4all.net>
To: Massimo Gais <massimo.gais@iki.fi>
Cc: linux-raid@vger.kernel.org
Subject: Re: Issue recovering a md device with first 4kB lost.
Date: Tue, 09 Oct 2012 09:16:57 +0200	[thread overview]
Message-ID: <5073CF69.4@xs4all.net> (raw)
In-Reply-To: <CAPpPG0UTjpwiWQyxKsT+JcZt3VgDeGBVddUBd_+8a2+U-50AzA@mail.gmail.com>

On 9-10-12 12:46 AM, Massimo Gais wrote:
> I think all what is missing in order to access the ext4 filesystem is
> the md superblock, but what can I do to recreate it?

If you know where the ext4 filesystem starts, and you just want to 
access it, then why not use a loopback device with an offset to get at 
the filesystem ?

Something like

	losetup -o <offset-of-ext4-fs> /dev/loop0 /dev/sdd5
	mount -text4 -o ro /dev/loop0 /mnt

Mike.

  reply	other threads:[~2012-10-09  7:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAPpPG0WfVjk7qoC=EdJ=E=vt1uK8amMr9Hb0Q_P0tVyy63f+_w@mail.gmail.com>
2012-10-08 22:46 ` Issue recovering a md device with first 4kB lost Massimo Gais
2012-10-09  7:16   ` Miquel van Smoorenburg [this message]
2012-10-09  7:19     ` Mikael Abrahamsson
2012-10-09  7:28       ` Massimo Gais
2012-10-09  8:12         ` Massimo Gais

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=5073CF69.4@xs4all.net \
    --to=mikevs@xs4all.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=massimo.gais@iki.fi \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.