recording partition information

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
Tracey2031
Posts: 6
Joined: 21 Feb 2013, 16:01

recording partition information

#1 Post by Tracey2031 »

Can TestDisk be used to record partition information as text in a text file for future reference (via batch file)?
Like as shown on the screen as current/valid partition information (not looking for damaged/lost partitions).

I tried starting with: testdisk_win /log /logname "C:\testdisk-6.13\dsk0pTable.txt" /dev/sda partition_i386,expert,dump
I get a error: Unable to open file or device partition_i386,expert,dump

If I change the batch (replace the commas with spaces) partition_i386 expert dump
I get:
Unable to open file or device partition_i386
Unable to open file or device expert
Unable to open file or device dump

Ideally, I would like to know how to do 2 things: via batch file (multiple disks independently)
#1 Record partition information to a path\file for each disk.
#2 Save/Back-up partition information to a path\file for each disk.

Any help will be appreciated.
Thanks, Tracey
I tried using scripted run as a reference, but still having difficulty
I have no problem manually running TestDisk, but I want to run via batch file

Locked