Created
August 23, 2021 19:11
-
-
Save saltera/97dd6398fe5940fb2a0cc21110dbd228 to your computer and use it in GitHub Desktop.
dislocker.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dislocker | |
sudo apt update | |
sudo apt install 'dislocker' | |
# Identify the target partition | |
lsblk | |
# Unlock bitlocker and mount the virtual partition | |
# Change /dev/sdx1 | |
mkdir --parents '/media/bitlockerloop' | |
sudo dislocker \ | |
--volume '/dev/nvme0n1p3' \ | |
--recovery-password="$RECOVERY_KEY" \ | |
-- '/media/bitlockerloop' | |
sudo ls '/media/windows' | |
# Mount the ntfs partition readonly | |
mkdir --parents '/media/windows' | |
sudo mount \ | |
--type 'ntfs-3g' \ | |
--options loop,r \ | |
'/media/bitlockerloop/dislocker-file' \ | |
'/media/windows' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment