Seems I have received a late Christmas present in the form of a nudge to fix up my hard drive problem. I have just installed another instance of PCLOS and decided to do a step by step proper record as I solved a mystery to me when installing the old-polack
I was a bit careless and managed to reformat my 'workhorse' partition. I did not expect the step to take off on me but it did. I work in small single partition installs, ie multi Linux systems on a 1GB drive, only one
swap file plus XP and one NTFS data partition.
[root@localhost gert]# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8a208a20
Device Boot Start End Blocks Id System
/dev/sda1 * 63 71682029 35840983+ 7 HPFS/NTFS
/dev/sda2 71682030 130287149 29302560 83 Linux
/dev/sda3 130287150 188892269 29302560 83 Linux <--------------------- this 30 GB partition now 'empty'
/dev/sda4 188892270 1495217744 653162737+ 5 Extended
/dev/sda5 188892333 1212891434 511999551 7 HPFS/NTFS
/dev/sda6 1212891498 1221068519 4088511 82 Linux swap / Solaris
/dev/sda7 1221068583 1245631904 12281661 83 Linux
/dev/sda8 1245631968 1294453439 24410736 83 Linux
/dev/sda9 1294453503 1333523519 19535008+ 83 Linux
/dev/sda10 1333523583 1382345054 24410736 83 Linux
/dev/sda11 1382345118 1421399069 19526976 83 Linux
/dev/sda12 1421401118 1463344157 20971520 83 Linux
/dev/sda13 1463346206 1495217744 15935769+ 83 Linux
Since I have not done anything else than dd the content to my USB hard drive as precaution, this should be a simple recovery exercise, or so I thought.
[root@localhost gert]# dd if=/dev/sda3 of=/dev/sdb7 bs=4096 conv=notrunc,noerror
7325640+0 records in
7325640+0 records out
30005821440 bytes (30 GB) copied, 946.55 s, 31.7 MB/s
Question: Using Testdisk which already seems installed, this should be easy to recover
Can I do the recovery on the copy on the USB drive?
I am using as starting point some pointers from one of my own serious 'accidents' not that long ago.http://www.pclinuxos.com/forum/index.php/topic,75207.0.html
Where I have the general idea trying to recover via the use of superblocks, more later as I am trying to get my head around at what time that is appropriate way to go.Edit:
I like to prepare my partitions manually before installing Linux from LiveCD. I don't know quite why I find the automated partition management confusing but it has caused me harm a number of times, even having read old-polack's preference to turn off formatting.
Suddenly it dawned on me that the tick needed to be removed when asking "format selected partition" when this gave success I decided to carefully write down the instructions. In order to "get it right" I went through every install step not paying attention to what partition was selected.
I thought it was right here that I hit the "next" button and it started formatting, realising something was wrong I canceled perhaps after 3 seconds.
The partition does not automount. Only when called from boot stanza or mounted by Dolphin. I started looking for place to make a copy and started up this thread. Initially thinking it would only be a nusence but I would recover.