Re: 'CD server'

2007-01-01 Thread Justin C. Sherrill
On Mon, January 1, 2007 6:37 pm, Gergo Szakal wrote:

> the drives have to be shared via Samba. My main concern is the changing of
> the CDs, since there are non-geeks who just want to insert/remove/change
> CDs whenever they would like to.
> I'd like to use DragonFly for this, but first of all I would like to know
> if it's capable of this, or if I should try any other *BSD or Linux
> (2.4/2.6) instead.

You'd need to change the permissions so that non-root users could
mount/unmount the CD volumes, which is documented in the FreeBSD
FAQ/Handbook/somewhere in the mailing lists, I think.

I'd advise taking an existing system (and spare CDROMs, if handy) and
doing a test deployment first.



Re: 'CD server'

2007-01-01 Thread Matthew Dillon

:You'd need to change the permissions so that non-root users could
:mount/unmount the CD volumes, which is documented in the FreeBSD
:FAQ/Handbook/somewhere in the mailing lists, I think.
:
:I'd advise taking an existing system (and spare CDROMs, if handy) and
:doing a test deployment first.

I think there would be a bit of work involved to make it crash-free.
Like adding code that allows the CD to be force-unmounted after having
been taken out and making sure the filesystem doesn't panic when it
suddenly loses it.  Things like that.  It's certainly possible to do it.

No existing OS does a very good job at it, not even windows.

-Matt
Matthew Dillon 
<[EMAIL PROTECTED]>


RE: 'CD server'

2007-01-01 Thread Nigel Weeks

> I think there would be a bit of work involved to make it
> crash-free.
> Like adding code that allows the CD to be force-unmounted
> after having
> been taken out and making sure the filesystem doesn't
> panic when it
> suddenly loses it.  Things like that.  It's certainly
> possible to do it.
>
> No existing OS does a very good job at it, not even windows.
>
>   -Matt
>   Matthew Dillon
>   <[EMAIL PROTECTED]>
>

I did a very similar thing to this a few years back with FreeBSD.

I had two small scripts that were fired by Samba on connect/dis-connect to a
share, that mounted and dismounted a cdrom drive.

Samba usually took a minute or two before it 'disconnected' a drive, but it
worked quite nicely.

Forceful disconnects shouldn't be required if you let Samba finish with it
first, and then umount the drive.

Nige.