nneonneo / ntfsrecover

NTFS data-recovery program written in Python
118 stars 38 forks source link

So what do I type for my partition? #1

Closed IndustrialOne closed 6 years ago

IndustrialOne commented 6 years ago

python ntfsrecover.py /dev/diskX --save-mft mft

How do I know which disk it is? I'm hoping the disk doesn't mean physical disk because it's like the 10th partition on the second disk.

nneonneo commented 6 years ago

It should work with a partition. I believe fdisk should be able to tell you which partition it is.

On Thu, Jun 28, 2018 at 11:38 AM IndustrialOne notifications@github.com wrote:

python ntfsrecover.py /dev/diskX --save-mft mft

How do I know which disk it is? I'm hoping the disk doesn't mean physical disk because it's like the 10th partition on the second disk.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nneonneo/ntfsrecover/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEmudJZeN6Fnnym6EA4IBDIlMSdVWoUks5uBPiLgaJpZM4U7n0z .

IndustrialOne commented 6 years ago

fdisk is not working on Windows 7 here.

nneonneo commented 6 years ago

Thank you for your bug report. I just tested it on Windows and fixed a few bugs (https://github.com/nneonneo/ntfsrecover/commit/a7833a6b12f0b6336b35279e29a36efc92582a23), so now it should work for recovering data on Windows. Use \\.\HarddiskNPartitionM as the disk, where N is 0-indexed and M is 1-indexed.

To get the indices, you can use diskpart. Use list disk to get a list of disks, select disk N to select a disk, and list partition to get a list of partitions on that dist.

nneonneo commented 6 years ago

Fixed in a7833a6b12f0b6336b35279e29a36efc92582a23.