[ltp] Copying Files

Bob Alexander linux-thinkpad@linux-thinkpad.org
Tue, 07 Dec 2004 18:10:35 +0100


Jeffrey L. Taylor wrote:

>Quoting SOTL <sotl155360@earthlink.net>:
>[snip]
>  
>
>>Does anyone have any idea of which tools may prove useful in recovering MS 
>>word and excel files from a fat32 partition.
>>
>>Lets explain the system a bit.
>>hda1  10GB         Primary NTFS  Windows XP System with NO Data
>>hda2                    Extended
>>    
>>
>
>This last line seems odd to me.  Usually the extended partition is
>hda4.  This may be why Linux gags on it.  IF you have a copy of the
>disk to play with, see if you can change it to hda4.
>
>HTH,
>  Jeffrey
>
>  
>
Sorry but IIRC the picture is slghtly different:

AFAIK an HD can contain max 4 partitions. The PRIMARY partitions are 
numbered /hdX1 to hdX4. The EXTENDED partition gets the /dev/hdX5 
identifier and the LOGICAL partitions into it get the /dev/hdX6 and onwards.

For example my setup is as follows:

240 heads, 63 sectors/track, 9914 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        4063    30716248+   7  HPFS/NTFS
/dev/hda3            4064        9914    44233560    f  W95 Ext'd (LBA)
/dev/hda5            4064        8822    35978008+   b  W95 FAT32
/dev/hda6            8823        8958     1028128+  82  Linux swap / Solaris
/dev/hda7   *        8959        9433     3590968+  83  Linux
/dev/hda8            9434        9914     3636328+  83  Linux

and reflects:

A Windows XP primary partition (C:) as /dev/hda1
A FAT32 "DATA" partition which I share amongst the two OSs /dev/hda3
The EXTENDED "container" partition /dev/hda6
My active Linux partition /dev/hda7
A "mirror" Linux for other uses on /dev/hda8
The Linux swap on /dev/hda6

HTH,
Bob

PS Quiz: Why is it that my "Data" partition is on /dev/hda3 ? :) (I know 
the answer ... 10 point for the first discovering it 8->).