Steps 2 and 3: Removing the source filesystem and editing vfstab
Once you have copied the filesystem to its new location,
you can remove it from its original location.
The safe way to do this is:
-
Remove the files by entering
find src_path -mount ! -type d -print | xargs rm -f
-
Remove the directories by entering
find src_path -mount -depth -type d -print | xargs rmdir
-
Complete the procedure by editing the
/etc/vfstab
file
(with an editor such as
vi)
so the moved filesystem refers
to the new location (the new slice).
An alternative is to remove
both your files and directories simultaneously.
-
Make sure that none of the subdirectories below src_path is a mounted
filesystem (since rm crosses mount points and might therefore remove more than you intended).
-
Then enter:
rm -rf src_path
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004