Subject: Re: bin/21027: fdisk is missing an option to avoid displaying extended partition data
To: <>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 04/05/2003 22:20:40
> >Synopsis:       fdisk is missing an option to avoid displaying extended partition data

I have a version (which I must do some further testing of) that is
slightly less verbose - unless gives one, or more, -v paramters.

The current extended partition print assumes (incorrectly) that the
extended partition is a tree structure, not a list.
The default output from my version is:


Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 16383, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 40032696

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 40032696

Partition table:
0: NetBSD (sysid 169)
    bootmenu: net 1.5.
    start 4209030, size 8289540 (4048 MB, Cyls 262-778), Active
1: Primary DOS with 32 bit FAT (sysid 11)
    bootmenu: win98
    start 63, size 4208967 (2055 MB, Cyls 0-262)
2: NetBSD (sysid 169)
    bootmenu: current
    start 32515560, size 7517136 (3670 MB, Cyls 2024-2491/234/40)
3: Ext. partition - LBA (sysid 15)
    start 12498570, size 20016990 (9774 MB, Cyls 778-2024)
Extended partition table:
E0: NetBSD (sysid 169)
    bootmenu: test 0
    start 12498633, size 12305727 (6009 MB, Cyls 778-1544)
E1: NetBSD (sysid 169)
    bootmenu: test1
    start 24804423, size 4096512 (2000 MB, Cyls 1544-1799)
E2: NetBSD (sysid 169)
    bootmenu: test2
    start 28900998, size 3614562 (1765 MB, Cyls 1799-2024)
Bootselector enabled, infinite timeout.

	David

-- 
David Laight: david@l8s.co.uk