Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jul 1999 17:27:31 +0100
From:      "Greg Quinlan" <greg@swlct.sthames.nhs.uk>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Mount enhancement?
Message-ID:  <022f01bec4a7$c8cfd9c0$380051c2@qmpgmc.ac.uk>
References:  <55586E7391ACD211B9730000C11002761796C9@r-lmh-wi-100.corpnet.at>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <device> <mount point>"

So the answer is:
-------------------------- cut here -----------------------------
mv /sbin/mount /sbin/stupid_answers
cat <<EOT > /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 <mladavac@metropolitan.at>
To: 'Greg Quinlan' <greg@swlct.sthames.nhs.uk>;
<freebsd-questions@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?022f01bec4a7$c8cfd9c0$380051c2>