Open kgermanov opened 2 years ago
@szakacsits What do you think about this?
@kgermanov Usually the offset of the NTFS filesystem is described by the partition layout. The whole device node is not mounted but instead the partition device node set up by the kernel. Can you explain in what situation you would need to mount a filesystem like this, using a raw offset?
@unsound This usually appears in a situation where you need to mount a dump of PhysicalDrive(not a block device)
@kgermanov In this situation I assume you would have a full sector-by-sector copy of the drive, including the partition table. So you should be able to use the -P
(--partscan
) option to losetup
in order to get a partition device? It seems to me like a much easier option.
@unsound Yes, we used this. But, as I described, we faced with several problems, whose solved by this patch:
Usually NTFS volume located on device at some offset. We can use losetup/mdconfig for map device from offset to another device and mount this device. But there are some problems:
If we pass argument for device offset we can avoid such problems.