XFS resizing & Win2k

Andrew Mathews andrew_mathews
Mon May 17 11:47:55 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Net Llama! wrote:
| I've painted myself into a corner where i need/want to turn a Linux only
| box into a dual boot box with Win2k.  Right now, the box (which is a
| laptop) has just RH9 (XFS) installed, and occupying the entire disk as
| follows:
| hda1  /boot
| hda2  SWAP
| hda3 /
|
| What I need to do is resize hda3 so that its about 5 GB smaller, so that i
| can create a hda4 to install Win2k on.  The problem here is that
| xfs_growfs doesn't appear to support shrinking partitions, just growing
| them.  Is shrinking an XFS partition even possible?  If so, how?
|
| thanks!
|

Nope. It's a one way street, as is LVM. AFAIK, no filesystem supports
shrinking, at least I haven't found a way with AIX, Solaris, IRIX, or
any others. The easiest way is to xfsdump the mountpoint, drop it and
recreate it with the size required, and xfsrestore the data. You can do
this with the installer iso by entering rescue mode, mounting /dev/hda3
as a temporary mountpoint and chrooting to the mountpoint. A tape drive
would be handy for this as you won't be able to mount anything via nfs
since networking won't be available. You'll also need to do this after
installing Windows to be able to rerun lilo, otherwise Win will be the
only thing that's bootable. Also see:
http://oss.sgi.com/projects/xfs/faq.html#resizexfspartition

- --
Andrew Mathews
- ---------------------------------------------------------------------
~ 11:36am  up 4 days, 14:04, 16 users,  load average: 1.19, 1.41, 1.28
- ---------------------------------------------------------------------
Once, adv.:
	Enough.
		-- Ambrose Bierce, "The Devil's Dictionary"
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQE+1kktidHQ0m/kEssRAhSRAJwN600FJMt5uwNfvG6ji/eg71eIjACeMD2U
feyFYWqCxGyqyWNiFfr+RVI=
=1yXj
-----END PGP SIGNATURE-----



More information about the Linux-users mailing list