Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I see similar questions asked and answered, but they did not answer my question satisfactorily.

I start by saying I deleted my NTFS partition by clicking the + and - circles in the partition display during UBUNTU 13.04 "other" partitioning in its install process. I thought they would show information or hide it about the partition, and I clicked them out of curiosity. I had no clue they would destroy the 1.3T partition. But they did. I have a partial back up, but now I cannot access all my new stuff from the past year and a half.

Regardless of what I must do to recover the partition (ugh), I have this advice for the UBUNTU partitioning developers: DO NOT LEAVE THAT STUPID - and + in the circles without dire warnings about the impact of clicking on them. That's like leaving a loaded gun around so a 4-year-old can grab and shoot it. It's irresponsible. And yes, even after 40 years in the computer industry, I'm like 4-year-old with the scary UBUNTU "other" partition install mechanism. I didn't have 40 years experience with the developer's thought process.

In fact, if I had programmed that feature, I'd have made mouse-over show a warning of what would happen (it is not otherwise obvious), and then I would have shown a click dialog box TWICE that repeats the warning and asks "DO YOU FEEL ABSOLUTELY CERTAIN YOU WANT TO DO THIS?"

While I feel annoyed at myself for messing up my NTFS partition, I feel more annoyed at the amateurish user interface for the "other" partition install mechanism.

I have another recommendation. The install mechanism should store the partition boot record and sector allocation information in local memory or to a CD/DVD or USB stick (let the user choose) and warn the user EXACTLY what will happen when the user proceeds with the various types of installation, and caution the user that backing that stuff up makes a lot of sense in case the user pulls some 4-year-old stunt like deleting the partition by accident by clicking the un-explained + or -.

UBUNTU install should try to back up all relevant disk organization information before messing with the disk, and that includes MBR boot track, the entire small boot partition that win 8 creates, and each partition's boot track and organization info. Then the installer could provide a recovery mechanism to the OTHER partitions to pristine pre-install condition (other than the one to which the user installed UBUNTU).

I believe most users want to create a dual boot installation, or to put UBUNTU on a separate drive, and they DON'T want the install process, or their own errors during that process, to HOSE their functional NTFS or other partition.

For my third recommendation, I take up the arcane recovery process of TestDisk. I find it so terse that I cannot figure out how to use it and I absolutely do not trust it to fix my broken partition. I fear it will make the partition worse than it is. I don't find any of the online explanations or youtube presentations on it adequate to give me confidence that I can use it to restore my partition. Like any 4-year-old, I need some confidence-building hand-holding. And just maybe, the condition of my deleted partition is such that TestDisk cannot recover it.

SO, I ask help now with the recovery process.

I now have UBUNTU running on a 240G SSD alongside Win 8, each on separate partitions, just fine, no problems. I drop the 1500 GB drive model ST31500341AS with the deleted partition into an external box containing a slot for a sata drive. I connected it via e-sata cable to my Lenovo ideacenter I7 computer and it works perfectly. UBUNTU mounts it properly and I can examine the drive with the file manager, and run TestDisk and GPartEd and its GPart on it. I have not written anything to it since I pressed the + and - circles during UBUNTU install.

I ran both GParted's GPart and TestDisk under UBUNTU 13.04 on my Lenovo computer. I selected the troubled drive sdc. GPartEd runs GPart when I select Device from the main menu, and then Attempt Data Rescue. After some hours, it reports these results

Partition File System Label Size Used Unused Flags

/dev/sdc1 ntfs SYSTEM_RESERVED 100.00 MiB 33.59 MiB 66.41 MiB boot

/dev/sdc2 ! unknown 1.34 TiB -- --

/dev/sdc3 ntfs LENOVO_PART 25.07 GiB 11.34 GiB 13.64 GiB diag

GPartEd did not give any information as to what to do about the results. But it shows the 1.34 Terabyte partition I deleted as type unknown. That partition was type ntfs and it was about 30G shy of full.

TestDisk gave the below results. Note that the analyze, which ran for hours, showed sdc partition 2 (the deleted partition) twice. Something I read from TestDisk indicated that shows the partition has wrong information, but it did not explain the reasoning behind showing it twice instead of a message saying "this partition is messed up and you need to write some new values to the MBR or Partition boot record or both. TestDisk suggests you press W and write these values, blah blah. Don't worry, you can undo it because TestDisk has already backed up the MBR and partition boot record. You can restore those by typing R" or something to that effect. I listed the files on the deleted partition. It showed no directories, and I did not recognize the .exe and .cri files.

Sat Jul 6 10:31:56 2013

Command line: TestDisk /log

TestDisk 6.13, Data Recovery Utility, November 2011

