Date: Thu, 12 Sep 2002 14:52:33 -0400 (EDT) From: John Mills <jmmills@telocity.com> To: "Riley J. McIntire" <rileyjmc@pacbell.net> Cc: John Mills <john.m.mills@alum.mit.edu>, Beech Rintoul <akbeech@sinbad.net>, FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: RE: Can't delete a directory Message-ID: <Pine.LNX.4.21.0209121444580.4629-100000@otter.mills-atl.com> In-Reply-To: <HEEELMCBPANKADCOBOFPKEMGGIAA.rileyjmc@pacbell.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Riley - On Thu, 12 Sep 2002, Riley J. McIntire wrote: > > # consider interactive use here: 'rm -i $FILENAME' > > echo "Removing "$FILENAME > > rm -f $FILENAME > > done > > echo "Removing directories below "$1 > > rm -rf $1 > > fi > Seems to me running rm -rf in a script wouldn't do any more than cli. At that point the script has emptied the directories of files, but not directories. The script doesn't remove directories from the bottom upwards, so you're probably right that it wouldn't work. Can you manually go to a leaf directory, empty it, then backup one and remove it? Can you turn off the exportation, then try the simple 'rm -rf'? How about 'umount' this partition (slice?), re'mount' it on a generic mount-point, then removing what you need to? Afterward you would presumably reverse the process and export the new branch. DISCLAIMER: I'm only guessing here. - John Mills To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0209121444580.4629-100000>