On Mon, 4 Aug 2003 09:54:06 +1000 Michael.James@csiro.au wrote:
I'd add a step 0, backup the entire contents of /home to cd or something.
To actually get the disk space back you have to delete the old copy of /home back to a bare empty directory. Yes, scary, see step 0. If you just mount over the top of it it will be invisible, frozen under the surface and will still take up disk space.
So as a step 3a, rm -r /home/* I would think there is no need for step 0. First, you should be doing some sort of routine backup (but that is an assumption). But, after you do the copy, don't delete the old stuff until you verify that the new data is there.
the other comment is:
after I verify that the new /home is good, then I might move the old
contents to another directory on the same file system. But, when you
remove the old content, rather than use rm -r /home/*, I would cd /home
them do a rm -rf *
In any case, a typo:
for example: rm -r /home/ *
This will not only remove /home, but also the contents of the current
directory.
The bottom line is to be very careful when doing a recursive rm. rm -rf
/ will ruin your whole day.
--
Jerry Feldman