[BusyBox 0001333]: "fdisk -l" (lower case ell) does not read partition table correctly

bugs at busybox.net bugs at busybox.net
Fri May 4 16:50:44 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1333 
====================================================================== 
Reported By:                kiltedknight
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1333
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             05-04-2007 09:50 PDT
Last Modified:              05-04-2007 09:50 PDT
====================================================================== 
Summary:                    "fdisk -l" (lower case ell) does not read partition
table correctly
Description: 
When running "busybox fdisk -l" against a known disk, I get the following:

Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 5
Warning: ignoring extra data in partition table 6
Warning: ignoring extra data in partition table 6
Warning: ignoring extra data in partition table 6
Warning: invalid flag 0xe4,0x0f of partition table 5 will be corrected by
w(rite)
Warning: invalid flag 0x36,0xb0 of partition table 6 will be corrected by
w(rite)

Disk /dev/hde: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/hde1   *           1          33      265041  83 Linux
/dev/hde2              34         925     7164990  83 Linux
/dev/hde3             926        1186     2096482+ 82 Linux swap
/dev/hde4            1187        2434    10024560   5 Extended
/dev/hde5   ?       17782       15955  2132811720  3f Unknown
/dev/hde6   ?      101267      247811  1177113252+ 11 Hidden FAT12


If I run the linux "fdisk -l", I get this:

Disk /dev/hde: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1   *           1          33      265041   83  Linux
/dev/hde2              34         925     7164990   83  Linux
/dev/hde3             926        1186     2096482+  82  Linux swap /
Solaris
/dev/hde4            1187        2434    10024560    5  Extended
/dev/hde5            1187        1377     1534176   83  Linux
/dev/hde6            1378        2434     8490321   83  Linux

It looks like it's having problems reading the partitions out of an
extended partition.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-04-07 09:50  kiltedknight   New Issue                                    
05-04-07 09:50  kiltedknight   Status                   new => assigned     
05-04-07 09:50  kiltedknight   Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list