Re: luks partition table altered by linux-swap

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

 



Well, headers seem to be ok. cryptsetup luksDump finds it without any problem.

xxd /dev/sdc1 |head -n 10
0000000: 4c55 4b53 babe 0001 6165 7300 0000 0000  LUKS....aes.....
0000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000020: 0000 0000 0000 0000 6362 632d 6573 7369  ........cbc-essi
0000030: 763a 7368 6132 3536 0000 0000 0000 0000  v:sha256........
0000040: 0000 0000 0000 0000 7368 6131 0000 0000  ........sha1....
0000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000060: 0000 0000 0000 0000 0000 0408 0000 0010  ................
0000070: e00b 50a0 0042 ae4a cd71 ccff 4b8a b701  ..P..B.J.q..K...
0000080: 8872 f723 19d5 c1d6 945c 8aed c3b4 703b  .r.#.....\....p;
0000090: a2e2 a755 961d b2e9 fd06 59f3 0ecd 42a6  ...U......Y...B.


The problem is that the first sector of disk, where partition table is
hold was altered with this damned swap partition of 2gb.

Maybe there is any way on how to create artificial partition table
manually that will be correct for dm-crypt to work? And then write it
to this drive using dd or smth.


On Mon, Sep 28, 2009 at 5:48 PM, Jonas Meurer <jonas@xxxxxxxxxxxxxxx> wrote:
> On 28/09/2009 anton ivanov wrote:
>> I am trying to recover old partition table using gpart, though it is
>> taking too much time with 6.5 TB drive.
>>
>> There were no writes onto this disk, so none of the information were
>> lost. Problem is with partition tables only.
>
> i don't know redhat cryptsetup management, but maybe a swap filesystem
> was created (mkswap) on the disk in question? in that case, the luks
> and/or raid headers might have been overwritten ...
>
>> Just curious maybe there is some cryptsetup ability to recover
>> partition table on disk without luksFormat but using already stored
>> metadata on the drive.
>
> only in case that you do have a backup of your luks header.
>
> greetings,
>  jonas
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAkrAzLMACgkQd6lUs+JfIQJXwwCfW22Gjse3wbLM6BzYaoLbpfVJ
> YDsAmwb476W6oloWguoBoNk8Q9VXTZCY
> =ZjmJ
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@xxxxxxxx
> http://www.saout.de/mailman/listinfo/dm-crypt
>
>



-- 
ai.

http://biwwy.com/
last.fm: littlewizard
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux