From: Martin Fick Subject: Re: Automounting on /. deleting entire FS! Date: Mon, 11 Oct 2004 12:29:27 -0400 Sender: autofs-bounces@linux.kernel.org Message-ID: <20041011162927.GN21585@lego.fgm.com> References: <20041011152938.GL21585@lego.fgm.com> <16746.43302.434588.743693@segfault.boston.redhat.com> <20041011160135.GM21585@lego.fgm.com> <16746.45101.876872.951336@segfault.boston.redhat.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <16746.45101.876872.951336@segfault.boston.redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: autofs-bounces@linux.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Jeff Moyer Cc: autofs@linux.kernel.org > fick> Jeff, 1) Why does the automounter delete files (or entire > fick> filesystems)? > >> It doesn't, it simply mounted over your '/' mountpoint. If you umount > >> /, you get what was there before (I'm guessing. never really > >> overmounted / before). > > fick> Actually, I have rebooted and that is not the case, everything IS > fick> gone, I even rebooted using another (backup) root filesystem (I keep > fick> one around for this reason) and mounted the old root and looked > fick> around. Again, only the old mount points for partitions that were > fick> mounted are left. > > fick> Are you saying that this not supposed to be the case? Have I > fick> uncovered a bug? > > Nothing is in /etc/ on your old root partition? I don't see anything in > the autofs code that would remove an entire directory hierarchy plus its > contents. Well, I don't have acces to the system here, I am at work, but I didn't see any files, just a few vacant directories left such as: /bin (maybe) /dev /etc /home/fick (my home dir, empty!) /mnt /usr (was mounted externally) I had assumed at first that it was something like what you suggested and so I simply rebooted into the other partition and was shocked to find that nothing came back! -Martin