<& 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="pr_source.html">
<i>Installing from the Source</i></a>,
<a href="pr_rpm.html">
<i>Installing XFS from the Red Hat RPM packages</i></a>, and
<a href="pr_installer.html">
<i>Installing from the SGI XFS for Red Hat 7.0 Installer</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.0-XFS-test10
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 &>