Re: [openthinclient-user] No automatic unmount of media in (S)ATA optical drives? [SOLVED]

2011-05-04 Thread Peus, Christoph
Hi,

I figured this out for myself meanwhile. I created a commandline application 
with the following command line:

sudo sh -c 'echo 0  /proc/sys/dev/cdrom/lock;cd /usr/lib/hal;mv hal-unmount.sh 
hal-unmount.sh.otc;sed s/remove/remove -o \$ACTION = change/ 
hal-unmount.sh.otc hal-unmount.sh;chmod 755 hal-unmount.sh;echo 
SUBSYSTEM==\block\,ID_BUS==\scsi\,ACTION==\change\, 
RUN+=\/usr/lib/hal/hal-unmount.sh\ 
/etc/udev/rules.d/85-hal.rules;/etc/init.d/udev restart'

The first command (echo 0  /proc/sys/dev/cdrom/lock) is all important - it 
disables the cdrom tray locking completely, so you can eject the media while 
it's still mounted. The following commands are patches against the udev rules 
and the hal script to make the automatic unmounting of the already ejected 
media work for non-USB drives as well. It would be nice to find this patch in 
the next official otc release. Thanks.

Regards
Christoph


From: Peus, Christoph [mailto:christoph.p...@uni-wh.de]
Sent: Friday, April 29, 2011 1:43 PM
To: 'openthinclient-user@lists.sourceforge.net'
Subject: Re: [openthinclient-user] No automatic unmount of media in (S)ATA 
optical drives?

Forget about my previous statement regarding USB connected drives. It turned 
out that automatic mounting and unmounting works fine IF ONE IS NOT LOGGED ON 
TO THE CONSOLE . I did all my tests yesterday while being logged on to the 
console of the otc device (Ctrl+Alt+F1). Today I accidently noticed that 
everything works fine for an USB connected drive if I just use the gui screen 
(Alt+F7).  Weird, isn't it?

But this doesn't apply for internal (S)ATA connected drives: the disks are 
mounted automatically but cannot be ejected by pressing the eject button.   The 
script you recommended to solve that problem would have to be integrated 
somehow into the automounting/autounmounting mechanism to have it executed by 
an eject button event. Therefore I asked how this automounting/unmounting 
feature is implemented in otc.
Any idea?
Thanks!

