I have a small problem, I accidentally formatted one of my drives in Windows.
PhotoRec finds the partition, but Testdisk doesn’t.
Help would be really appreciated.
EDIT: It finds the partition when partition table type is "None"
OK, I was able to fix it.
I went to superblock while in non-partitioned mode. and then it just told me to use a command, here’s it:
fsck.ext4 -p -b 163840 -B 4096 /dev/sde
in case anybody from the future reads this. 153840 being one of the superblock numbers, 4096 being the size and /dev/sde being the drive.
Actually tools like these you mentioned are using base commands and files . First command I suggest to use is fdisk
. It's powerful oldschool command .
$ fdisk /dev/sda
This will give shell . Try p
to show your partition . Also you can use files in proc directory
$ cat /proc/partitions
This will show all partition that Kernel will care of and command partprobe
can regenerate this file .
some cases you can not find your partition anymore. try using following procedure :
fdisk
.mkfs
.mount
.fdisk
command turns to gdisk
.
– Ali Ghasempour
Aug 13 '17 at 21:02
EDIT: It finds the partition when partition table type is "None"
THANK YOU SO MUCH this was my problem, i was picking Intel/PC because that's what it was – TheTechRobo the Nerd Nov 02 '20 at 20:30