Jump to content

Linux: Difference between revisions

58 bytes added ,  21 January 2023
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 to a multiple of
# 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