Subject: Re: RamdiskS
To: Hammond, Robin-David%KB3IEN <netbsd@kb3ien.us>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-macppc
Date: 01/18/2006 19:56:55
On Wed, Jan 18, 2006 at 05:18:48AM +0000, Hammond, Robin-David%KB3IEN wrote:
> 
> Im wondering how to specifiy MULTIPLE ram disks in netbsd.
> 
> I have right now in /etc/fstab
> 
> /dev/sd0a / ffs rw,softdep 1 1
> /dev/sd0b none swap sw 0 0
> /kern /kern kernfs  rw 0 0
> /proc /proc procfs  rw 0 0
> 192.168.102.188:/usr/export/3-0/macppc/usr/pkg /usr/pkg nfs rw  0 0
> 192.168.102.188:/usr/export/3-0/macppc/usr/pkgsrc /usr/pkgsrc nfs rw 0 0
> /dev/ad0s1b /tmp mfs rw,-s=128000 0 0

ad0s1b is a FreeBSD device, not NetBSD.

> 
> and it is working well !
> 
> My objective is to create additional ramdisks in /var/ for some 
> applications like dhcpd to have scratch, and make / a read only fs, and 
> abolish swap, stability not features...
> 
> it seems counter intuitive that /dev/ad0s1b might be two things at the 
> same time, but what character do  i increment for a second 'disk'?

Nothing. In fact the device parameter isn't used if you use -s.
I think you could just use "swap" instead.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--