Am 09.06.2013 00:20, schrieb Chris Murphy:
On Jun 8, 2013, at 8:47 AM, André Schlichting <andre@xxxxxxxxxx> wrote:
The old partition had the sector boundaries: 245547520 - 732566527
I deleted this one and created a new one with boundaries: 33024 - 732566640
Now I moved the data
> sudo dd conv=notrunc bs=4096 iflag=fullblock if=/dev/sdc2 skip=$((245547520-33024)) seek=0 of=/dev/sdc2
You ultimately moved the wrong data because bs=4096 for dd, yet the partition logical sectors are based on 512 bytes.
Chris Murphy
I'm not sure, but this external disk has a GPT with sector size 4096 and
as I wrote the dm-crypted LUKS container can be opened without complains.
> fdisk -l /dev/sdc
WARNING: fdisk GPT support is currently new, and therefore in an
experimental phase. Use at your own discretion.
Disk /dev/sdc: 3000.6 GB, 3000592982016 bytes, 732566646 sectors
Units = Sektoren of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: gpt
# Start End Size Type Name
1 6 32773 128M Microsoft reserved partition
2 33024 732566640 2,7T Linux filesystem
André Schlichting
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html