2
0
mirror of https://github.com/LCTT/TranslateProject.git synced 2025-03-27 02:30:10 +08:00

translating

This commit is contained in:
geekpi 2021-11-22 08:47:42 +08:00
parent 733843eed6
commit e725052c20
2 changed files with 194 additions and 194 deletions

View File

@ -1,194 +0,0 @@
[#]: subject: "How to Mount Bitlocker Encrypted Windows Partition in Linux"
[#]: via: "https://itsfoss.com/mount-encrypted-windows-partition-linux/"
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
How to Mount Bitlocker Encrypted Windows Partition in Linux
======
Heres the scenario. My system came with Windows 10 Pro and that came with BitLocker encryption. I [installed Ubuntu in the dual boot mode even with the BitLocker encryption][1] enabled for Windows.
You can easily access the Windows files from within Linux. No hi-fi stuff here. Just go to the file manager and click on the Windows partition which is located usually under the “Other Locations” tab.
![Mounting Windows partition through the file manager in Linux desktop][2]
The process is not too complicated with BitLocker encrypted Windows partition as well. Its just that when you try to mount the Windows partition, it will ask for the password.
![Password required for encrypted Windows drive mount in Linux][3]
It works though. In my case, I entered the 48 digit BitLocker recovery password and it decrypted the Windows partition and mounted it without any issue in Ubuntu 21.10 with GNOME 40.
Try your BitLocker password. If that does not work, try the recovery password. For normal Windows 10 Pro users, the recovery password is stored in your Microsoft account.
[BitLocker Recovery Password in Micrsoft Account][4]
Enter the recovery and youll see that Windows partition and its files are accessible now. Checking the “Remember Password” box is also a time saver for further usage.
![Encrypted Windows partition now mounted in Linux][5]
If the above does not work for you or if you are stuck with the command line, there is an alternative method.
This method involves using a tool called [Dislocker][6].
### Mount BotLocker encrypted Windows partition in Linux with Dislocker [Command Line Method]
Dislocker process works in two parts. The first part decrypts the BitLocker encryption and gives a file named dislocker-file. This is basically a virtual NTFS partition. The second part is basically mounting the virtual NTFS partition you just got.
Youll need either the BitLocker password or the recovery password to decrypt the encrypted drive.
Lets see the steps in details.
#### Step 1: Install Disclocker
Dislocker is available in the repositories of most Linux distributions. Please use your distributions package manager to install it.
On Ubuntu and Debian based distributions, use this command:
```
sudo apt install dislocker
```
![Installing Dislocker in Ubuntu][7]
#### Step 2 : Create mount points
Youll need to create two mount points. One for where Dislocker will generate the dislocker-file and the other one which will mount this dislocker-file (virtual filesystem) as a loop device.
There is no naming restrictions and you may name these mount directories anything you want.
Use these commands one by one:
```
sudo mkdir -p /media/decrypt
sudo mkdir -p /media/windows-mount
```
![Creating mount points for dislocker][8]
#### Step 3: Get the partition info which needs to be decrypted
You need the name of the Windows partition. You can use the file explorer or GUI tools like Gparted.
![Get the partition name][9]
In my case, the Windows partition is /dev/nvme0n1p3. It will be different for your system. You may also use command line for this purpose.
```
sudo lsblk
```
#### Step 4: Decrypt the partition and mount
You have everything set up. Now comes the real part.
I**f you have the BitLocker password**, use the dislocker command in this fashion (replace <partition_name> and <password> with actual values):
```
sudo dislocker <partition_name> -u<password> -- /media/decrypt
```
Please note that **there is no space between u and password**.
If you only have the recovery password, use the command in this fashion (replace &lt;partition_name&gt; and &lt;recovery_password&gt; with actual values):
```
sudo dislocker <partition_name> -p<recovery_password> -- /media/decrypt
```
Again, there is **no space between p and password**.
It should not take a long time in decrypting the partition. You should see the dislocker-file in the designated mount point, /media/decrypt in our case. Now mount this dislocker-file:
```
sudo mount -o loop /media/decrypt/dislocker-file /media/windows-mount
```
![][10]
You are done. Your BitLocker encrypted Windows partition is decrypted and mounted in Linux. You can access it from the file explorer as well.
![Mounting Dislocker decrypted Windows partition with file manager][11]
#### Troubleshooting tips for wrong fs type error
If you get an error like this:
```
mount: /media/windows-mount: wrong fs type, bad option, bad superblock on /dev/loop35, missing codepage or helper program, or other error.
```
You should specify the filesystem while mounting.
For NTFS, use:
```
sudo mount -t ntfs-3g -o loop /media/decrypt/dislocker-file /media/windows-mount
```
For exFAT, use:
```
sudo mount -t exFAT-fuse -o loop /media/decrypt/dislocker-file /media/windows-mount
```
#### Unmount the Windows partition
You can unmount the mounted partition from the file manager. Just **click the unmount symbol** beside the partition named windows-mount.
Otherwise, unmount command is always there for you.
```
sudo umount /media/decrypt
sudo umount /media/windows-mount
```
I hope it helps you. If you still have questions or suggestions, please let me know in the comments.
--------------------------------------------------------------------------------
via: https://itsfoss.com/mount-encrypted-windows-partition-linux/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://itsfoss.com/dual-boot-ubuntu-windows-bitlocker/
[2]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/mount-encrypted-windows-partition-in-linux.png?resize=800%2C476&ssl=1
[3]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/password-needed-for-encrypted-windows-drive-mount-in-Linux.png?resize=788%2C380&ssl=1
[4]: https://account.microsoft.com/devices/recoverykey?refd=support.microsoft.com
[5]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/encrypted-windows-partition-mounted-in-Linux.png?resize=800%2C491&ssl=1
[6]: https://github.com/Aorimn/dislocker
[7]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/11/install-dislocker-ubuntu.png?resize=786%2C386&ssl=1
[8]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/creating-mount-points-for-dislocker.png?resize=777%2C367&ssl=1
[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/show-device-name-gparted.png?resize=800%2C416&ssl=1
[10]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/mount-dislocker-decrypted-windows-partition.png?resize=777%2C253&ssl=1
[11]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/discloker-mount-encrypted-windows-partition.png?resize=800%2C483&ssl=1

View File

@ -0,0 +1,194 @@
[#]: subject: "How to Mount Bitlocker Encrypted Windows Partition in Linux"
[#]: via: "https://itsfoss.com/mount-encrypted-windows-partition-linux/"
[#]: author: "Abhishek Prakash https://itsfoss.com/author/abhishek/"
[#]: collector: "lujun9972"
[#]: translator: "geekpi"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
如何在 Linux 中挂载 Bitlocker 加密的 Windows 分区
======
情况是这样的。我的系统自带 Windows 10 Pro并且带有 BitLocker 加密功能。我[在双启动模式下安装了 Ubuntu即使是 Windows 启用了 BitLocker 加密的情况下。][1]
你可以轻松地从 Linux 中访问 Windows 文件。这里没有高大上的东西。只要进入文件管理器,点击通常位于“其他位置”标签下的 Windows 分区。
![Mounting Windows partition through the file manager in Linux desktop][2]
对于 BitLocker 加密的 Windows 分区来说,这个过程也不是太复杂。只是当你试图挂载 Windows 分区时,它会要求你输入密码。
![Password required for encrypted Windows drive mount in Linux][3]
不过它还是能用的。在我的例子中,我输入了 48 位 BitLocker 恢复密码,它解密了 Windows 分区,并在带有 GNOME 40 的 Ubuntu 21.10 中毫无问题地挂载了它。
试试你的 BitLocker 密码。如果这不起作用,试试恢复密码。对于普通的 Windows 10 Pro 用户,恢复密码存储在你的微软账户中。
[BitLocker Recovery Password in Micrsoft Account][4]
输入恢复密码,你会看到 Windows 分区和它的文件现在可以访问。勾选“记住密码”框也是为了进一步使用而节省时间。
![Encrypted Windows partition now mounted in Linux][5]
如果上述方法对你不起作用,或者你不熟悉命令行,还有一个替代方法。
这个方法包括使用一个叫做 [Dislocker][6] 的工具。
### 使用 Dislocker 在 Linux 中挂载 BotLocker 加密的 Windows 分区(命令行方法)
使用 Dislocker 分为两部分。第一部分是解开 BitLocker 的加密,并给出一个名为 dislocker-file 的文件。这基本上是一个虚拟的 NTFS 分区。第二部分是挂载你刚刚得到的虚拟 NTFS 分区。
你将需要 BitLocker 密码或恢复密码来解密加密的驱动器。
让我们来看看详细的步骤。
#### 步骤 1安装 Disclocker
大多数 Linux 发行版的仓库中都有 Dislocker。请使用你的发行版的包管理器来安装它。
在基于 Ubuntu 和 Debian 的发行版上,使用这个命令:
```
sudo apt install dislocker
```
![Installing Dislocker in Ubuntu][7]
#### 步骤 2创建挂载点
你需要创建两个挂载点。一个是 Dislocker 生成 dislocker-file 的地方,另一个是将这个 dislocker-file虚拟文件系统作为一个回环设备挂载。
没有命名限制,你可以给这些挂载目录起任何你想要的名字。
逐一使用这些命令:
```
sudo mkdir -p /media/decrypt
sudo mkdir -p /media/windows-mount
```
![Creating mount points for dislocker][8]
#### 步骤 3获取需要解密的分区信息
你需要 Windows 分区的名称。你可以使用文件资源管理器或像 Gparted 这样的 GUI 工具。
![Get the partition name][9]
在我的例子中Windows 分区是 /dev/nvme0n1p3。对你的系统来说这将是不同的。你也可以使用命令行来达到这个目的。
```
sudo lsblk
```
#### 步骤 4解密分区并挂载
你已经设置好了一切。现在是真正的部分。
**如果你有 BitLocker 密码**,以这种方式使用 dislocker 命令(用实际值替换 &lt;partition_name&gt;&lt;password&gt;
```
sudo dislocker <partition_name> -u<password> -- /media/decrypt
```
请注意,**u 和 password 之间没有空格**。
如果你只有恢复密码,请以这种方式使用该命令(用实际值替换 &lt;partition_name&gt;&lt;recovery_password&gt;
```
sudo dislocker <partition_name> -p<recovery_password> -- /media/decrypt
```
同样,**p 和密码之间没有空格**。
在解密该分区时,应该不会花很长时间。你应该在指定的挂载点看到 dislocker-file在我们的例子中是 /media/decrypt。现在挂载这个 dislocker-file
```
sudo mount -o loop /media/decrypt/dislocker-file /media/windows-mount
```
![][10]
完成了。你的 BitLocker 加密的 Windows 分区已经被解密并挂载到 Linux 中。你也可以从文件资源管理器中访问它。
![Mounting Dislocker decrypted Windows partition with file manager][11]
#### 文件系统类型错误的故障排除提示
如果你遇到这样的错误:
```
mount: /media/windows-mount: wrong fs type, bad option, bad superblock on /dev/loop35, missing codepage or helper program, or other error.
```
你应该在挂载时指定文件系统。
对于NTFS使用
```
sudo mount -t ntfs-3g -o loop /media/decrypt/dislocker-file /media/windows-mount
```
对于 exFAT使用
```
sudo mount -t exFAT-fuse -o loop /media/decrypt/dislocker-file /media/windows-mount
```
#### 解除对 Windows 分区的挂载
你可以从文件管理器中取消挂载的分区。只要**点击名为 windows-mount 的分区旁边的 unmount 符号**。
否则,你可以使用卸载命令。
```
sudo umount /media/decrypt
sudo umount /media/windows-mount
```
我希望这对你有帮助。如果你还有问题或建议,请在评论中告诉我。
--------------------------------------------------------------------------------
via: https://itsfoss.com/mount-encrypted-windows-partition-linux/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://itsfoss.com/dual-boot-ubuntu-windows-bitlocker/
[2]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/mount-encrypted-windows-partition-in-linux.png?resize=800%2C476&ssl=1
[3]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2021/11/password-needed-for-encrypted-windows-drive-mount-in-Linux.png?resize=788%2C380&ssl=1
[4]: https://account.microsoft.com/devices/recoverykey?refd=support.microsoft.com
[5]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/encrypted-windows-partition-mounted-in-Linux.png?resize=800%2C491&ssl=1
[6]: https://github.com/Aorimn/dislocker
[7]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2021/11/install-dislocker-ubuntu.png?resize=786%2C386&ssl=1
[8]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/creating-mount-points-for-dislocker.png?resize=777%2C367&ssl=1
[9]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/show-device-name-gparted.png?resize=800%2C416&ssl=1
[10]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/mount-dislocker-decrypted-windows-partition.png?resize=777%2C253&ssl=1
[11]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2021/11/discloker-mount-encrypted-windows-partition.png?resize=800%2C483&ssl=1