Re: Issue recovering a md device with first 4kB lost.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 9, 2012 at 10:19 AM, Mikael Abrahamsson <swmike@xxxxxxxxx> wrote:

>> 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
>
>
> That assumes that lvm has allocated a continous amount of blocks for the
> filesystem. It might be better to try to find the lvm offset and then get
> lvm started properly and then getting the filesystem through lvm.
>

How to find that offset for the ext4? And I guess that to verify
whether lvm has allocated a continuous amount of blocks, a "fsck -n
/dev/loop0" would allow to test that the fs is in a consistent state.

Otherwise, which command to use to start lvm properly?
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux