[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RAMDISK
On Wed, 13 Mar 2002, Eduardo B. Fonseca wrote:
> * dd if=/dev/zero .....
> * vnconfig -c vnd0 image
> * disklabel -w vnd0c auto
>
> The problem I'm having is with the last line... I just figured out that
> OpenBSD's disklabel does not have (at least, I haven't found it yet) the
> "auto" keyword. I do not know *ANYTHING* about drive geometry so I'm having
> huge problems setting up disktab... is there anyone who can help me with
> this? I need 32Mb, 40Mb, 48Mb and 50 Mb Images...
>
as far as i remember playing with /usr/src/distrib, max ramdisk is 16 MB.
in 8 MB ramdisk you can put anything with instbin, including :
pfctl
snmpd
sshd
crontab
syslogd
and networking stuff (route ifconfig ping etc)
"auto" keyword from /etc/disktab,
rdroot|ramdiskroot|RAM-disk root FS image:\
:ty=ramdisk:se#512:nt#2:ns#128:nc#16:\
:pa#3510:oa#0:ta=4.2BSD:ba#4096:fa#512:\
:pb#0:ob#0:tb=swap:\
:pc#3510:oc#0:
make your self definition and change pa pb ns nc nt number.
Taufik
http://mycroft.sysadmin.or.id
- References:
- RAMDISK
- From: "Eduardo B. Fonseca" <ebf@cwb.fnn.net>