<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=32v_1m_mkfs</id>
		<title>32v 1m mkfs - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://gunkies.org/index.php?action=history&amp;feed=atom&amp;title=32v_1m_mkfs"/>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_mkfs&amp;action=history"/>
		<updated>2026-05-06T02:20:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.1</generator>

	<entry>
		<id>https://gunkies.org/w/index.php?title=32v_1m_mkfs&amp;diff=6993&amp;oldid=prev</id>
		<title>Neozeed: New page: MKFS(1M)            UNIX Programmer's Manual             MKFS(1M)    == NAME ==      mkfs - construct a file system  == SYNOPSIS ==      /etc/mkfs special proto  == DESCRIPTION ==      _M_...</title>
		<link rel="alternate" type="text/html" href="https://gunkies.org/w/index.php?title=32v_1m_mkfs&amp;diff=6993&amp;oldid=prev"/>
				<updated>2009-10-26T14:54:54Z</updated>
		
		<summary type="html">&lt;p&gt;New page: MKFS(1M)            UNIX Programmer&amp;#039;s Manual             MKFS(1M)    == NAME ==      mkfs - construct a file system  == SYNOPSIS ==      /etc/mkfs special proto  == DESCRIPTION ==      _M_...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;MKFS(1M)            UNIX Programmer's Manual             MKFS(1M)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NAME ==&lt;br /&gt;
     mkfs - construct a file system&lt;br /&gt;
&lt;br /&gt;
== SYNOPSIS ==&lt;br /&gt;
     /etc/mkfs special proto&lt;br /&gt;
&lt;br /&gt;
== DESCRIPTION ==&lt;br /&gt;
     _M_k_f_s constructs a file system by writing on the special file&lt;br /&gt;
     _s_p_e_c_i_a_l according to the directions found in the prototype&lt;br /&gt;
     file _p_r_o_t_o. The prototype file contains tokens separated by&lt;br /&gt;
     spaces or new lines.  The first token is the name of a file&lt;br /&gt;
     to be copied onto block zero as the bootstrap program, see&lt;br /&gt;
     _b_p_r_o_c(8).  The second token is a number specifying the size&lt;br /&gt;
     of the created file system.  Typically it will be the number&lt;br /&gt;
     of blocks on the device, perhaps diminished by space for&lt;br /&gt;
     swapping.  The next token is the number of i-nodes in the&lt;br /&gt;
     i-list.  The next set of tokens comprise the specification&lt;br /&gt;
     for the root file.  File specifications consist of tokens&lt;br /&gt;
     giving the mode, the user-id, the group id, and the initial&lt;br /&gt;
     contents of the file.  The syntax of the contents field&lt;br /&gt;
     depends on the mode.&lt;br /&gt;
&lt;br /&gt;
     The mode token for a file is a 6 character string.  The&lt;br /&gt;
     first character specifies the type of the file.  (The char-&lt;br /&gt;
     acters -bcd specify regular, block special, character spe-&lt;br /&gt;
     cial and directory files respectively.) The second character&lt;br /&gt;
     of the type is either u or - to specify set-user-id mode or&lt;br /&gt;
     not.  The third is g or - for the set-group-id mode.  The&lt;br /&gt;
     rest of the mode is a three digit octal number giving the&lt;br /&gt;
     owner, group, and other read, write, execute permissions,&lt;br /&gt;
     see _c_h_m_o_d(1).&lt;br /&gt;
&lt;br /&gt;
     Two decimal number tokens come after the mode; they specify&lt;br /&gt;
     the user and group ID's of the owner of the file.&lt;br /&gt;
&lt;br /&gt;
     If the file is a regular file, the next token is a pathname&lt;br /&gt;
     whence the contents and size are copied.&lt;br /&gt;
&lt;br /&gt;
     If the file is a block or character special file, two&lt;br /&gt;
     decimal number tokens follow which give the major and minor&lt;br /&gt;
     device numbers.&lt;br /&gt;
&lt;br /&gt;
     If the file is a directory, _m_k_f_s makes the entries .  and ..&lt;br /&gt;
     and then reads a list of names and (recursively) file&lt;br /&gt;
     specifications for the entries in the directory.  The scan&lt;br /&gt;
     is terminated with the token $.&lt;br /&gt;
&lt;br /&gt;
     If the prototype file cannot be opened and its name consists&lt;br /&gt;
     of a string of digits, _m_k_f_s builds a file system with a sin-&lt;br /&gt;
     gle empty directory on it.  The size of the file system is&lt;br /&gt;
     the value of _p_r_o_t_o interpreted as a decimal number.  The&lt;br /&gt;
     number of i-nodes is calculated as a function of the&lt;br /&gt;
     filsystem size.  The boot program is left uninitialized.&lt;br /&gt;
&lt;br /&gt;
     A sample prototype specification follows:&lt;br /&gt;
&lt;br /&gt;
          /usr/mdec/uboot&lt;br /&gt;
          4872 55&lt;br /&gt;
          d--777 3 1&lt;br /&gt;
          usr  d--777 3 1&lt;br /&gt;
               sh   ---755 3 1 /bin/sh&lt;br /&gt;
               ken  d--755 6 1&lt;br /&gt;
                    $&lt;br /&gt;
               b0   b--644 3 1 0 0&lt;br /&gt;
               c0   c--644 3 1 0 0&lt;br /&gt;
               $&lt;br /&gt;
          $&lt;br /&gt;
&lt;br /&gt;
== SEE ALSO ==&lt;br /&gt;
     [[32v 5m filsys|filsys(5)]], [[32v 5m dir|dir(5)]], [[32v 8m bproc|bproc(8)]]&lt;br /&gt;
&lt;br /&gt;
== BUGS ==&lt;br /&gt;
     There should be some way to specify links.  There should be&lt;br /&gt;
     some way to specify bad blocks.&lt;br /&gt;
&lt;br /&gt;
[[Category:32v man section 1]]&lt;/div&gt;</summary>
		<author><name>Neozeed</name></author>	</entry>

	</feed>