[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RAMDISK, part II
Hi Taufik,
> as far as i remember playing with /usr/src/distrib, max ramdisk is 16 MB.
I tried to use 16 MB ramdisks... it does not work! :(
then i tried 8mb... everything works right now...
How do I make 16 mb ramdisks?
any clues?
Eduardo.
> cause this
>
> /*
> * XXX: the "control" unit is (base unit + 16).
> * We should just use the cdev as the "control", but
> * that interferes with the security stuff preventing
> * simulatneous use of raw and block devices.
> *
> * XXX Assumption: 16 RAM-disks are enough!
> */
>
> on /usr/src/sys/dev/ramdisk.c
>
> 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
> mycroft@admin.or.id
> http://mycroft.sysadmin.or.id
>
>
>
> On Tue, 19 Mar 2002 trader@lotr.nu wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hello,
> > Don't know if this will help but when I made the OpenBSD
> > firewall on a cdrom I had the same problem until I set root to be on
> > the cd in the kernel. You might need to change that on your but point
> > it to the radisk?
> >
> > // cHeCksUm
> >
> > - ----- Original Message -----
> > From: "Eduardo B. Fonseca" <ebf@cwb.fnn.net>
> > To: "Lista OpenBSD-misc" <misc@openbsd.org>
> > Sent: Monday, March 18, 2002 11:24 PM
> > Subject: RAMDISK, part II
> >
> >
> > > *This message was transferred with a trial version of
> > > CommuniGate(tm) Pro* Hello Guys,
> > >
> > > Thanks to you guys, I was able to set up a 32 meg RAMDISK image
> > > and stick it into a kernel. Everything went great... just one
> > > problem... it does not boot :)
> > > The obsd boot manager starts loading the kernel... then...
> > > reboots the machine... any ideas? Is there any limitation on the
> > > image size inside the kernel?
> > > My steps were:
> > >
> > > * Create a brand new kernel with RAMDISK_HOOKS and
> > > MINIROOTSIZE...
> > > * Compile it
> > > * Create the image...
> > > * rdsetroot bsd < myimage
> > > * copy everything to another harddrive
> > > * installboot the other harddrive
> > > * rebooted.
> > > * Started to load the new kernel... boomm... rebooted :)
> > >
> > > Any ideas?
> > >
> > > Thanks a lot!
> > >
> > > Eduardo B. Fonseca
> > ebf@cwb.fnn.net
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: PGP 7.1
> >
> > iQA/AwUBPJaM76ZVALvrnZJ4EQJ5xQCgwO5Vwx+qTesX4anj4kXJdLH1J6MAoIc3
> > Jz0vVP5+54b4sXqsUQlcTKHN
> > =cVKW
> > -----END PGP SIGNATURE-----