Hot answers tagged

8

By doing the copy 512 bytes at a time you are doing lots and lots of reads and writes. About a trillion, actually, if you do the math. You've also asked for sync [EDIT: this is not oflag=sync so the next statement is invalid], which means to wait for each write to actually make it out to disk before that write can return. Let's say your disk is pretty speedy ...


3

Partition 3 is only 1MB long, which isn't enough to create a PV. Empirical evidence dd if=/dev/zero bs=1M count=1 > dd.img loop=$(losetup --show --find dd.img); echo "$loop" # /dev/loop0 pvcreate "$loop" # Device /dev/loop0 not found (or ignored by filtering). losetup -d "$loop" rm -f dd.img dd if=/dev/zero bs=10M count=1 > dd.img loop=$(losetup ...


2

The size of the image is the same as the size of the partition that you are creating the image from. You haven't said how big your partition is, but if it's, say, half of the hard drive's total capacity then your stated size is not unreasonable depending on the size of the hard drive. The important thing is that the partition where you are saving the image ...



Only top voted, non community-wiki answers of a minimum length are eligible