cmd:fdisk 

Usage 

fdisk -l /dev/hda

Help 

# fdisk -l /dev/hda     # by cylinder
Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders
Units = cylinders of 16065 * 512 bytes
Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1        64    514048+  83  Linux
/dev/hda2            65       319   2048287+  83  Linux
/dev/hda3   *       320      1057   5927985    c  Win95 FAT32 (LBA)
/dev/hda4          1058      2491  11518605    f  Win95 Ext'd (LBA)
/dev/hda5   *      2085      2491   3269196    b  Win95 FAT32
/dev/hda6          1058      2084   8249314+  83  Linux
# fdisk -lu /dev/hda     # by sector
Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders
Units = sectors of 1 * 512 bytes
Device Boot    Start       End    Blocks   Id  System
/dev/hda1            63   1028159    514048+  83  Linux
/dev/hda2       1028160   5124734   2048287+  83  Linux
/dev/hda3   *   5124735  16980704   5927985    c  Win95 FAT32 (LBA)
/dev/hda4      16980705  40017914  11518605    f  Win95 Ext'd (LBA)
/dev/hda5   *  33479523  40017914   3269196    b  Win95 FAT32
/dev/hda6      16980831  33479459   8249314+  83  Linux

Whenever a partition table is printed out, a consistency check is performed on the partition table entries. This check verifies that the physical and logical start and end points are identical, and that the partition starts and ends on a cylinder boundary (except for the first partition).

Help 

> fdisk -l
>
>Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders
>Units = cylinders of 16065 * 512 bytes
>
>   Device Boot    Start       End    Blocks   Id  System
>/dev/hda1             1        64    514048+  83  Linux
>/dev/hda2            65       319   2048287+  83  Linux
>/dev/hda3   *       320      1057   5927985    c  Win95 FAT32 (LBA)
>/dev/hda4          1058      2491  11518605    5  Extended
>/dev/hda5          1058      2030   7815591   83  Linux
>/dev/hda6          2031      2491   3702951    c  Win95 FAT32 (LBA)

FYI: Data on this disk will be damaged. If data are important, Linux partitioning tools should not be used.

An extended partition ending 1 based cylinder 1024 or later *must* by type 0F or 85 if DOS or Windows is present. The type of hda6 should be 0B.

Svend Olaf

Help 

> Isn't 0B a Fat 16 partition ?  This person wanted win95 fat32 , which is
>  >32MB , the code for which is, I believe "c"

A FAT16 partition > 32 MB is type 06, or 0E for a primary FAT16 partition ending 1 based cylinder 1025 or later. Type 0C is used for primary FAT32 partitions ending 1 based cylinder 1025 or later. Logical FAT32 partitions always are type 0B.

If cylinders are numbered from 1, extended partitions ending cylinder 1025 (not 1024) or later should be type 0F or 85.

Svend Olaf

Help 

>/dev/hda4          1058      2491  11518605    5  Extended
>/dev/hda5          1058      2030   7815591   83  Linux
>/dev/hda6          2031      2491   3702951    c  Win95 FAT32 (LBA)

You can just change the type of hda4 from 05 to 0F (F), and the type of hda6 from 0C to 0B (B) using the Linux fdisk t command. This however should be done before hda6 is formatted.

Svend Olaf