fdisk vs cfdisk: strange error

fdisk vs cfdisk: strange error

Post by Martin Baeh » Wed, 26 Apr 1995 04:00:00



hi,

after solving the problem with the broken fdisk in slackware 2.2 (by replacing
it wit an older one) an new problem has come up:

i have two scsi-disks:
the first is a seagate st11200n with
    64 heads, 32 sectors, 1005 cylinders
the second is a quantum-prodrive 1225s with
    64 heads, 32 sectors, 1169 cylinders

now here is what i see with fdisk:
# fdisk /dev/sda
Command (m for help): p

Disk /dev/sda: 64 heads, 32 sectors, 1005 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/sda1           1       1     870  890864    5  Extended
/dev/sda2         871     871     921   52224   83  Linux native
/dev/sda3         922     922     942   21504   83  Linux native
/dev/sda4         943     943    1005   64512   82  Linux swap
/dev/sda5           1       1     251  256992   83  Linux native
/dev/sda6         252     252     502  257008   83  Linux native
/dev/sda7         503     503     870  376816   83  Linux native

Command (m for help): v
124 unallocated sectors
---
# fdisk /dev/sdb
Command (m for help): p

Disk /dev/sdb: 64 heads, 32 sectors, 1169 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/sdb1           1       1    1023 1047536   83  Linux native
/dev/sdb2        1024    1024    1169  149504   83  Linux native
Partition 2 has different physical/logical endings:
     phys=(1023, 63, 32) logical=(1168, 63, 32)

Command (m for help): v
Partition 2 has different physical/logical endings:
     phys=(1023, 63, 32) logical=(1168, 63, 32)
Partition 2: previous sectors 2394111 disagrees with total 2097151
31 unallocated sectors

now when i run cfdisk this happens:
# cfdisk /dev/sda

                       FATAL ERROR: Bad logical partition
                          Press any key to exit fdisk
#
running cfdisk -z (ignores the above error) gives:
# cfdisk -z /dev/sda
                            cfdisk 0.8a BETA (>2GB)

                              Disk Drive: /dev/sda
              Heads: 64   Sectors per Track: 32   Cylinders: 1005

    Name        Flags         Part Type      FS Type                  Size (MB)
 ------------------------------------------------------------------------------
                              Pri/Log        Free Space                 1005.00

     [  Help  ]  [  New   ]  [ Print  ]  [  Quit  ]  [ Units  ]
     [ Write  ]

                  Quit program without writing partition table  
# cfdisk /dev/sdb
                            cfdisk 0.8a BETA (>2GB)

                              Disk Drive: /dev/sdb
              Heads: 64   Sectors per Track: 32   Cylinders: 1169

    Name        Flags         Part Type      FS Type                  Size (MB)
 ------------------------------------------------------------------------------
    /dev/sdb1                 Primary        Linux                      1023.00
    /dev/sdb2                 Primary        Linux                       146.00

     [Bootable]  [ Delete ]  [  Help  ]  [Maximize]  [ Print  ]
     [  Quit  ]  [  Type  ]  [ Units  ]  [ Write  ]

                 Toggle bootable flag of the current partition
#
now can anybody explain why fdisk reports no problem with the /dev/sda but with
/dev/sdb, and cfdisk has a problem with /dev/sda and not wit h/dev/sdb?

well the first problem (of fdisk with the different physical/logical endings)
seem somewhat understandable although i have no idea what i schould do about it
(any hints?)

but the second problem (of cfdisk with the Bad logical partition) is absolutly
strange!

if you could give me any hints there, would be nice.

happy hacking, martin.

--
i will be at the world jamboree 95 in the netherlands.
look for me at the information booth of the Scouts Esperanto Ligue.
-----
  boy   and   ___ girl scouts  |  martin b"ahr
            _/   \_            |  
  of       /_/     \  austria  |  


  group  / *  /    |      St.  |  
  42    /  |     _/ Sebastian  |  
       /___|__  / __           |  
           |   /_/  \__/       |  
  Wien,3              AustriA  |  
-------------------------------------------------------------------------