fdisk and cfdisk

fdisk and cfdisk

Post by Yusheng L » Fri, 19 Dec 1997 04:00:00



Hi, all,

I have a 4.3G hd and have linux installed on it.
when I look at the data from the fdisk and cfdisk,
I have different results of the start and end cyls of
each partition.

My question is which number should I use when I need to
specified the starting and ending cyl number.

Thank you for your help.

Yusheng LI

Quote:>>>>Data got from fdisk
>>use *p*

Disk /dev/hda: 255 heads, 63 sectors, 527 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/hda1   *        1        1      260  2088418+   7  OS/2 HPFS
/dev/hda2          261      261      324   514080    6  DOS 16-bit >=32M
/dev/hda3          325      325      400   610470   83  Linux native
/dev/hda4          401      401      527  1020127+  a5  BSD/386

Quote:>>use *x* (expert) and then *p*

Disk /dev/hda: 255 heads, 63 sectors, 527 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl   Start    Size ID
 1 80   1   1    0 254  63  259      63 4176837 07
 2 00   0   1  260 254  63  323 4176900 1028160 06
 3 00   0   1  324 254  63  399 5205060 1220940 83
 4 00   0   1  400 254  63  526 6426000 2040255 a5

Quote:>>use cfdisk

Data got from cfdisk

         ---Starting---      ----Ending---- Start   Number
 # Flags Head Sect Cyl   ID  Head Sect Cyl  Sector  Sectors
-- ----- ---- ---- ---- ---- ---- ---- ---- ------- -------
 1  0x80    1    1    0 0x07  254   63  259      63 4176837
 2  0x00    0    1  260 0x06  254   63  323 4176900 1028160
 3  0x00    0    1  324 0x83  254   63  399 5205060 1220940
 4  0x00    0    1  400 0xA5  254   63  526 6426000 2040255

 
 
 

1. fdisk and cfdisk giving incorrect partition size information

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
hanging 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.

2. AT&T starland cards

3. cfdisk better than fdisk??

4. howto setup callback ppp

5. fdisk vs cfdisk: strange error

6. Changing time and date on files

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

8. Apache-1.3.19 and Aliasing NOT WORKING!!!

9. cfdisk vs fdisk. Which is safer ?

10. Updating fdisk or cfdisk?

11. cfdisk tells nonsense, fdisk lies?

12. Red Hat 5.0 fdisk/cfdisk failure on jaz disk

13. Q: fdisk and cfdisk