(I recommend to put this  in the issue tracker, because a complete recycling of 
old PC Hardware to otc ThinClients wont't work if optical drives are still 
needed. There is another issue open which may be related:  
https://issues.openthinclient.org/otc/browse/SUITE-403)


Regards
Christoph


From: Peus, Christoph [mailto:christoph.p...@uni-wh.de]
Sent: Friday, April 29, 2011 9:53 AM
To: 'openthinclient-user@lists.sourceforge.net'
Subject: Re: [openthinclient-user] No automatic unmount of media in (S)ATA 
optical drives?

Thanks for the reply, but.. are you sure that your CD was mounted before you 
pressed the eject button? When I tested with an USB attached DVD-Drive the disk 
was mounted only if it was inserted at boot time - and I could not eject it by 
pressing the eject button. If I insert the disk *after* the boot process has 
finished, I can eject the disk by pressing the eject button, but this works 
only because the disk wasn't mounted at all.

With (S)ATA attached drives it looks a little bit different: it doesn't matter 
wether I insert die disk before or after boot - it is mounted automatically, 
but again - cannot be ejected by pressing the eject button.

Do you use otc version 1.0 or an older one?
Thanks!

Regards
Christoph


From: Stecher, Alexander [mailto:a.stec...@openthinclient.com]
Sent: Wednesday, April 27, 2011 11:49 PM
To: openthinclient-user@lists.sourceforge.net
Subject: Re: [openthinclient-user] No automatic unmount of media in (S)ATA 
optical drives?

Hello,

I have a DVD-Drive plugged with USB on the ThinClient, there are no problems.
I press the eject key and the CD comes out.

But to solve your problem, try to create a new application command-line with 
parameter sudo umount /dev/media/xyz
Perhaps this can solve your problem.


Regards and good luck.

Alexander Stecher
Dipl.-Ing. (BA)
Telefon: +49 711 1378636-0
Handy: +49 151 2761 2961
mailto:a.stec...@openthinclient.commailto:a.stec...@openthinclient.com

openthinclient gmbh, Heilbronner Straße 150, 70191 Stuttgart, Deutschland
Amtsgericht Stuttgart: HRB 245 177; USt-ID: DE216017092
Geschäftsführer: Alexander Stecher, Martin Kreiner
http://openthinclient.com
2011/4/27 Peus, Christoph 
christoph.p...@uni-wh.demailto:christoph.p...@uni-wh.de
Hi everybody,

I'm in the process of testing OTC 1.0 and experienced a problem with
optical media, which would be a showstopper for using OTC in our
environment: When a cdrom is inserted in a local (S)ATA optical drive,
it's mounted automatically (nice!) but cannot be ejected by the user(!).
The only chance to get the disk out of the drive seems to be a reboot of
the ThinClient.
Can you confirm this behaviour? (Is someone working on a solution
already?)
Which daemon/mechanism mounts the disk automatically when
inserted? (supermount or autofs should do the job.)

Thanks in advance!

Regards
Christoph


Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Geschäftsführung: Dipl.-Ök. Michael 

Re: [openthinclient-user] No automatic unmount of media in (S)ATA optical drives?

2011-04-29 Thread Peus, Christoph
Thanks for the reply, but.. are you sure that your CD was mounted before you 
pressed the eject button? When I tested with an USB attached DVD-Drive the disk 
was mounted only if it was inserted at boot time - and I could not eject it by 
pressing the eject button. If I insert the disk *after* the boot process has 
finished, I can eject the disk by pressing the eject button, but this works 
only because the disk wasn't mounted at all.

With (S)ATA attached drives it looks a little bit different: it doesn't matter 
wether I insert die disk before or after boot - it is mounted automatically, 
but again - cannot be ejected by pressing the eject button.

Do you use otc version 1.0 or an older one?
Thanks!

Regards
Christoph

From: Stecher, Alexander [mailto:a.stec...@openthinclient.com]
Sent: Wednesday, April 27, 2011 11:49 PM
To: openthinclient-user@lists.sourceforge.net
Subject: Re: [openthinclient-user] No automatic unmount of media in (S)ATA 
optical drives?

Hello,

I have a DVD-Drive plugged with USB on the ThinClient, there are no problems.
I press the eject key and the CD comes out.

But to solve your problem, try to create a new application command-line with 
parameter sudo umount /dev/media/xyz
Perhaps this can solve your problem.


Regards and good luck.

Alexander Stecher
Dipl.-Ing. (BA)
Telefon: +49 711 1378636-0
Handy: +49 151 2761 2961
mailto:a.stec...@openthinclient.commailto:a.stec...@openthinclient.com

openthinclient gmbh, Heilbronner Straße 150, 70191 Stuttgart, Deutschland
Amtsgericht Stuttgart: HRB 245 177; USt-ID: DE216017092
Geschäftsführer: Alexander Stecher, Martin Kreiner
http://openthinclient.com

2011/4/27 Peus, Christoph 
christoph.p...@uni-wh.demailto:christoph.p...@uni-wh.de
Hi everybody,

I'm in the process of testing OTC 1.0 and experienced a problem with
optical media, which would be a showstopper for using OTC in our
environment: When a cdrom is inserted in a local (S)ATA optical drive,
it's mounted automatically (nice!) but cannot be ejected by the user(!).
The only chance to get the disk out of the drive seems to be a reboot of
the ThinClient.
Can you confirm this behaviour? (Is someone working on a solution
already?)
Which daemon/mechanism mounts the disk automatically when
inserted? (supermount or autofs should do the job.)

Thanks in advance!

Regards
Christoph


Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Geschäftsführung: Dipl.-Ök. Michael Anders, Prof. Dr. med. Martin Butzlaff

Sitz der Gesellschaft: Witten
Handelsregister des Amtsgerichts Bochum Nr. HRB 8671
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.netmailto:openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user


Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Geschäftsführung: Dipl.-Ök. Michael Anders, Prof. Dr. med. Martin Butzlaff

Sitz der Gesellschaft: Witten
Handelsregister des Amtsgerichts Bochum Nr. HRB 8671
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user


Re: [openthinclient-user] No automatic unmount of media in (S)ATA optical drives?

2011-04-29 Thread Peus, Christoph
Forget about my previous statement regarding USB connected drives. It turned 
out that automatic mounting and unmounting works fine IF ONE IS NOT LOGGED ON 
TO THE CONSOLE . I did all my tests yesterday while being logged on to the 
console of the otc device (Ctrl+Alt+F1). Today I accidently noticed that 
everything works fine for an USB connected drive if I just use the gui screen 
(Alt+F7).  Weird, isn't it?

But this doesn't apply for internal (S)ATA connected drives: the disks are 
mounted automatically but cannot be ejected by pressing the eject button.   The 
script you recommended to solve that problem would have to be integrated 
somehow into the automounting/autounmounting mechanism to have it executed by 
an eject button event. Therefore I asked how this automounting/unmounting 
feature is implemented in otc.
Any idea?
Thanks!

(I recommend to put this  in the issue tracker, because a complete recycling of 
old PC Hardware to otc ThinClients wont't work if optical drives are still 
needed. There is another issue open which may be related:  
https://issues.openthinclient.org/otc/browse/SUITE-403)


Regards
Christoph


From: Peus, Christoph [mailto:christoph.p...@uni-wh.de]
Sent: Friday, April 29, 2011 9:53 AM
To: 'openthinclient-user@lists.sourceforge.net'
Subject: Re: [openthinclient-user] No automatic unmount of media in (S)ATA 
optical drives?

Thanks for the reply, but.. are you sure that your CD was mounted before you 
pressed the eject button? When I tested with an USB attached DVD-Drive the disk 
was mounted only if it was inserted at boot time - and I could not eject it by 
pressing the eject button. If I insert the disk *after* the boot process has 
finished, I can eject the disk by pressing the eject button, but this works 
only because the disk wasn't mounted at all.

With (S)ATA attached drives it looks a little bit different: it doesn't matter 
wether I insert die disk before or after boot - it is mounted automatically, 
but again - cannot be ejected by pressing the eject button.

Do you use otc version 1.0 or an older one?
Thanks!

Regards
Christoph


From: Stecher, Alexander [mailto:a.stec...@openthinclient.com]
Sent: Wednesday, April 27, 2011 11:49 PM
To: openthinclient-user@lists.sourceforge.net
Subject: Re: [openthinclient-user] No automatic unmount of media in (S)ATA 
optical drives?

Hello,

I have a DVD-Drive plugged with USB on the ThinClient, there are no problems.
I press the eject key and the CD comes out.

But to solve your problem, try to create a new application command-line with 
parameter sudo umount /dev/media/xyz
Perhaps this can solve your problem.


Regards and good luck.

Alexander Stecher
Dipl.-Ing. (BA)
Telefon: +49 711 1378636-0
Handy: +49 151 2761 2961
mailto:a.stec...@openthinclient.commailto:a.stec...@openthinclient.com

openthinclient gmbh, Heilbronner Straße 150, 70191 Stuttgart, Deutschland
Amtsgericht Stuttgart: HRB 245 177; USt-ID: DE216017092
Geschäftsführer: Alexander Stecher, Martin Kreiner
http://openthinclient.com
2011/4/27 Peus, Christoph 
christoph.p...@uni-wh.demailto:christoph.p...@uni-wh.de
Hi everybody,

I'm in the process of testing OTC 1.0 and experienced a problem with
optical media, which would be a showstopper for using OTC in our
environment: When a cdrom is inserted in a local (S)ATA optical drive,
it's mounted automatically (nice!) but cannot be ejected by the user(!).
The only chance to get the disk out of the drive seems to be a reboot of
the ThinClient.
Can you confirm this behaviour? (Is someone working on a solution
already?)
Which daemon/mechanism mounts the disk automatically when
inserted? (supermount or autofs should do the job.)

Thanks in advance!

Regards
Christoph


Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Geschäftsführung: Dipl.-Ök. Michael Anders, Prof. Dr. med. Martin Butzlaff

Sitz der Gesellschaft: Witten
Handelsregister des Amtsgerichts Bochum Nr. HRB 8671
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.netmailto:openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user


Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Geschäftsführung: Dipl.-Ök. Michael Anders, Prof. Dr. med. Martin Butzlaff

Sitz der Gesellschaft: Witten
Handelsregister des Amtsgerichts Bochum Nr. HRB 8671

Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Geschäftsführung: Dipl.-Ök. Michael Anders, Prof. Dr. med. Martin 

[openthinclient-user] No automatic unmount of media in (S)ATA optical drives?

2011-04-27 Thread Peus, Christoph
Hi everybody,

I'm in the process of testing OTC 1.0 and experienced a problem with
optical media, which would be a showstopper for using OTC in our
environment: When a cdrom is inserted in a local (S)ATA optical drive,
it's mounted automatically (nice!) but cannot be ejected by the user(!).
The only chance to get the disk out of the drive seems to be a reboot of
the ThinClient.
Can you confirm this behaviour? (Is someone working on a solution
already?)
Which daemon/mechanism mounts the disk automatically when
inserted? (supermount or autofs should do the job.)

Thanks in advance!

Regards
Christoph


Private Universität Witten/Herdecke gGmbH
Alfred-Herrhausen-Straße 50
D - 58448 Witten

Geschäftsführung: Dipl.-Ök. Michael Anders, Prof. Dr. med. Martin Butzlaff

Sitz der Gesellschaft: Witten
Handelsregister des Amtsgerichts Bochum Nr. HRB 8671
--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user


Re: [openthinclient-user] No automatic unmount of media in (S)ATA optical drives?

2011-04-27 Thread Stecher, Alexander
Hello,

I have a DVD-Drive plugged with USB on the ThinClient, there are no
problems.
I press the eject key and the CD comes out.

But to solve your problem, try to create a new application command-line
with parameter sudo umount /dev/media/xyz
Perhaps this can solve your problem.


Regards and good luck.

Alexander Stecher
Dipl.-Ing. (BA)
Telefon: +49 711 1378636-0
Handy: +49 151 2761 2961
mailto:a.stec...@openthinclient.com

openthinclient gmbh, Heilbronner Straße 150, 70191 Stuttgart, Deutschland
Amtsgericht Stuttgart: HRB 245 177; USt-ID: DE216017092
Geschäftsführer: Alexander Stecher, Martin Kreiner
http://openthinclient.com


2011/4/27 Peus, Christoph christoph.p...@uni-wh.de

 Hi everybody,

 I'm in the process of testing OTC 1.0 and experienced a problem with
 optical media, which would be a showstopper for using OTC in our
 environment: When a cdrom is inserted in a local (S)ATA optical drive,
 it's mounted automatically (nice!) but cannot be ejected by the user(!).
 The only chance to get the disk out of the drive seems to be a reboot of
 the ThinClient.
 Can you confirm this behaviour? (Is someone working on a solution
 already?)
 Which daemon/mechanism mounts the disk automatically when
 inserted? (supermount or autofs should do the job.)

 Thanks in advance!

 Regards
 Christoph


 Private Universität Witten/Herdecke gGmbH
 Alfred-Herrhausen-Straße 50
 D - 58448 Witten

 Geschäftsführung: Dipl.-Ök. Michael Anders, Prof. Dr. med. Martin Butzlaff

 Sitz der Gesellschaft: Witten
 Handelsregister des Amtsgerichts Bochum Nr. HRB 8671

 --
 WhatsUp Gold - Download Free Network Management Software
 The most intuitive, comprehensive, and cost-effective network
 management toolset available today.  Delivers lowest initial
 acquisition cost and overall TCO of any competing solution.
 http://p.sf.net/sfu/whatsupgold-sd
 ___
 The Open Source Thin Client Solution http://openthinclient.org
 openthinclient-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/openthinclient-user

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd___
The Open Source Thin Client Solution http://openthinclient.org
openthinclient-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openthinclient-user