Subject: Re: Conflict in fstab
To: \"°o.O Jeremy O.o°\" <huangker@gmail.com>
From: Hubert Feyrer <hubertf@gmx.de>
List: netbsd-help
Date: 01/14/2005 04:21:48
In article <41DBD9B7.20107@gmail.com> you wrote:
> /dev/wd1b none swap sw 00
> /dev/wd1b /tmp mfs rw,-s525168
> 
> Now this seems quite strange as they are both using wd1b as their 
> device. Does anyone know whats going on here?

The first line (fstype "swap", mntopts "sw") tells the system to use the 
named filesystem for paging & swapping.

The second line mounts a memory-based filesystem (mfs) read-write with a 
maximum sizue of 512MB(?) on /tmp. Regardless of what the maximum size is, 
the system will put the filesystem's data and metadata into RAM, unless 
it's running out of RAM. In that case, it will use the given partition 
(/dev/wd1b) as backing store to move data there then.

See the 4.4BSD book by Kirk McKusick etc. for a more in-depth description 
on how mfs works.


 - Hubert

-- 
  ___ _ _  _   _        * Harddisk Image Cloning * 
 / __| | || | | |           www.feyrer.de/g4u/
| (_ |_  _| |_| |         
 \___| |_| \___/          Version 2.0 out now!