Presently, and ever since this mishap, my desire has been to recover and restore the windoze and Linux Mint partitions. And from what I've gathered about Testdisk and Photo Rec, that goal is within my reach – I just have to learn how to effectively use Testdisk. At this point, I haven't gone to Photo Rec.
Just for the record, Testdisk isn't installed on Isadora or Lucid live CDs, but I found it on Systemrescue CD and on PCLinuxOS KDE 2010 live CD. I found the latter easier to use.
Finally, I found out how to run Testdisk (somewhat), but it kept saying that the number of heads was incorrect. Using the geometry menu, I tried 255, 240, 128, 64,32, and 16. None worked. 255, 128, 64,32, and 16 all suggested 240. 240 suggested 255. Frustrated over having spent hours and hours searching the forums and googling only to end up at this impasse. I highlighted the w(rite) option for what Testdisk did find with the incorrect geometry.
As a result of that incorrect (w)rite and still using the PCLinuxOS KDE live CD, I opened Gparted and, viola!; Gparted no longer showed 250 GiBs of unallocated space. Now, it showed the windoze partition, the windoze data partition and 61 GiBs of unallocated space. I was disappointed over seeing nothing Linux other than some 7 GiB piece of some old partitiion, but was encouraged by some progress.
Next, I went to the disk utility and, now, it allowed me to format the 61 GiBs of unallocated space as ext4, and one extended partition (sda4 – 50.08 GiB) with two logical partitions (sda5 and 6 – 23.37 GiB and 22.76 GiB, respectively) and a swap (sda7 – 3.95 GiB). On sda6, I've installed Isadora so that I can have a base to work from while still learning about how to use Testdisk (Firefox Sync and Siphon Sync come in handy here).
Do I have to recover the windoze and Linux partitions simultaneously, or can I do windoze and then go back and do Linux? Could the CHS numbers for windoze be different than they might be for Linux?
From what I gather thus far, Testdisk and/or Photo Rec are fully capable of recovering and restoring my lost partitions even though I've done some reformatting. Which brings up a question: where is the “paranoid” selection on the Options Menu of Testdisk 6.11-1?
TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
*
Expert mode : No
Cylinder boundary : Yes
Allow partial last cylinder : Yes
Dump : No
[ Ok ]
************************** Done with changing options
According to a post in
* Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips How to: Recover data with testdisk!
The testdisk log tells me what the correct CHS is; but it's kind of complicated for me. Could one of my colleagues take at look and advice me? It's ten (OOo) pages long, so I'll just post a couple of pages here – hopefully they contain the needed info. As always, any and all help is deeply appreciated. Thank you.
Wed Jul 14 04:18:01 2010
Command line: TestDisk
TestDisk 6.11, Data Recovery Utility, April 2009
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
OS: Linux, kernel 2.6.32-21-generic (#32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010)
Compiler: GCC 4.4 - Jun 23 2009 17:11:34
ext2fs lib: 1.41.11, ntfs lib: 10:0:0, reiserfs lib: none, ewf lib: none
/dev/sda: LBA, LBA48, DCO support
/dev/sda: size 488397168 sectors
/dev/sda: user_max 488397168 sectors
/dev/sda: dco 488397168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - CHS 1 1 1, sector size=512
Hard disk list
Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63, sector size=512 - ATA ST3250820AS
Partition table type (auto): Intel
/dev/sda: Device Configuration Overlay (DCO) present.
Disk /dev/sda - 250 GB / 232 GiB - ATA ST3250820AS
Partition table type: Intel
Analyse Disk /dev/sda - 250 GB / 232 GiB - CHS 30401 255 63
Geometry from i386 MBR: head=255 sector=63
NTFS at 0/1/1
heads/cylinder 240 (NTFS) != 255 (HD)
NTFS at 6527/15/1
heads/cylinder 240 (NTFS) != 255 (HD)
get_geometry_from_list_part_aux head=255 nbr=11
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=3
get_geometry_from_list_part_aux head=255 nbr=11
Current partition structure:
Warning: Incorrect number of heads/cylinder 240 (NTFS) != 255 (HD)
1 * HPFS - NTFS 0 1 1 6527 14 63 104857137 [Windoze]
Warning: Incorrect number of heads/cylinder 240 (NTFS) != 255 (HD)
2 P HPFS - NTFS 6527 15 1 22901 65 29 263051489 [Data]
3 P Linux 22901 68 16 23862 220 38 15448064
4 E extended 23863 0 62 30400 254 63 105032909
5 L Linux 23863 1 1 26913 254 63 49014252
X extended 27430 0 1 30400 254 63 47729115
6 L Linux 27430 1 1 30400 254 63 47729052
X extended 26914 0 1 27429 254 63 8289540
7 L Linux Swap 26914 1 1 27429 254 63 8289477
Computes LBA from CHS for Disk /dev/sda - 250 GB / 232 GiB - CHS 30402 255 63
Allow partial last cylinder : Yes
search_vista_part: 1
search_part()
Disk /dev/sda - 250 GB / 232 GiB - CHS 30402 255 63
NTFS at 0/1/1
heads/cylinder 240 (NTFS) != 255 (HD)
filesystem size 104857137
sectors_per_cluster 8
mft_lcn 4369047
mftmirr_lcn 6841572
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 0 1 1 6527 14 63 104857137 [Windoze]
NTFS, 53 GB / 49 GiB
NTFS at 6527/15/1
heads/cylinder 240 (NTFS) != 255 (HD)
filesystem size 263051489
sectors_per_cluster 8
mft_lcn 786432
mftmirr_lcn 23970869
clusters_per_mft_record -10
clusters_per_index_record 1
HPFS - NTFS 6527 15 1 22901 65 29 263051489 [Data]
NTFS, 134 GB / 125 GiB
recover_EXT2: s_block_group_nr=0/58, s_mnt_count=8/23, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 1931008
recover_EXT2: part_size 15448064
Linux 22901 68 16 23862 220 38 15448064
EXT4 Large file Sparse superblock, 7909 MB / 7543 MiB
recover_EXT2: s_block_group_nr=0/186, s_mnt_count=2/33, s_blocks_per_group=32768, s_inodes_per_group=8192
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 6126781
recover_EXT2: part_size 49014248
Linux 23863 1 1 26913 254 59 49014248
EXT4 Large file Sparse superblock, 25 GB / 23 GiB
Linux Swap 26914 1 1 27429 254 42 8289456
SWAP2 version 1, 4244 MB / 4047 MiB
recover_EXT2: s_block_group_nr=0/182, s_mnt_count=9/23, s_blocks_per_group=32768, s_inodes_per_group=8160
recover_EXT2: s_blocksize=4096
recover_EXT2: s_blocks_count 5966131
recover_EXT2: part_size 47729048
Linux 27430 1 1 30400 254 59 47729048
EXT4 Large file Sparse superblock Recover, 24 GB / 22 GiB
get_geometry_from_list_part_aux head=255 nbr=7
get_geometry_from_list_part_aux head=8 nbr=3
get_geometry_from_list_part_aux head=16 nbr=3
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=64 nbr=1
get_geometry_from_list_part_aux head=128 nbr=1
get_geometry_from_list_part_aux head=240 nbr=3
get_geometry_from_list_part_aux head=255 nbr=7
Results
* HPFS - NTFS 0 1 1 6527 14 63 104857137 [Windoze]
NTFS, 53 GB / 49 GiB
P HPFS - NTFS 6527 15 1 22901 65 29 263051489 [Data]
NTFS, 134 GB / 125 GiB
P Linux 22901 68 16 23862 220 38 15448064
EXT4 Large file Sparse superblock, 7909 MB / 7543 MiB
L Linux 23863 1 1 26913 254 59 49014248