==> Regarding [autofs] Automounting on /. deleting entire FS!; Martin Fick <[EMAIL 
PROTECTED]> adds:

fick> Yup, The [EMAIL PROTECTED] sys admin of my home machine, (that's me,) decided to
fick> fool the automounter into using '/' to mount his partiions on and
fick> lost his entire filesystem.  Pouff, everything that was not a mounted
fick> partition gone!!!  Now I realize that I shouldn' have been deceitfull
fick> to the poor little autofs daemon, I told hime to use '/.' since he
fick> balked at '/', but did I really deserve this?

fick> So a few questions:

fick>    1) Why does the automounter delete files (or entire 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>    2) How can one go about automounting a cdrom on /cdrom?

You could automount it in /misc/cdrom, and create a symlink.

# ln -sf /misc/cdrom /cdrom

fick>    3) Should this be fixed? i.e. if it's bad to use slash, then
fick> should any other path that works out to be slash be checked also? :)

Probably.

fick>    4) Are my files really gone?  Is there anything I can do to
fick> recover? (it is an ext3 fs, not ext2)

No, see the answer to 1) above.  If you can't simply umount /, then you can
boot in single user mode.  This shouldn't start the automounter.  Then, you
can edit your automount config files to not overmount /.  You should be
good to go after that.

fick>   Still weeping/laughing,

You gave me a chuckle.

-Jeff

_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to