NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: question about paritions/disklabel
fluca1978%infinito.it@localhost (Luca Ferrari) writes:
>16 partitions:
># size offset fstype [fsize bsize cpg/sgs]
> a: 4192256 2048 4.2BSD 2048 16384 0 # (Cyl. 2*-
> 4161*)
> c: 4192256 2048 unused 0 0 # (Cyl. 2*-
> 4161*)
> d: 4194304 0 unused 0 0 # (Cyl. 0 -
> 4161*)
struct disklabel {
...
uint16_t d_npartitions; /* number of partitions in following */
...
struct partition {
} d_partitions[MAXPARTITIONS];
};
It simply prints whatever is in the disklabel and it does not print
partitions with size == 0. You can simply edit the d_npartitions value
and in interactive mode the value is extended when you define new
partitions beyond the current setting.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index