Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Jul 1999 16:03:50 -0400 
From:      Christopher Michaels <ChrisMic@clientlogic.com>
To:        'Greg Quinlan' <greg@swlct.sthames.nhs.uk>, freebsd-questions@FreeBSD.ORG
Subject:   RE: Mount enhancement?
Message-ID:  <6C37EE640B78D2118D2F00A0C90FCB4401105A6E@site2s1>

next in thread | raw e-mail | index | archive | help
Ouch! that was rather harsh.

> -----Original Message-----
> From:	Greg Quinlan [SMTP:greg@swlct.sthames.nhs.uk]
> Sent:	Friday, July 02, 1999 12:28 PM
> To:	freebsd-questions@FreeBSD.ORG
> Subject:	Re: Mount enhancement?
> 
> 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


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?6C37EE640B78D2118D2F00A0C90FCB4401105A6E>