*BSD News Article 45452


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!uhog.mit.edu!bloom-beacon.mit.edu!boulder!news.coop.net!village.org!not-for-mail
From: imp@village.org (Warner Losh)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Suggestion for 2.1
Date: 12 Jun 1995 09:41:44 -0600
Organization: The Village
Lines: 39
Message-ID: <3rhn7o$2d2@rover.village.org>
References: <3r6rh4$64v@oz.plymouth.edu> <3r7888$280@germany.eu.net> <3r80ka$bun@iii1.iii.net> <3rh7k3$mcb@bonnie.tcd-dresden.de>
NNTP-Posting-Host: rover.village.org

In article <3rh7k3$mcb@bonnie.tcd-dresden.de>,
J Wunsch <joerg_wunsch@uriah.heep.sax.de> wrote:
>/etc/fstab) seems interesting, but seriously, i much prefer my own
>suid Perl script to say something like:
>
>	do-mount cd
>	do-mount floppy
>
>instead of
>
>	mount -t cd9660 -o ro /dev/cd0a /cdrom
>	mount -t msdos /dev/fd0 /floppy

I have 
/dev/cd0a               /cdrom  cd9660 ro 0 0
/dev/fd0                /floppy  msdos rw 0 0

in my /etc/fstab. and just do

	sudo mount /cdrom
	sudo mount /floppy

which isn't so bad :-).

I've been doing this on FreeBSD since about the 1.0Rish days (might have
been 1.1R).  I don't think it is a FreeBSD or Linux thing, since I've done
the same thing on SunOS for years (think NFS).

Too bad there's no way to put the stuff in your /etc/fstab w/o having
it mounted on boot.

There is also the automounter solution, but I've had mondo bad luck
with "automount" "amd" and "vold".

Warner
-- 
Warner Losh		"VMS Forever"		home: imp@village.org
Cyberspace Development, Inc			work: imp@marketplace.com
Makers of TIA, The Internet Adapter.		http://marketplace.com/