5,322
edits
Line 844: | Line 844: | ||
dd if=${OLD_DRIVE}1 of=${NEW_DRIVE}1 bs=4k | dd if=${OLD_DRIVE}1 of=${NEW_DRIVE}1 bs=4k | ||
# Make a new partition. Make sure start and end sectors are aligned | # Make a new partition. Make sure start and end sectors are aligned. | ||
# i.e. start % 8 == 0 and end % 8 == 7 | # i.e. start % 8 == 0 and end % 8 == 7 if your physical sector size is 4096 bytes, typical for new HDDs and SSDs. | ||
parted $NEW_DRIVE mkpart primary btrfs 1050624s 488396791s | parted $NEW_DRIVE mkpart primary btrfs 1050624s 488396791s | ||
parted $NEW_DRIVE align-check opt 2 | parted $NEW_DRIVE align-check opt 2 |