DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Managing filesystem types

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:

  1. Remove the files by entering
       find src_path -mount ! -type d -print | xargs rm -f
    

  2. Remove the directories by entering
       find src_path -mount -depth -type d -print | xargs rmdir
    

  3. 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.

  1. 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).

  2. Then enter:
       rm -rf src_path
    

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004