cfdisk tells nonsense, fdisk lies?

cfdisk tells nonsense, fdisk lies?

Post by Christoph Kukulie » Fri, 09 Jun 2000 04:00:00



I installed Redhat 6.1 on a 40 GB hard disk together with Win98.
fdisk now tells me the following:

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

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       255   2048256    6  FAT16
/dev/hda2           256      4982  37969627+   5  Extended
/dev/hda5           256       258     24066   83  Linux
/dev/hda6           259       324    530113+  82  Linux swap
/dev/hda7           325       707   3076416   83  Linux

#

df:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda7              3028080    666568   2207692  23% /
/dev/hda5                23302      2655     19444  12% /boot

I remember that I only created a 2GB FAT (Win98 - precautiously instead
of type 0x0f - maybe can convert later), a 16 MB /boot, a 512 MB swap
and a 3GB /root partition in the custom gnome install of Redhat6.1.

Why does fdisk show me the (imo unpartitioned space as a extended
partition of 37969627+   5  Extended

Could it be that the Win98 install did that automatically?

How would I proceed best now without running into danger of
wiping out everything again?

--

 
 
 

cfdisk tells nonsense, fdisk lies?

Post by Collin W. Hitchco » Fri, 09 Jun 2000 04:00:00


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

>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1       255   2048256    6  FAT16
> /dev/hda2           256      4982  37969627+   5  Extended
> /dev/hda5           256       258     24066   83  Linux
> /dev/hda6           259       324    530113+  82  Linux swap
> /dev/hda7           325       707   3076416   83  Linux
> Why does fdisk show me the (imo unpartitioned space as a extended
> partition of 37969627+   5  Extended

Your configuration appears reasonable.  Your confusion results from a
poor understanding of the (screwed up) PC partition scheme.  Check out
the following for info:

http://www.linuxdoc.org/HOWTO/mini/Partition-3.html

Start reading at "The number of partitions on an Intel based system
was limited from the very beginning..."

Collin

 
 
 

cfdisk tells nonsense, fdisk lies?

Post by Christoph Kukulie » Sat, 10 Jun 2000 04:00:00



:> Disk /dev/hda: 255 heads, 63 sectors, 4982 cylinders
:> Units = cylinders of 16065 * 512 bytes
:>
:>    Device Boot    Start       End    Blocks   Id  System
:> /dev/hda1   *         1       255   2048256    6  FAT16
:> /dev/hda2           256      4982  37969627+   5  Extended
:> /dev/hda5           256       258     24066   83  Linux
:> /dev/hda6           259       324    530113+  82  Linux swap
:> /dev/hda7           325       707   3076416   83  Linux

:> Why does fdisk show me the (imo unpartitioned space as a extended
:> partition of 37969627+   5  Extended

: Your configuration appears reasonable.  Your confusion results from a
: poor understanding of the (screwed up) PC partition scheme.  Check out
: the following for info:

: http://www.linuxdoc.org/HOWTO/mini/Partition-3.html

: Start reading at "The number of partitions on an Intel based system
: was limited from the very beginning..."

My greatest concern at the moment is whether I can safely use the
linux fdisk (cfdisk is ruled out due to that obscure error)
from the installed RH 6.1 installation (note that my kernel
is already 2.2.14) to assign the rest of the disk (which is
flagged as being an extended partition) to a linux partition.

: Collin

--

 
 
 

cfdisk tells nonsense, fdisk lies?

Post by Andrew William » Sat, 10 Jun 2000 04:00:00


The structure is:
1-4 primary partitions

or

1-3 primary partitions and an 'extended' partition containing logical
partitions, this is the usual setup and it is what you have.
You are already using some of the space in the extended partition for Linux,
you are perfectly welcome to use the rest as well.  The next partition would
then be /dev/hda8 and could run from 708 to (maximum) 4982

feel free to ring me under 0621 294 4124 until about 15:00



> :> Disk /dev/hda: 255 heads, 63 sectors, 4982 cylinders
> :> Units = cylinders of 16065 * 512 bytes
> :>
> :>    Device Boot    Start       End    Blocks   Id  System
> :> /dev/hda1   *         1       255   2048256    6  FAT16
> :> /dev/hda2           256      4982  37969627+   5  Extended
> :> /dev/hda5           256       258     24066   83  Linux
> :> /dev/hda6           259       324    530113+  82  Linux swap
> :> /dev/hda7           325       707   3076416   83  Linux

> :> Why does fdisk show me the (imo unpartitioned space as a extended
> :> partition of 37969627+   5  Extended

> : Your configuration appears reasonable.  Your confusion results from a
> : poor understanding of the (screwed up) PC partition scheme.  Check out
> : the following for info:

> : http://www.linuxdoc.org/HOWTO/mini/Partition-3.html

> : Start reading at "The number of partitions on an Intel based system
> : was limited from the very beginning..."

> My greatest concern at the moment is whether I can safely use the
> linux fdisk (cfdisk is ruled out due to that obscure error)
> from the installed RH 6.1 installation (note that my kernel
> is already 2.2.14) to assign the rest of the disk (which is
> flagged as being an extended partition) to a linux partition.

> : Collin

> --


--
Mielipiteet omiani - Opinions personal, facts suspect, especially on my
        http://home.germany.net/101-69082/samba.html
Simple Samba Solutions web page.                            ICQ 1722461
 
 
 

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. books on shell scripting

3. cfdisk better than fdisk??

4. Xterm question

5. fdisk vs cfdisk: strange error

6. Blinkenlights

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

8. Problem installing Mini-Linux on Stacked drive?

9. cfdisk vs fdisk. Which is safer ?

10. Updating fdisk or cfdisk?

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

12. Q: fdisk and cfdisk

13. Fdisk or Cfdisk