Subject: default slice sizes
To: None <port-sparc@netbsd.org>
From: Chris Amthor <amthor@chroam.de>
List: port-sparc
Date: 07/30/2004 20:34:02
Hi,

yes, it's me again and again I've got two probalbly stupid questions
regarding NetBSD's HDD partitioning:


(i) How do I get rid of a disklabel? I mean, how do I really and
entirely remove a disklabel from a certain HDD and can start from
scratch?

(ii) How the fu^H^H heck does NetBSD calculate the default partition
sizes during a fresh install? Using a 4.x GB HDD and staying with the
default values it installes:

popeye# disklabel -r sd0

[...]

8 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:     66010         0     4.2BSD   1024  8192    56   # (Cyl.    0 - 40)
 b:    199640     66010       swap                      # (Cyl.   41 - 164)
 c:   8330543         0     unused      0     0         # (Cyl.    0 - 5174*)
 g:   8064893    265650     4.2BSD   1024  8192    48   # (Cyl.  165 - 5174*)

popeye# df -k
Filesystem  1K-blocks     Used     Avail Capacity  Mounted on
/dev/sd0a       31964    22489      7876    74%    /
/dev/sd0g     3908108   134255   3578447     3%    /usr

Of course significant parts of the system live in /usr/, but this way
even downloading the pkgsrc tarball to /tmp/ fails, since it just
filles up the remaining 7.5MB.

What are these default values good for, if sticking to them renders a
fresh system unmaintainable?

And how comes disklabel reports eight partitions? I see four, or a
maximum of seven assuming that the partitions d-f do exist in some
kind of a parallel universe... ;)

Ah, before I forget: I'm talking about NetBSD-1.6.2/sparc, target
system is SS5 with 48MB RAM installed.

TIA,

cheers,
\end{kryz}

-- 
Q: How is "SunOS" spelled?
A: As one speaks it. With capital "S-O-S".