old-www/HOWTO/UMSDOS-HOWTO-4.html

91 lines
2.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>UMSDOS HOW-TO: Different topics about the operation of Umsdos</TITLE>
<LINK HREF="UMSDOS-HOWTO-5.html" REL=next>
<LINK HREF="UMSDOS-HOWTO-3.html" REL=previous>
<LINK HREF="UMSDOS-HOWTO.html#toc4" REL=contents>
</HEAD>
<BODY>
<A HREF="UMSDOS-HOWTO-5.html">Next</A>
<A HREF="UMSDOS-HOWTO-3.html">Previous</A>
<A HREF="UMSDOS-HOWTO.html#toc4">Contents</A>
<HR>
<H2><A NAME="s4">4. Different topics about the operation of <EM>Umsdos</EM></A></H2>
<P>
<P>
<H2><A NAME="ss4.1">4.1 Mount option</A>
</H2>
<P>
<P>You can use the same mount option as for the Ms-DOS file system.
The option conv= is questionable on a <EM>Umsdos</EM> system. I suggest
to avoid it. Mostly the option you may want to look at are
<P>
<UL>
<LI>uid=</LI>
<LI>gid=</LI>
<LI>umask=</LI>
</UL>
<P>Just remember that <EM>Umsdos</EM> manage non promoted directory
the same way as the <EM>Ms-DOS</EM> file system. The option above
will apply globally to all non promoted directory. <EM>uid</EM>
setup the default owner, <EM>gid</EM> setup the default group
and <EM>umask</EM> setup the default permissions.
<P>
<H2><A NAME="ss4.2">4.2 How to set defaults for the root</A>
</H2>
<P>
<P>umssetup was created to provide at run time default ownership
for the root partition. For other <EM>Umsdos</EM> partition, mount
option may be used or umssetup. Storing mount option in /etc/fstab
is the prefered way for non root partition. Here is an example.
Put this in /etc/rc.d/rc.S.
<P>
<BLOCKQUOTE><CODE>
<PRE>
/sbin/umssetup -u jack -g group -m 0755 /
</PRE>
</CODE></BLOCKQUOTE>
<P>
<H2><A NAME="ss4.3">4.3 To swap or not to swap</A>
</H2>
<P>
<P>Using a swap file is generally slower than a swap partition.
It is however much more flexible. You can setup a swap file
in a <EM>Umsdos</EM> partition the same way you do it for any
other <EM>Linux</EM> file systems. For example, to setup a
8 megabytes swap file in the root directory:
<P>
<BLOCKQUOTE><CODE>
<PRE>
dd if=/dev/zero bs=1024k count=8 of=/swap
mkswap /swap 8192
sync
swapon /swap
</PRE>
</CODE></BLOCKQUOTE>
<P>Once done, you can put the following line in /etc/fstab
<P>
<BLOCKQUOTE><CODE>
<PRE>
/swap swap swap default
</PRE>
</CODE></BLOCKQUOTE>
<P>And the swap file will be activated at each boot (There is
generally a "swapon -a" in <CODE>/etc/rc.d/rc.S</CODE>).
<P>
<HR>
<A HREF="UMSDOS-HOWTO-5.html">Next</A>
<A HREF="UMSDOS-HOWTO-3.html">Previous</A>
<A HREF="UMSDOS-HOWTO.html#toc4">Contents</A>
</BODY>
</HTML>