FreeBSD Bugzilla – Attachment 19312 Details for
Bug 34344
[PATCH] Warp 'Creating a Swapfile' in <example>
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 2.58 KB, created by
Martin Heinen
on 2002-01-27 18:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Martin Heinen
Created:
2002-01-27 18:20:01 UTC
Size:
2.58 KB
patch
obsolete
>Index: chapter.sgml >=================================================================== >RCS file: /u/cvs/doc/en_US.ISO8859-1/books/handbook/config/chapter.sgml,v >retrieving revision 1.37 >diff -u -r1.37 chapter.sgml >--- chapter.sgml 23 Jan 2002 11:59:32 -0000 1.37 >+++ chapter.sgml 27 Jan 2002 17:54:40 -0000 >@@ -1156,44 +1156,49 @@ > <filename>/usr/swap0</filename>. You can use any name you > want, of course.</para> > >- <para>First, be certain that your kernel configuration includes >- the vnode driver. It is not in recent versions of >- GENERIC.</para> >- >- <programlisting>pseudo-device vn 1 #Vnode driver (turns a file into a device)</programlisting> >+ <example> >+ <title>Creating a Swapfile</title> > > <orderedlist> >+ <listitem> >+ <para>Be certain that your kernel configuration includes >+ the vnode driver. It is <emphasis>not</emphasis> in recent versions of >+ <filename>GENERIC</filename>.</para> >+ >+ <programlisting>pseudo-device vn 1 #Vnode driver (turns a file into a device)</programlisting> >+ </listitem> >+ > <listitem> >- <para>create a vn-device</para> >+ <para>Create a vn-device:</para> > <screen>&prompt.root; <userinput>cd /dev</userinput> &prompt.root; <userinput>sh MAKEDEV vn0</userinput></screen> > </listitem> > > <listitem> >- <para>create a swapfile (<filename>/usr/swap0</filename>)</para> >+ <para>Create a swapfile (<filename>/usr/swap0</filename>):</para> > > <screen>&prompt.root; <userinput>dd if=/dev/zero of=/usr/swap0 bs=1024k count=64</userinput></screen> > </listitem> > > <listitem> >- <para>set proper permissions on (<filename>/usr/swap0</filename>)</para> >+ <para>Set proper permissions on (<filename>/usr/swap0</filename>)</para> > > <screen>&prompt.root; <userinput>chmod 0600 /usr/swap0</userinput></screen> > </listitem> > > <listitem> >- <para>enable the swap file in <filename>/etc/rc.conf</filename></para> >+ <para>Enable the swap file in <filename>/etc/rc.conf</filename>:</para> > > <programlisting>swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired.</programlisting> > </listitem> > > <listitem> >- <para>reboot the machine</para> >+ <para>Reboot the machine or to enable the swap file immediately, >+ type:</para> >+ >+ <screen>&prompt.root; <userinput>vnconfig -e /dev/vn0b /usr/swap0 swap</userinput></screen> > </listitem> > </orderedlist> >- >- <para>To enable the swap file immediately, type</para> >- >- <screen>&prompt.root; <userinput>vnconfig -e /dev/vn0b /usr/swap0 swap</userinput></screen> >+ </example> > </sect2> > </sect1> > </chapter>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 34344
: 19312