Hello, Is it possible for the windows boxes on our home LAN to mount and unmount the CD-Rom drive on our server......as in clicking a desktop icon? OR does it hurt to keep a CD mounted for extended periods? (as this would achieve the same thing, sort of ) I don't want to have to mount and unmount any CD's at the server, every time. The CD drive is accessable though Samba and Net Neighborhood. Oh, and yes, of course, the server is running SuSE. Hope I'm not overlooking the obvious ;-) ....Thanks, Tom -- TRBishop tb64710@alltel.net SuSE 7.3 Pro
Thomas Bishop wrote:
Hello, Is it possible for the windows boxes on our home LAN to mount and unmount the CD-Rom drive on our server......as in clicking a desktop icon? OR does it hurt to keep a CD mounted for extended periods? (as this would achieve the same thing, sort of ) I don't want to have to mount and unmount any CD's at the server, every time. The CD drive is accessable though Samba and Net Neighborhood. Oh, and yes, of course, the server is running SuSE. Hope I'm not overlooking the obvious ;-) ....Thanks, Tom
Yes, this is possible. Check out automount. There are a couple files you need to edit in /etc to get it working. It works like a charm (though it has been over a year since I got it running [6.4]). Try man automount. -- Joe & Sesil Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: www.mydestiny.net/~joe_morris Registered Linux user 231871
On Sunday 10 February 2002 07:03 pm, Joe & Sesil Morris (NTM) wrote:
Thomas Bishop wrote:
Hello, Is it possible for the windows boxes on our home LAN to mount and unmount the CD-Rom drive on our server......as in clicking a desktop icon? OR does it hurt to keep a CD mounted for extended periods? (as this would achieve the same thing, sort of ) I don't want to have to mount and unmount any CD's at the server, every time. The CD drive is accessable though Samba and Net Neighborhood. Oh, and yes, of course, the server is running SuSE. Hope I'm not overlooking the obvious ;-) ....Thanks, Tom
Yes, this is possible. Check out automount. There are a couple files you need to edit in /etc to get it working. It works like a charm (though it has been over a year since I got it running [6.4]). Try man automount.
Thanks, will do. Tom -- TRBishop tb64710@alltel.net SuSE 7.3 Pro
Thomas Bishop schrieb:
On Sunday 10 February 2002 07:03 pm, Joe & Sesil Morris (NTM) wrote:
Thomas Bishop wrote:
Hello, Is it possible for the windows boxes on our home LAN to mount and unmount the CD-Rom drive on our server......as in clicking a desktop icon? OR does it hurt to keep a CD mounted for extended periods? (as this would achieve the same thing, sort of ) I don't want to have to mount and unmount any CD's at the server, every time. The CD drive is accessable though Samba and Net Neighborhood. Oh, and yes, of course, the server is running SuSE. Hope I'm not overlooking the obvious ;-) ....Thanks, Tom
Yes, this is possible. Check out automount. There are a couple files you need to edit in /etc to get it working. It works like a charm (though it has been over a year since I got it running [6.4]). Try man automount.
Thanks, will do. Tom
Hi Tom, apart from automount, samba supports it itself. I think there is an example in the smc,conf man page. As I remember, the relevant keywords in smb.conf are "preexec" and "postexec". These are local commands issued by connecting and disconecting the share. Insert the cd to the server, connect to the share, work, disconnect and then remove the cd. Juergen -- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\
On Sun, 10 Feb 2002, Thomas Bishop wrote:
Hello, Is it possible for the windows boxes on our home LAN to mount and unmount the CD-Rom drive on our server......as in clicking a desktop icon? OR does it hurt to keep a CD mounted for extended periods? (as this would achieve the same thing, sort of ) I don't want to have to mount and unmount any CD's at the server, every time. The CD drive is accessable though Samba and Net Neighborhood. Oh, and yes, of course, the server is running SuSE. Hope I'm not overlooking the obvious ;-) ....Thanks, Tom -- TRBishop tb64710@alltel.net SuSE 7.3 Pro
Hello One solution could be a web-interface: setup a site with Apache and put there too links "Mount CD" and "Unmount CD" and then just a little bit of magic with PHP or Perl or Python that does the job. PHP: <? exec("umount /cdrom"); ?> More help? Don't hesitate to ask. Cheers, --Jyry C:-( C:-/ C========8-O C8-/ C:-(
On Sun, 10 Feb 2002, Thomas Bishop wrote:
Is it possible for the windows boxes on our home LAN to mount and unmount the CD-Rom drive on our server......as in clicking a desktop icon?
Yes, Samba allows to execute commands before and after a share has been accessed. This can be used to issue the mount command.
OR does it hurt to keep a CD mounted for extended periods? (as this would achieve the same thing, sort of )
No, that does not harm at all.
I don't want to have to mount and unmount any CD's at the server, every time. The CD drive is accessable though Samba and Net Neighborhood. Oh, and yes, of course, the server is running SuSE. Hope I'm not overlooking the obvious ;-)
Have a look at "preexec" and "postexec" in smb.conf: [SNIP] postexec (S) This option specifies a command to be run whenever the service is disconnected. It takes the usual substitutions. The command may be run as the root on some systems. An interesting example may be do unmount server resources: postexec = /etc/umount /cdrom See also preexec . Default: none (no command executed) Example: postexec = echo \"%u disconnected from %S from %m (%I)\" >> /tmp/log [SNIP] Bye, LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Deutschherrnstr. 15-19 http://www.suse.de/~grimmer/ 90429 Nuernberg, Germany To give happiness is to deserve happiness.
On Monday 11 February 2002 05:46 am, Lenz Grimmer wrote:
snip<
Have a look at "preexec" and "postexec" in smb.conf:
[SNIP] postexec (S) This option specifies a command to be run whenever the service is disconnected. It takes the usual substitutions. The command may be run as the root on some systems. An interesting example may be do unmount server resources:
postexec = /etc/umount /cdrom
See also preexec .
Default: none (no command executed)
Example: postexec = echo \"%u disconnected from %S from %m (%I)\" >> /tmp/log [SNIP]
Bye, LenZ
Thanks to all for your help. Sorry for the lag.......busy. I never realized how much Samba could do until I started wading through the docs looking for this preexec and postexec stuff...I'd never seen anything about it before. Now to put it to work. Thanks again, Tom -- TRBishop tb64710@alltel.net SuSE 7.3 Pro
participants (5)
-
Joe & Sesil Morris (NTM)
-
Juergen Braukmann
-
Jyry Kuukkanen
-
Lenz Grimmer
-
Thomas Bishop