It won’t.
You can either turn bitlocker off first, then use partclone.ntfs and turn bitlocker back on.
Or use dd or pv on that specific partition.
Or Using Dislocker: On Linux, you can use a tool like Dislocker to unlock the BitLocker partition with the recovery key or password, creating a virtual decrypted partition. Partclone could then theoretically back up this decrypted virtual partition, but this process is complex and not officially supported by Partclone. You will need to reencrypt the destination partition afterwards. Here’s the complete procedure, untested:
- Create a Mount Point for Dislocker: Create directories to mount the BitLocker partition and its decrypted contents.
sudo mkdir /mnt/bitlocker /mnt/decrypted
- Unlock the BitLocker Partition with Dislocker: Use Dislocker to decrypt /dev/sda4 and create a virtual decrypted device. Replace RECOVERY_KEY with your actual BitLocker recovery key (or use -pPASSWORD for a password).
sudo dislocker -r -V /dev/sda4 -uRECOVERY_KEY -- /mnt/bitlocker
- -r: Read-only mode (recommended for cloning).
- -V /dev/sda4: Specifies the BitLocker-encrypted partition.
- -uRECOVERY_KEY: Unlocks using the recovery key.
- – /mnt/bitlocker: Specifies the output directory for the Dislocker file.This creates a virtual file at /mnt/bitlocker/dislocker-file containing the decrypted partition data.
- Mount the Decrypted Partition: Mount the decrypted virtual device to access its file system (usually NTFS).
sudo mount -o loop /mnt/bitlocker/dislocker-file /mnt/decrypted
- Verify the Decrypted Partition: Check that the decrypted partition is accessible.
ls /mnt/decrypted
You should see the contents of the NTFS file system. If not, verify the Dislocker command and key.
- Prepare the Target Partition (/dev/sdb4): Ensure /dev/sdb4 is formatted as NTFS (or the same file system as the decrypted partition). If it’s not already formatted:
sudo mkfs.ntfs -f /dev/sdb4
Warning: This wipes /dev/sdb4. Ensure it contains no important data.
- Clone the Decrypted Partition with Partclone: Use Partclone to clone the file system from the decrypted partition to /dev/sdb4. Since the decrypted partition is NTFS, use partclone.ntfs.
sudo partclone.ntfs -c -s /mnt/decrypted -o /dev/sdb4
- -c: Clone mode (copies the source to the target).
- -s /mnt/decrypted: Source is the mounted decrypted partition.
- -o /dev/sdb4: Output is the target partition.Alternatively, if you want to create an image file first (e.g., to store on another drive), you can do:
sudo partclone.ntfs -c -s /mnt/decrypted -o /path/to/backup.img
Then restore to /dev/sdb4:
sudo partclone.ntfs -r -s /path/to/backup.img -o /dev/sdb4
- Verify the Cloned Partition: Mount /dev/sdb4 to check its contents:
sudo mkdir /mnt/cloned
sudo mount /dev/sdb4 /mnt/cloned
ls /mnt/cloned
Ensure the files match those in /mnt/decrypted.
- Clean Up: Unmount the partitions and remove temporary directories.
sudo umount /mnt/decrypted
sudo umount /mnt/cloned
sudo rm -rf /mnt/bitlocker /mnt/decrypted /mnt/cloned