[SLL] Now trying to replace /usr with a separate parition...

Robert Woodcock rcw at blarg.net
Wed Apr 30 20:46:55 PDT 2008


On Wed, Apr 30, 2008 at 02:02:42PM -0700, Xeno Campanoli wrote:
> I have my partition made, filesystem made.  Are there any cool tools out 
> there to do a one or few steps copy and deletion from the old node?  I 
> was gonna just mount over the data on the old node, then umount and 
> delete the old /usr node stuff from runlevel 1 some time after I am 
> confident it all works...?

cp -avx /usr /mnt
Then permanently edit your /etc/fstab.

-a = archive (i.e. copy all attributes), -v = verbose, -x = one file system.

Then, later:

umount /usr
rm -rf /usr/*
mount /usr

Note: do *not* do rm -rf /usr/.*. Type "echo /usr/.*" for a subtle hint as
to why.
-- 
Robert Woodcock - rcw at blarg.net
"When you can measure what you are speaking about, and express it in numbers,
you know something about it; but when you cannot measure it, when you cannot
express it in numbers, your knowledge is of a meager and unsatisfactory
kind: it may be the beginning of knowledge, but you have scarcely, in your
thoughts, advanced to the stage of science."
	-- William Thomson, Lord Kelvin


More information about the linux-list mailing list