Marvin,

On Tue, 28 Aug 2001 at 10:30, Marvin T. Pascual wrote:
> How could I install XFS to my existing EXT2FS in my Linux Mandrake 8.0?

Upgrading an existing setup is easy if and when you're used to it. In my
case it was no problem because I had the same migration experiences with
ReiserFS (I have always been an earlier adopter. I used ReiserFS with
RedHat 6.2 which, unlike the late Mandrake versions, did not support it
out of the box, I even had to patch the kernel which is relatively more
difficult than now with ReiserFS in the mainstream kernel).

First step is the get the latest patch, or a copy of the kernel from the
CVS tree. I do the latter because it turns out to be a faster way of
updating, and I intend to stick with XFS for awhile. Then build your XFS
kernel. Then download the RPMs of the xfsprogs package, or if you're using
Debian, apt-get it from unstable or build it via the debian build scripts
in the cmd directory tree.

Then reboot with your XFS enabled kernel.

Now for the dirty part: you will have to do some "shuffling", moving data
from one partition to another to free up your partitions one at a time to
be migrated to XFS. There is now on-the-fly way to migrate ext2 to
ReiserFS or XFS. Only ext3 has that upward (and downward!) compatibility.

Given a simple setup with a root partition and a home partition, and
assuming the system is not yet filled up such that you can put any two
together in one, and assuming you want to convert both to XFS:

umount /home
mkdir /home-temp
mount /dev/something /home-temp
cd /home
cp -ax /home-temp .
umount /home-temp
mkfs.xfs -f -L home /dev/something
mount /dev/something /home-temp -t xfs
cd /home-temp
cp -ax /home .
rm -fR /home/*
umount /home-temp
<< edit /etc/fstab >>

Obviously migrating the root partition is a wee bit trickier because you
will need to reboot passing "root=/dev/something" to the kernel via LILO.
I remember learning this "shuffling" from ReiserFS. I can't remember where
to find that more elaborate document.

> Anyway, this is not distro dependent di ba?

No, but I know of no distribution that comes with XFS support out of the
box. Even Mandrake cooker (or is it beta?) doesn't support XFS because of,
I think, some issues with ext3.

> Also, is it possible to have 2 filesystems in my Linux box to my
> different partitions, ReiserFS and XFS?

Yes, this is possible. Again you may want to check out
<http://mrtg.leathercollection.ph/phpSysInfo/> to see how my filesystems
are set up. :)

> I assume I won't reinstall all my Linux box from the start again!  = )

With patience and the right frame of mind, no. I've gone from ext2 to
ReiserFS to XFS without reinstalling my trusty Debian. :)

 --> Jijo

--
Federico Sevilla III  :: [EMAIL PROTECTED]
Network Administrator :: The Leather Collection, Inc.
GnuPG Key: <http://jijo.leathercollection.ph/jijo.gpg>

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to