Page 1 of 1

Light format from bash and i have old scheme data

Posted: 23 Oct 2017, 08:56
by nardev
I did this:

mkdosfs -F 32 -I /dev/sdb

The command was quick and i believe that nodata was erased

and now i want to restore old partition schema.. it was NTFS like this:

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 391022099 391020052 186.5G 7 HPFS/NTFS/exFAT
/dev/sdb2 391022100 1953520064 1562497965 745.1G 7 HPFS/NTFS/exFAT


How can i do that.. please give me some tips...

Re: Light format from bash and i have old scheme data

Posted: 24 Oct 2017, 06:42
by cgrenier
If you haven't restarted your computer since the format, run "cat /proc/partitions" to get each partition size.

Run testdisk, Analyse, Quick Search and Deeper Search if necessary. Set the partitions to keep/Recover to P(rimary), *(bootable) or L(ogical).
On next screen, if you have all your partitions, choose Write and confirm. If asked, choose Backup and confirm.
Quit and restart your computer.

Re: Light format from bash and i have old scheme data

Posted: 24 Oct 2017, 09:05
by nardev
Thank you,

i did similar.. the good thing it was external drive...

I took another 1Tb HDD and i copied all d the files.. good thing, after deep search TestDisk found all my files and there was interface to copy it