From owner-freebsd-questions Tue Mar 26 10:51: 4 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 6B82637B419 for ; Tue, 26 Mar 2002 10:51:00 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 18598BD74; Tue, 26 Mar 2002 10:51:00 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id KAA19829; Tue, 26 Mar 2002 10:50:59 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g2QInnB53732; Tue, 26 Mar 2002 10:49:49 -0800 (PST) (envelope-from swear@blarg.net) To: Peter Leftwich Cc: FreeBSD Questions Subject: Re: /etc/fstab woes [please help] References: <20020326015732.V9042-100000@earl-grey.cloud9.net> From: swear@blarg.net (Gary W. Swearingen) Date: 26 Mar 2002 10:49:49 -0800 In-Reply-To: <20020326015732.V9042-100000@earl-grey.cloud9.net> Message-ID: <8f8z8fjh9u.z8f@localhost.localdomain> Lines: 25 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Leftwich writes: > One moment it works, the next, he no a-worka! :( Can someone explain what > is best to use in my /etc/fstab file based on these dmesg entries? You didn't say what "it" is that doesn't work. > Ooh, I just thought of a killer question! Is there a way to have > /etc/fstab entries basically *create* the mounted "directory" points and > `rm -rf /dir` the directories when something is unmounted? You probably can just rename /sbin/mount and write a replacement script that does what you want, probably using the old program. It would need to support the "-a" option used during boot from /etc/rc (see). > That is... why > must the user first "mkdir /cdromdrive" or whatever before issuing a > command like "mount -t cd9660 /dev/acd01 /cdromdrive?" I had a similar case explained to me recently: There's a design theory that such drastic actions as creating a mount point where all kinds and amounts of stuff could get stored without user knowledge is rather risky given the significantly high probability of typos. So some programs shouldn't create files or directories automatically, but instead require require the names to be typed twice (creation and use). Believe it or not. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message