fdisk and cfdisk giving incorrect partition size information

fdisk and cfdisk giving incorrect partition size information

Post by random_g » Sun, 18 Aug 2002 00:27:29



Hi all,

For a long time, only about 8GB of the 30GB IDE hard disk in my RH 7.2
machine was being used in several partitions, with 22GB of free space
* off an extened partition. I attempted to create a new logical
partition, using cfdisk, out of the free space.

After the partition information was 'written', cfdisk gave me an error
of the sort "Can't re-read new partion table. Please reboot.." After
rebooting and mounting the new partition (hda7), here's the output of
'df':

Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda1               505605    456124     23377  96% /
/dev/hda3              1004052     18620    934428   2% /home
none                    127228         0    127228   0% /dev/shm
/dev/hda2              4032124   1905176   1922120  50% /usr
/dev/hda5               505605     58967    420534  13% /var
/dev/hda7                38859        13     36840   1% /da

Here is the output of print table cmd of fdisk /dev/hda:

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        65    522081   83  Linux
/dev/hda2            66       575   4096575   83  Linux
/dev/hda3           576       702   1020127+  83  Linux
/dev/hda4           703      3647  23655712+   5  Extended
/dev/hda5           703       767    522081   83  Linux
/dev/hda6           768       832    522081   82  Linux swap
/dev/hda7           833      3647  22611456   83  Linux

cfdisk gives the same information.

Can anyone tell me what's going on here? Why the different partition
sizes being reported?

Thanks.

 
 
 

1. New SCSI drive partition information different for fdisk and cfdisk????

Hello.

I recently installed Linux (Debian woody) on a P4 machine that has two SCSI
disks.  Linux installed well on the second disk (/dev/sdb) which is an IBM
Ultrastar 18GB SCSI disk. Everything seemed perfectly fine with the system
until I attempted to look at the partitions with PartitionMagic.

PartitionMagic reported that the Linux partition had an error.  So, I booted
Linux, ran fdisk and received the following report from "fdisk -l /dev/sdb":

----
Disk /dev/sdb: 1 heads, 35565080 sectors, 1 cylinders
Units = cylinders of 35565080 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1   *         1         1  17652064+  83  Linux
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 1) logical=(0, 0, 64)
Partition 1 has different physical/logical endings:
     phys=(1023, 255, 63) logical=(0, 0, 35304192)
Partition 1 does not end on cylinder boundary:
     phys=(1023, 255, 63) should be (1023, 0, 35565080)
----

I never noticed this before, so I decided to run cfdisk.  It showed the
partition as being correct:

---
     sdb1           Boot            Primary     Linux ext2
18075.75
---

and the cfdisk table print produced:

---
Partition Table for /dev/sdb

         ---Starting---      ----Ending----    Start Number of
 # Flags Head Sect Cyl   ID  Head Sect Cyl    Sector  Sectors
-- ----- ---- ---- ---- ---- ---- ---- ---- -------- ---------
 1  0x80    1    1    0 0x83  255   63 1023       63  35304129
 2  0x00    0    0    0 0x00    0    0    0        0         0
 3  0x00    0    0    0 0x00    0    0    0        0         0
 4  0x00    0    0    0 0x00    0    0    0        0         0
---

My big question is why are fdisk and cfdisk reporting different information.
Which is correct?  My Linux installation is working, but this anomaly in the
partition table bothers me.  Might anyone have any information on why this
is occuring?

Many thanks for your time.

Pete Willemsen
University of Utah

2. Q: How to create a full-duplex pipe?

3. fdisk partitioning -- is there a size limit on a partition?

4. Problems with X and Caldera

5. fips and fdisk partitions incorrect?

6. Adaptec 2940UW SCSI with SCAM?

7. df gives wrong size information

8. Sound on Acernote Lite 370PC

9. Slackware 2.01 fdisk gives problems on partitioning

10. Weird Incorrect Partition Size Problem

11. incorrect msdos partition size

12. df and fdisk disagree on partition size

13. cfdisk better than fdisk??