妻から、デジカメのSDカードを誤ってフォーマットしてしまったと相談。
MS純正のツールを利用して復元した備忘録。
SDカードを復元したい場合、下記のようにコマンドを記載する。
winfr K: J:\temp /extensive
| 復元したいSDカード | K: |
| 復元ファイルの保存先 | J:\temp |
SDカードはFAT32なので /extensive 。HDDなど NTFSの場合は /regular
バージョン画像ファイルなどデータさえ戻ればよいときには良い。
ファイル名もないと困るときには別のツールを。
下記にヘルプ画面を転記。*Windos 10 バージョンにより複数ある。詳細は http://aka.ms/winfrhelp
C:\WINDOWS\system32> winfr /?
Windows File Recovery
Copyright (c) Microsoft Corporation. All rights reserved
Version: 0.1.20151.0
----------------------------------------------------------
USAGE: winfr source-drive: destination-folder [/mode] [/switches]
Modes
/regular - Regular (Standard recovery option for non-corrupted NTFS drives)
/extensive - Extensive (Thorough recovery option suitable for all file systems)
Switches
/n <filter> - Filter search (wildcards allowed, trailing \ for folder)
/? - Help text
/! - Display advanced features
Example usage - winfr C: D:\RecoveryDestination /regular /n Users\<username>\Downloads\
winfr C: D:\RecoveryDestination /regular /n "Users\<username>\My pictures\"
winfr C: D:\RecoveryDestination /extensive /n *.pdf /n *.jpg
Visit https://aka.ms/winfrhelp for user guide
For support, please email winfr@microsoft.com
C:\WINDOWS\system32> winfr /!
Windows File Recovery
Copyright (c) Microsoft Corporation. All rights reserved
Version: 0.1.20151.0
----------------------------------------------------------
USAGE: winfr source-drive: destination-folder [/mode] [/switches]
USAGE: winfr source-drive: destination-folder [/mode] [/switches]
Advanced modes and filters
/ntfs - NTFS mode (Fast recovery option for healthy NTFS drives using the master file table)
/segment - Segment mode (Recovery option for NTFS drives using file record segments)
/signature - Signature mode (Recovery option for all file system types using file headers)
/n <filter> - Filter search (NTFS/Segment mode only, wildcards allowed, trailing \ for folder)
/y:<type(s)> - Recover specific extension groups (Signature mode only, comma separated)
/# - Displays signature mode extension groups and file types
Example usage - winfr C: D:\RecoveryDestination /ntfs /n Users\<username>\Downloads\
winfr C: D:\RecoveryDestination /segment /n *.pdf /n *.jpg
winfr C: D:\RecoveryDestination /signature /y:PDF,JPEG
Advanced switches
/p:<folder> - Specify recovery log destination (default: destination folder)
/a - Accepts all user prompts
/u - Recover non-deleted files (NTFS/Segment mode only)
/k - Recover system files (NTFS/Segment mode only)
/o:<a|n|b> - Overwrite (a)lways, (n)ever or keep (b)oth always (NTFS/Segment mode only)
/g - Recover files without primary data stream (default: false, NTFS/Segment mode only)
/e - Disable extension exclusion list (NTFS/Segment mode only)
/e:<extension> - Disable specific extension(s) (default extension list no longer applies) (NTFS/Segment mode only)
/s:<sectors> - Number of sectors in volume (Segment/Signature mode only)
/b:<bytes> - Number of bytes in cluster (Segment/Signature mode only)
/f:<sector> - First sector to scan (Segment/Signature mode only)






