bay*_*irh 7 linux mount ntfs ddrescue disk-image
我已经在 Linux 中使用 ddrescue 恢复了一个完整的 NTFS 磁盘。问题是我不仅拯救了分区 (sdX#),还拯救了带有分区表的完整磁盘 (sdX)。
将磁盘分区挂载为环回设备确实很容易,但是有没有办法以相同的方式挂载完整磁盘映像的分区?我可以将图像写入另一个磁盘,但我觉得没有必要。
小智 8
如果您对整个驱动器进行了映像,则可以在 mount 命令中使用 offset 选项。mmls(来自 The Sleuth Kit)可以显示图像中的分区
$ mmls image -b
DOS Partition Table
Offset Sector: 0
Units are in 512-byte sectors
Slot Start End Length Size Description
00: ----- 0000000000 0000000000 0000000001 0512B Primary Table (#0)
01: ----- 0000000001 0000000031 0000000031 0015K Unallocated
02: 00:01 0000000032 0001646591 0001646560 0803M DOS FAT16 (0x06)
03: 00:00 0001646592 0002013183 0000366592 0179M DOS FAT16 (0x06)
Run Code Online (Sandbox Code Playgroud)
从块 32 开始挂载 DOS 分区:
sudo mount -o loop,offset=16384 image mnt
Run Code Online (Sandbox Code Playgroud)
(32 乘以 512 字节块 = 16384)
要安装由 Windows 创建的典型 NTFS 分区,请使用:
sudo mount -t ntfs -o r,force,loop,offset=32256 image mnt
Run Code Online (Sandbox Code Playgroud)
(63 乘以 512 字节块 = 32256)
| 归档时间: |
|
| 查看次数: |
6238 次 |
| 最近记录: |