Subject: Re: make some partitions
To: Jan Satko <satko@quanto.uniag.sk>
From: Simon Burge <simonb@netbsd.org>
List: netbsd-users
Date: 09/12/1999 16:47:09
Jan Satko wrote:
> Hello.
> Can someone help me with makeing partitions with disklabel ?
> I try " disklabel -e sd0 "
> And now i don't known how to make 60MB swap and 150MB /usr and 700MB
> /home and others.
>
> example:
> a: 205275 0 4.2BSD 1024 8192 16
> b: 131325 205275 swap
> c: 2698061 0 unused 0 0
> d: 819825 336600 4.2BSD 1024 8192 16
> ^ ^
> | |
> this is size. but what is this ?
> no problem. i don't know what this number says.
The third column is the offset of that partition from the start of the
disk. In your case, "a" and "c" both start at the beginning of the disk
(this is pretty normal), "b" starts at the end of "a" and "d" starts at
the end of "a"+"b". All partitions that contain normal FFS filesystems
will have "4.2BSD 1024 8192 16" after them - the numbers can be played
with but leaving them as is is safe.
Traditionally, the partition sizes and offsets are a multiple of the
"sectors/cylinder" number, but this doesn't matter so much with modern
disks. Assuming that this number is 1275 on your system (your disk
looks suspiciously like a DEC RZ58), and you want a 32MB root filesystem
as well, you could use something like:
a: 66300 0 4.2BSD 1024 8192 16
b: 123675 66300 swap
c: 2698061 0 unused
d: 307275 189975 4.2BSD 1024 8192 16
e: 1433100 497250 4.2BSD 1024 8192 16
f: 767711 1930350 4.2BSD 1024 8192 16
with root on "a", swap on "b", /usr on "d", /home on "e" and around
375MB on "f" for whatever you want.
Maybe you could file a problem report (with send-pr) saying that the
documentation for "disklabel -e" isn't good enough.
Simon.