Christophe GRENIER

http://www.cgsecurity.org

OS: Linux, kernel 3.8.0-26-generic (#38-Ubuntu SMP Mon Jun 17 21:43:33 UTC 2013) x86_64

Compiler: GCC 4.7

Compilation date: 2013-02-16T06:51:40

ext2fs lib: 1.42.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none

/dev/sda: LBA, HPA, LBA48 support

/dev/sda: size 468862128 sectors

/dev/sda: user_max 468862128 sectors

/dev/sda: native_max 468862128 sectors

/dev/sdb: LBA, HPA, LBA48, DCO support

/dev/sdb: size 5860533168 sectors

/dev/sdb: user_max 5860533168 sectors

/dev/sdb: native_max 5860533168 sectors

/dev/sdc: LBA, HPA, LBA48, DCO support

/dev/sdc: size 2930277168 sectors

/dev/sdc: user_max 2930277168 sectors

/dev/sdc: native_max 2930277168 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 - 240 GB / 223 GiB - CHS 29185 255 63, sector size=512 - OCZ-VERTEX3, S/N:OCZ-J6903OINFDSXWRSX, FW:2.22

Disk /dev/sdb - 3000 GB / 2794 GiB - CHS 364801 255 63, sector size=512 - WDC WD30EFRX-68AX9N0, S/N:WD-WCC1T0798109, FW:80.00A80

Disk /dev/sdc - 1500 GB / 1397 GiB - CHS 182401 255 63, sector size=512 - ST31500341AS, S/N:9VS54HDS, FW:CC6H

Disk /dev/sdh - 32 GB / 29 GiB - CHS 30533 64 32, sector size=512 - SanDisk Extreme, FW:0001

Partition table type (auto): Intel

Disk /dev/sdc - 1500 GB / 1397 GiB - ST31500341AS

Partition table type: Intel

Analyse Disk /dev/sdc - 1500 GB / 1397 GiB - CHS 182401 255 63

Geometry from i386 MBR: head=255 sector=63

check_part_i386 failed for partition type 07

Current partition structure:

1 * HPFS - NTFS 0 32 33 12 223 19 204800 [SYSTEM RESERVED]

Invalid NTFS or EXFAT boot

2 P HPFS - NTFS 12 223 20 179128 41 49 2877487104

2 P HPFS - NTFS 12 223 20 179128 41 49 2877487104

3 P Compaq Diagnostics 179128 41 50 182401 80 63 52583216

Computes LBA from CHS for Disk /dev/sdc - 1500 GB / 1397 GiB - CHS 182402 255 63

Allow partial last cylinder : Yes

search_vista_part: 1

search_part()

Disk /dev/sdc - 1500 GB / 1397 GiB - CHS 182402 255 63

 HPFS - NTFS              0  32 33    12 223 19     204800 [SYSTEM RESERVED]

 NTFS, 104 MB / 100 MiB

heads/cylinder 16 (NTFS) != 255 (HD)

sect/track 2 (NTFS) != 63 (HD)

 HPFS - NTFS           8965 143 11  8965 241 10       6174 [Boot]

 NTFS, 3161 KB / 3087 KiB

 HPFS - NTFS          179128  41 50 182391 212 29   52430848 [LENOVO_PART]

 NTFS, 26 GB / 25 GiB

ntfs_device_testdisk_io_ioctl() unimplemented

Directory /

   5 dr-xr-xr-x     0      0         0 11-Sep-2011 11:04 .

   5 dr-xr-xr-x     0      0         0 11-Sep-2011 11:04 ..

  35 dr-xr-xr-x     0      0         0 10-Jan-2012 11:41 Boot

  85 -r--r--r--     0      0    383786 20-Nov-2010 22:23 bootmgr

  96 dr-xr-xr-x     0      0         0 25-Feb-2013 02:06 System Volume Information

ntfs_device_testdisk_io_ioctl() unimplemented

Directory /

   5 dr-xr-xr-x     0      0         0 15-Feb-2005 16:33 .

   5 dr-xr-xr-x     0      0         0 15-Feb-2005 16:33 ..

  27 dr-xr-xr-x     0      0         0 15-Feb-2005 16:33 System Volume Information

ntfs_device_testdisk_io_ioctl() unimplemented

Directory /

   5 dr-xr-xr-x     0      0         0 14-Jun-2012 02:51 .

   5 dr-xr-xr-x     0      0         0 14-Jun-2012 02:51 ..

1786 -r--r--r--     0      0   5279093 11-Oct-2010 22:01 11002051.exe

1788 -r--r--r--     0      0 163117934 14-Jul-2011 12:00 11002360.exe

1832 -r--r--r--     0      0  32978773 22-Feb-2011 11:00 12003953.exe

1852 dr-xr-xr-x     0      0         0 11-Sep-2011 11:05 $RECYCLE.BIN

1805 -r--r--r--     0      0       560 23-Feb-2010 22:42 11001727.cri

1806 -r--r--r--     0      0    484032 23-Feb-2010 22:42 11001727.exe

1803 -r--r--r--     0      0       560 25-Apr-2010 22:26 11001958.cri

1804 -r--r--r--     0      0    447072 25-Apr-2010 22:26 11001958.exe

1791 -r--r--r--     0      0       564  5-Jul-2010 20:59 11002047.cri

1792 -r--r--r--     0      0  19080085  5-Jul-2010 20:59 11002047.exe

1781 -r--r--r--     0      0       562  7-Oct-2010 22:36 11002048.cri

1782 -r--r--r--     0      0   2705787  7-Oct-2010 22:36 11002048.exe

1789 -r--r--r--     0      0       566 12-Oct-2010 21:55 11002050.cri

1790 -r--r--r--     0      0 123418936 12-Oct-2010 21:55 11002050.exe

1785 -r--r--r--     0      0       562 11-Oct-2010 22:01 11002051.cri

1783 -r--r--r--     0      0       564 12-Oct-2010 00:10 11002059.cri

1784 -r--r--r--     0      0  26752888 12-Oct-2010 00:10 11002059.exe

1793 -r--r--r--     0      0       566 13-Jul-2010 21:57 11002060.cri

1794 -r--r--r--     0      0 101597609 13-Jul-2010 21:56 11002060.exe

1797 -r--r--r--     0      0       562 21-Oct-2010 06:00 11002079.cri

1798 -r--r--r--     0      0   8734667 21-Oct-2010 06:00 11002079.exe

1799 -r--r--r--     0      0       564 17-Nov-2010 03:00 11002128.cri

1800 -r--r--r--     0      0  16893749 17-Nov-2010 03:00 11002128.exe

1801 -r--r--r--     0      0       560 17-Feb-2011 11:00 11002215.cri

1802 -r--r--r--     0      0    876569 17-Feb-2011 11:00 11002215.exe

1807 -r--r--r--     0      0       564 13-Jun-2011 12:00 11002237.cri

1808 -r--r--r--     0      0  19676165 13-Jun-2011 12:00 11002237.exe

1795 -r--r--r--     0      0       405  1-Apr-2011 12:00 11002239.cri

1796 -r--r--r--     0      0   1738263  1-Apr-2011 12:00 11002239.exe

1811 -r--r--r--     0      0       562 23-Jun-2011 12:00 11002342.cri

1812 -r--r--r--     0      0   1302890 23-Jun-2011 12:00 11002342.exe

1787 -r--r--r--     0      0       409 14-Jul-2011 12:00 11002360.cri

1809 -r--r--r--     0      0       566 10-Aug-2011 12:00 11002403.cri

1810 -r--r--r--     0      0 215970933 10-Aug-2011 12:00 11002403.exe

1829 -r--r--r--     0      0       405 23-Apr-2009 04:27 12002442.cri

1830 -r--r--r--     0      0   1992134 23-Apr-2009 04:27 12002442.exe

1813 -r--r--r--     0      0       403 27-Aug-2009 07:47 12002685.cri

1814 -r--r--r--     0      0    110222 27-Aug-2009 07:47 12002685.exe

1835 -r--r--r--     0      0       568 27-Apr-2010 04:12 12003295.cri

1836 -r--r--r--     0      0 1696256398 27-Apr-2010 04:11 12003295.exe

1839 -r--r--r--     0      0       409 25-Feb-2010 03:14 12003338.cri

1840 -r--r--r--     0      0 286874913 25-Feb-2010 03:14 12003338.exe

1827 -r--r--r--     0      0       409  2-Mar-2010 02:44 12003342.cri

1828 -r--r--r--     0      0 423934504  2-Mar-2010 02:44 12003342.exe

1837 -r--r--r--     0      0       566 30-Jun-2010 22:20 12003617.cri

1838 -r--r--r--     0      0 120296590 30-Jun-2010 22:20 12003617.exe

1821 -r--r--r--     0      0       562 17-Oct-2010 21:53 12003621.cri

1822 -r--r--r--     0      0   7134824 17-Oct-2010 21:53 12003621.exe

1825 -r--r--r--     0      0       562 15-Sep-2010 03:56 12003673.cri

1826 -r--r--r--     0      0   6652100 15-Sep-2010 03:56 12003673.exe

1823 -r--r--r--     0      0       562 10-Oct-2010 22:57 12003889.cri

1824 -r--r--r--     0      0   6485463 10-Oct-2010 22:57 12003889.exe

1819 -r--r--r--     0      0       562 21-Sep-2010 01:10 12003898.cri

1820 -r--r--r--     0      0   5602795 21-Sep-2010 01:10 12003898.exe

1841 -r--r--r--     0      0       566 29-Sep-2010 04:01 12003909.cri

1842 -r--r--r--     0      0 127050627 29-Sep-2010 04:01 12003909.exe

1831 -r--r--r--     0      0       564 22-Feb-2011 11:00 12003953.cri

1815 -r--r--r--     0      0       564  7-Dec-2010 00:00 12004035.cri

1816 -r--r--r--     0      0  58282817  7-Dec-2010 00:00 12004035.exe

1817 -r--r--r--     0      0       562  8-Nov-2010 22:00 12004036.cri

1818 -r--r--r--     0      0   5776643  8-Nov-2010 22:00 12004036.exe

1833 -r--r--r--     0      0       568 28-Feb-2011 11:00 12004276.cri

1834 -r--r--r--     0      0 1069117821 28-Feb-2011 11:00 12004276.exe

1843 -r--r--r--     0      0       564  6-Jun-2011 12:00 12004497.cri

1844 -r--r--r--     0      0  81139937  6-Jun-2011 12:00 12004497.exe

1775 -r--r--r--     0      0       560 16-Jun-2009 05:41 14000115.cri

1776 -r--r--r--     0      0    175889 16-Jun-2009 05:41 14000115.exe

1779 -r--r--r--     0      0       562  3-Aug-2009 23:42 14000147.cri

1780 -r--r--r--     0      0   1010500  3-Aug-2009 23:42 14000147.exe

1777 -r--r--r--     0      0       560 24-Nov-2009 22:51 14000150.cri

1778 -r--r--r--     0      0    935973 24-Nov-2009 22:51 14000150.exe

1773 -r--r--r--     0      0       564  9-Jun-2010 21:46 99980062.cri

1774 -r--r--r--     0      0  19144464  9-Jun-2010 21:46 99980062.exe

  38 dr-xr-xr-x     0      0         0 13-Sep-2010 05:57 boot

  47 -r--r--r--     0      0    383562 13-Jul-2009 06:39 bootmgr

  40 dr-xr-xr-x     0      0         0 23-Aug-2010 05:59 EFI

  35 dr-xr-xr-x     0      0         0 11-Sep-2011 12:03 factools

1855 -r--r--r--     0      0      8296 14-Jun-2012 02:51 LRSBootTmp.log

1845 -r--r--r--     0      0     13824  8-Sep-2011 02:32 mfgproc.ini

1858 dr-xr-xr-x     0      0         0 11-Sep-2011 12:11 OKRBackup

  44 dr-xr-xr-x     0      0         0 11-Sep-2011 11:35 OneKey

1856 -r--r--r--     0      0 1073741824 14-Jun-2012 02:51 pagefile.sys

1849 -r--r--r--     0      0        23 11-Sep-2011 12:03 psn.txt

1850 dr-xr-xr-x     0      0         0 11-Sep-2011 11:04 System Volume Information

interface_write()

1 * HPFS - NTFS 0 32 33 12 223 19 204800 [SYSTEM RESERVED]

2 P HPFS - NTFS 8965 143 11 8965 241 10 6174 [Boot]

3 P HPFS - NTFS 179128 41 50 182391 212 29 52430848 [LENOVO_PART]

NTFS signature is missing.

NTFS signature is missing.

NTFS signature is missing.

NTFS signature is missing.

NTFS signature is missing.

NTFS signature is missing.

simulate write!

No extended partition

Interface Advanced

Geometry from i386 MBR: head=255 sector=63

check_part_i386 failed for partition type 07

1 * HPFS - NTFS 0 32 33 12 223 19 204800 [SYSTEM RESERVED]

 NTFS, 104 MB / 100 MiB

2 P HPFS - NTFS 12 223 20 179128 41 49 2877487104

3 P Compaq Diagnostics 179128 41 50 182401 80 63 52583216

Not an exFAT boot sector.

Okay, Gurus, what should I do to recover the partition and its data?

share|improve this question
1  
I am sorry you had data loss. With 40 years experience in the computer industry I am sure you know the value of backups. If you do not have a back up of the data, at this point, I highly suggest you seek professional assistance. If you want to "do it yourself", depending on the amount do data on such a huge partition, be prepared to spend hours of your time. linuxlinks.com/article/20100226122928107/DataRecovery.html –  bodhi.zazen Jul 12 '13 at 21:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.