$Id: filesys,v 1.1 1996/03/20 20:01:16 paul Exp $

			Solaris Minix File Systems
			==========================

Each smx file system is stored as a single SunOS file. Mappings between
Minix file systems and Sun files are recorded in the Minix
configuration file.


Creating new file systems
=========================

Solaris Minix comes with twe file systems: root and usr.  One way to
create a new file system is to simply take a copy of an existing file
system of the appropriate size.  This new file system can then be
mounted, and any existing files deleted in smx.

If this is not possible, a new file system can be created by doing
the following:

(1) Decide what device name (from /dev/hdx1 to /dev/hdx7 - /dev/hdx0 is the 
root file system) to use (say you pick /dev/hdx2)

(2) Add the following line to your .minix file:

hdx2     filename

where filename is the SunOS file name of the file that is to hold the
new file system.

(3) Create the SunOS file "filename" using touch(1) under SunOS.

(4) Enter smx.  Create the file system using:

mkfs -b fs_size /dev/hdx2

where fs_size is the number of 1Kb blocks in the file system.

(5) Mount the new file system:

mount /dev/hdx2 mount_point

where mount_point is the name of the SunOS Minix directory
that you want to mount the new file system on.

General note: if the user running Minix has only read access to the
SunOS file associated with /dev/hdx2 then the mount will fail with
"permission denied".  Such file systems can only be mounted read only.


Creating a new root file system
===============================

If the new root file system is to be the same size as an existing
root file system, then the SunOS copy command can be used to create
the new root file system.  Otherwise, the new root file system should
be created as described above, and the following directories (and all
the files in them) should be copied to it:

/bin
/etc

Also empty dev, tmp and usr directories should be created on the new
root file system.  Change to the new dev directory and use the
command:

MAKEDEV sun

to create the new device files.

Other files and directories should be added as needed.
