From owner-freebsd-questions Fri Jul 2 9:27:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mail.swlct.sthames.nhs.uk (hide14.nhs.uk [194.6.81.14]) by hub.freebsd.org (Postfix) with ESMTP id 67AD5156E5 for ; Fri, 2 Jul 1999 09:27:47 -0700 (PDT) (envelope-from greg@swlct.sthames.nhs.uk) Received: from greg (gquinlan [194.81.0.56]) by mail.swlct.sthames.nhs.uk (8.9.3/8.9.3) with SMTP id RAA65816 for ; Fri, 2 Jul 1999 17:24:42 +0100 (BST) Message-ID: <022f01bec4a7$c8cfd9c0$380051c2@qmpgmc.ac.uk> Reply-To: "Greg Quinlan" From: "Greg Quinlan" To: References: <55586E7391ACD211B9730000C11002761796C9@r-lmh-wi-100.corpnet.at> Subject: Re: Mount enhancement? Date: Fri, 2 Jul 1999 17:27:31 +0100 Organization: Queen Mary's Hospital (SWLCT) X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG No!!!! I do not mean "-t" ***** just ***** mount /dev/fd0 /mnt ***** just ***** What file system is /dev/fd0? (i here you say).... Who cares!! "mount" should be intelligent to know what the file system is (if it is one that is supported). Without "-t" Not with a "-t" No "-t" Leave off the "-t" Who wants a "-t" just "mount" simply " mount " So the answer is: -------------------------- cut here ----------------------------- mv /sbin/mount /sbin/stupid_answers cat < /sbin/mount #!/bin/sh [ $# = 2 ] && { stupid_answers -t ufs $* 2> /dev/null || { stupid_answers -t cd9660 $* 2> /dev/null || { stupid_answers -t msdos $* 2> /dev/null || { echo "mount: device type unknown" } } } } || stupid_answers $* chmod a+rx /sbin/mount -------------------------- cut here ----------------------------- mount /dev/fd0 /mnt (it worked!!!) FINE! Sorry how silly of me of me to ask for something so silly! }:| ps. I was taking about "SCO UNIX" Greg ----- Original Message ----- From: Ladavac Marino To: 'Greg Quinlan' ; Sent: 02 July 1999 13:55 Subject: RE: Mount enhancement? > > -----Original Message----- > > From: Greg Quinlan [SMTP:greg@swlct.sthames.nhs.uk] > > Sent: Friday, July 02, 1999 12:49 PM > > To: freebsd-questions@FreeBSD.ORG > > Subject: Mount enhancement? > > > > Is there anyone that has any thoughts on making mount a single step? > > > > mount_msdos > > mount_cd9960 > > mount_ntfs > > mount_ext2fs > > > > just > > > > mount > > > > Under another x86 Unix based OS they use just "mount" for all > > filesystem and > > device mounting, and determine the filesystem type using "dtype" (data > > type), so instead of using a separate mount command for every hardware > > device or filesystem, it is just "mount." > [ML] you mean like > mount -t ufs > mount -t msdos > mount -t cd9660 > mount -t ntfs > mount -t ext2fs > > except that they probably use SYSV -F instead of ours -t? > > man mount :) > > > (of course their are perhaps the odd exception) > > > > To achieve this a intermediate step to determine the data-type would > > be > > required then perhaps to call the appropriate mount command with the > > command > > line parameters. > > > > Has anyone got any thoughts? > > > > Greg > > > > (ps. please include me in the reply) > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message