Re: Moved partition via dd

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

 



On Jun 8, 2013, at 6:42 PM, André Schlichting <andre@xxxxxxxxxx> wrote:

> 
> 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

Ahh, one of the new 4kN drives, interesting. So in that case bs=4096 is OK.

The next issue:

>> if=/dev/sdc2 skip=$((245547520-33024)) seek=0 of=/dev/sdc2

You have a skip (skip n block from input) value well inside of sdc2. It seems you should have skipped from sdc not sdc2, and should have used the old start value for sdc2 which was just 245547520, and you needed to specify a count value in order to get the correct number of blocks, which would have been 732566527-245547520. Then write those blocks to sdc2 (which makes seek= unnecessary).


Chris Murphy--
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




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux