[BACK]Return to xfsroot.html CVS log [TXT][DIR] Up to [Development] / xfs-website.orig

File: [Development] / xfs-website.orig / xfsroot.html (download) (as text)

Revision 1.2, Tue Mar 27 23:11:25 2001 UTC (16 years, 6 months ago) by xfs
Branch: MAIN
Changes since 1.1: +5 -7 lines


 Modified Files:
 	xfsroot.html
Updating for prerelease 0.10

<& xfsTemplate,top=>1,side=>1 &>

<!-- Start Project Content -->
<h2>
<b><font face="ARIAL NARROW,HELVETICA">Making a Linux XFS Root</font></b></h2>

<p>
The following procedure outlines the general steps you
perform to make a root filesystem for use with XFS Linux.

<p>
In order to perform this procedure, you must have a machine
with sufficient space for two copies of the filesystems,
since the procedure involves making full copies of your
partitions and filesystems.

<OL>

<LI>
Boot an XFS-capable kernel.  Instructions for installing an
XFS kernel are provided in 
<a href="pr10_source.html">
<i>Installing from the Source</i></a> and
<a href="pr10_rpm.html">
<i>Installing XFS from the Red Hat RPM packages</i></a>.
</LI>

<p>

<LI>
Set up copies of all of your partitions with a partition
editor.
</LI>

<p>

<LI>

Make XFS filesystems that parallel your
existing filesystems on the new set of partitions.

</LI>
<p>
<LI>
Mount the XFS filesystems somewhere.  Mount the filesystems
in the same layout as they will be used:

<p>
<ul>
<tt>/<i>mnt</i>/ /<i>mnt</i>/usr /<i>mnt</i>/usr/local /<i>mnt</i>/var </tt>  ... etc.
</ul>

</LI>
<p>
<LI>
Copy data for each filesystem:
<p>
<ul>
<tt>find / -mount -print | cpio -pdm /mnt
<br>
find /usr -mount -print | cpio -pdm /mnt/usr</tt>
<p>
etc.
</ul>
</LI>

<p>
<LI>
On what will be the new root, edit the <tt>/etc/lilo.conf</tt> file to
add an entry for the new root filesystem and give it an XFS-capable kernel
(XFS as a module is more complex).
<p>
For example:
<ul>
<pre>
<tt>image=/boot/vmlinuz-2.4.2-XFS-0.10.smp
     label=xfs-root
     read-only
     root=/dev/hda1
     append="console=ttyS0,115200"</tt>
</pre>
</ul>
</LI>

<p>
<LI>
In the new root, edit the <tt>fstab</tt> file and replace device
entries with the device entries for the new setup.
Change the filesystem type to <tt>xfs</tt>.

</LI>

<p>
<LI>
Install the new <tt>lilo</tt> configuration:
<p>
<ul>
<tt>lilo -R /<i>mnt</i></tt>
</ul>
<p>
where <tt>/<i>mnt</i></tt> is the root of the new tree.
</LI>

<p>
<LI>
Reboot to the new kernel and root.
</LI>

</OL>

<br>


<& xfsTemplate,bottom=>1 &>