[nflug] >mount

Robert Meyer meyer_rm at yahoo.com
Tue Jun 26 17:13:48 EDT 2001


--0-1804289383-993590028=:86947
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

It's a script... Please find it attached here :-)
--- Robert Dege <rdege at cse.Buffalo.EDU> wrote:
> 
> D'OH!
> 
> It that a script or a binary.  The author never made any utilities for it,
> so I'm wondering if it's interoperable ;)
> 
> -Rob
> 
> > Actually, on a Mandrake system, you just type 'supermount -i enable' and it
> > does all the editting for you.  It sets up the /mnt/cdrom and /mnt/floppy
> > filesystems.  Does that ROCK or what?!
> >
> > later...
> >
> > Bob
> > --- Robert Dege <rdege at cse.Buffalo.EDU> wrote:
> > >
> > > I already use supermount, as part of the Mandrake 2.4x kernel.
> > > Unfortunately, the owner hasn't written any "official" src code for the
> > > 2.4x kernel, so I have to use Mandrake's hack.... which works fine.
> > >
> > > I'll check out the fuser program though.  I'm not sure if it will flag a
> > > shell & the cwd, but I'll find out.
> > >
> > >
> > > Greg, Supermount allows a user to mount & unmount a fs without explicitly
> > > mounting/umounting it.  It would be using a floppy or cd-rom just like
> > > in Windows9x.  ie: you hit the eject button on your CD-Rom & supermount
> > > will unmount the drive & allow the CD to be ejected.  This also works for
> > > Floppies & HD partitions.
> > >
> > > You need to modify your kernel & fstab file.  Mandrake has supermount
> > > built into the 2.4x kernel.  Or you can use their kernel 2.4x source, if
> > > you want to manually compile the kernel.
> > >
> > > If you want more info about it, I can post my fstab file.  It's a pain to
> > > type a supermount line manually :)
> > >
> > > -Rob
> > >
> > >
> > > > If there is a process that is currently in the directory that the drive
> is
> > > > mounted under, it cannot be unmounted.  You can use the 'fuser' program
> > > with
> > > > the -m <block device> option to find out what has the file system
> mounted.
> > > You
> > > > can probably use the -k option to kill the processes that have it open
> and
> > > then
> > > > do the unmount.
> > > >
> > > > Of course, this is a really rude thing to do to users :-)
> > > >
> > > > Have you considered using the 'supermount' system?  It will mount file
> > > systems
> > > > when you attempt to access them and unmount them when nothing is
> talking to
> > > the
> > > > file system any more.  Kinda cool for CDROM and floppy drives.
> > > >
> > > > Cheers!
> > > >
> > > > Bob
> > >
> > >
> >
> >
> > =====
> > Bob Meyer
> > Knightwing Communications, Inc.
> > 36 Cayuga Blvd
> > Depew, NY 14043
> > Phone: 716-308-8931 or 716-681-0076
> > Meyer_RM at Yahoo.com
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> >
> 
> 
> 
> Dege
> 
> Inside some of us is a thin person struggling to get out, but
> they can usually be sedated with a few pieces of chocolate cake.
> 


=====
Bob Meyer
Knightwing Communications, Inc.
36 Cayuga Blvd
Depew, NY 14043
Phone: 716-308-8931 or 716-681-0076
Meyer_RM at Yahoo.com

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
--0-1804289383-993590028=:86947
Content-Type: application/x-unknown; name=supermount
Content-Transfer-Encoding: base64
Content-Description: supermount
Content-Disposition: attachment; filename=supermount

IyEvdXNyL2Jpbi9wZXJsCiMgKGMpIDE5OTksIE1hbmRyYWtlU29mdCwgQ2ht
b3VlbCBCb3Vkam5haCA8Y2htb3VlbEBtYW5kcmFrZXNvZnQuY29tPgojIChj
KSAyMDAwLCBNYW5kcmFrZVNvZnQsIERlbmlzIEhBVkxJSyA8ZGVuaXNAbWFu
ZHJha2Vzb2Z0LmNvbT4KIyBTZWUgaHR0cDovL3d3dy5nbnUub3JnIGZvciBs
aWNlbnNlLgojIyBFbmFibGUgb3IgZGlzYWJsZSBzdXBlcm1vdW50LgojICRJ
ZDogc3VwZXJtb3VudCx2IDEuMS4xLjEgMjAwMC8wNy8zMCAwNTowNzozOCBj
aG1vdWVsIEV4cCAkCgpteSAkZmlsZSA9ICcvZXRjL2ZzdGFiJzsKbXkgJG9m
aWxlOwogIAojImJhZCIgb3IgIm5lc3Nlc2FyeSIgb3B0aW9ucyBmb3IgIm5v
cm1hbCIgYW5kICJzdXBlcm1vdW50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