Page 1 of 1

Choose partition in scripting mode

Posted: 29 Jul 2020, 00:02
by afuna
I'm trying to script testdisk to see which partitions contain an "accessible" filesystem.
Let's say I want to execute "list" on partition 3, I try

testdisk /cmd image.dsk analyze,3,list

but get an syntax error. The documentation says that the "analyze" menu has a "number" command, but I'm not sure what that means/how to use it.

Thanks.

Re: Choose partition in scripting mode

Posted: 29 Jul 2020, 17:49
by cgrenier
Try something like

Code: Select all

testdisk /log /cmd image.dsk advanced,3,list