Re: How can I programatically eject a live cd?

2005-11-13 Thread Thomas Linton
if you use CAM you could use:

# camcontrol eject [device id] [generic args]


On Sat, Nov 12, 2005 at 08:21:11PM -0800, Bill Schoolcraft wrote:
 At Sat, 12 Nov 2005 it looks like Thomas Linton composed:
 
 I believe that you can't do this because you are sitting on this CD.
 
 In general:
 
 # cdcontrol eject
 
 or with port /usr/ports/sysutils/eject just
 
 # eject
 
 Jeez, first off I didn't know this command existed for *BSD and
 then read the manpage and saw to my amazement...
 
 #
 
 AUTHOR
  Shunsuke Akiyama [EMAIL PROTECTED]
 
 HISTORY
  The eject command appeared in FreeBSD 2.X
 
 FreeBSD 5.4  Sep 24, 2000
 
 #
 
 -- 
 Bill Schoolcraft
 PO Box 210076
 San Francisco, CA 94121
 http://billschoolcraft.com
  ~
 You do best what you like most.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I programatically eject a live cd?

2005-11-12 Thread Fabian Keil
Sean Bruno [EMAIL PROTECTED] wrote:

 I was looking for an answer to this question.  Since my CD is actually
 the running file system(is mounted), I cannnot eject it while the
 system is running.
 
 So is there a way to do this that y'all have found, or do I have to
 change my CD to run from memory(RAMDISK) instead of running from the
 CD.

If you know what you're doing:
cdcontrol -f /dev/cdX eject

Fabian
-- 
http://www.fabiankeil.de/


signature.asc
Description: PGP signature


Re: How can I programatically eject a live cd?

2005-11-12 Thread Lowell Gilbert
Sean Bruno [EMAIL PROTECTED] writes:

 I was looking for an answer to this question.  Since my CD is actually
 the running file system(is mounted), I cannnot eject it while the system
 is running.
 
 So is there a way to do this that y'all have found, or do I have to
 change my CD to run from memory(RAMDISK) instead of running from the CD.

You want to eject your running root filesystem?
That's a *really* crazy idea.
Why do you want to do that?  

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I programatically eject a live cd?

2005-11-12 Thread Sean Bruno
On Sat, 2005-11-12 at 09:35 -0500, Lowell Gilbert wrote:
 Sean Bruno [EMAIL PROTECTED] writes:
 
  I was looking for an answer to this question.  Since my CD is actually
  the running file system(is mounted), I cannnot eject it while the system
  is running.
  
  So is there a way to do this that y'all have found, or do I have to
  change my CD to run from memory(RAMDISK) instead of running from the CD.
 
 You want to eject your running root filesystem?
 That's a *really* crazy idea.
 Why do you want to do that?  
 
Well, I don't want to eject my running root filesystem, but I need to
have the CD eject on a reboot/halt of the system.  

So, is there a nicer way of doing this?

Sean

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I programatically eject a live cd?

2005-11-12 Thread Bill Schoolcraft

At Sat, 12 Nov 2005 it looks like Sean Bruno composed:


On Sat, 2005-11-12 at 09:35 -0500, Lowell Gilbert wrote:

Sean Bruno [EMAIL PROTECTED] writes:


I was looking for an answer to this question.  Since my CD is actually
the running file system(is mounted), I cannnot eject it while the system
is running.

So is there a way to do this that y'all have found, or do I have to
change my CD to run from memory(RAMDISK) instead of running from the CD.


You want to eject your running root filesystem?
That's a *really* crazy idea.
Why do you want to do that?


Well, I don't want to eject my running root filesystem, but I need to
have the CD eject on a reboot/halt of the system.

So, is there a nicer way of doing this?



There is on other Unix type OS's the command eject which
will actually open the CD tray.  I use it all the time in the
server colo when there is some mislabed machines, I'll make sure
all the CDROM trays are shut, login to the machine and type
eject and the tray of the mislabed machine will pop open.

Here is some information that may or may not help you in
finding a *BSD equivalent:

#

[EMAIL PROTECTED] ~]- ldd `which eject`
libc.so.6 = /lib/libc.so.6 (0x4002c000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)

[EMAIL PROTECTED] ~]- file `which eject`
/usr/bin/eject: ELF 32-bit LSB executable, Intel 80386, version
1 (SYSV), dynamically linked (uses shared libs), not stripped

[EMAIL PROTECTED] ~]-

#

--
Bill Schoolcraft
PO Box 210076
San Francisco, CA 94121
http://billschoolcraft.com
 ~
You do best what you like most.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I programatically eject a live cd?

2005-11-12 Thread Thomas Linton
I believe that you can't do this because you are sitting on this CD.

In general:

# cdcontrol eject

or with port /usr/ports/sysutils/eject just

# eject 



On Sat, Nov 12, 2005 at 12:19:39PM -0800, Bill Schoolcraft wrote:
 At Sat, 12 Nov 2005 it looks like Sean Bruno composed:
 
 On Sat, 2005-11-12 at 09:35 -0500, Lowell Gilbert wrote:
 Sean Bruno [EMAIL PROTECTED] writes:
 
 I was looking for an answer to this question.  Since my CD is actually
 the running file system(is mounted), I cannnot eject it while the system
 is running.
 
 So is there a way to do this that y'all have found, or do I have to
 change my CD to run from memory(RAMDISK) instead of running from the CD.
 
 You want to eject your running root filesystem?
 That's a *really* crazy idea.
 Why do you want to do that?
 
 Well, I don't want to eject my running root filesystem, but I need to
 have the CD eject on a reboot/halt of the system.
 
 So, is there a nicer way of doing this?
 
 
 There is on other Unix type OS's the command eject which
 will actually open the CD tray.  I use it all the time in the
 server colo when there is some mislabed machines, I'll make sure
 all the CDROM trays are shut, login to the machine and type
 eject and the tray of the mislabed machine will pop open.
 
 Here is some information that may or may not help you in
 finding a *BSD equivalent:
 
 #
 
 [EMAIL PROTECTED] ~]- ldd `which eject`
 libc.so.6 = /lib/libc.so.6 (0x4002c000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x4000)
 
 [EMAIL PROTECTED] ~]- file `which eject`
 /usr/bin/eject: ELF 32-bit LSB executable, Intel 80386, version
 1 (SYSV), dynamically linked (uses shared libs), not stripped
 
 [EMAIL PROTECTED] ~]-
 
 #
 
 -- 
 Bill Schoolcraft
 PO Box 210076
 San Francisco, CA 94121
 http://billschoolcraft.com
  ~
 You do best what you like most.
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I programatically eject a live cd?

2005-11-12 Thread Bill Schoolcraft

At Sat, 12 Nov 2005 it looks like Thomas Linton composed:


I believe that you can't do this because you are sitting on this CD.

In general:

# cdcontrol eject

or with port /usr/ports/sysutils/eject just

# eject


Jeez, first off I didn't know this command existed for *BSD and
then read the manpage and saw to my amazement...

#

AUTHOR
 Shunsuke Akiyama [EMAIL PROTECTED]

HISTORY
 The eject command appeared in FreeBSD 2.X

FreeBSD 5.4  Sep 24, 2000

#

--
Bill Schoolcraft
PO Box 210076
San Francisco, CA 94121
http://billschoolcraft.com
 ~
You do best what you like most.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How can I programatically eject a live cd?

2005-11-11 Thread Sean Bruno
I was looking for an answer to this question.  Since my CD is actually
the running file system(is mounted), I cannnot eject it while the system
is running.

So is there a way to do this that y'all have found, or do I have to
change my CD to run from memory(RAMDISK) instead of running from the CD.

Sean

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


How can I programatically eject a live cd?

2005-10-07 Thread Philip Hallstrom

Hi all -

I've built a live CDROM based off of the cdroot package and 4.x.  It's 
designed to be popped into a machine, wipe the hard drive, install a 
custom image, and that's it.


Everything works great with one exception.

I would *love* to be able to have the CDROM automatically eject when it's 
finished (and/or shutdown).  This way a user could power on a headless 
box, pop in the cd, reboot, let it's do it's thing and know it was done 
when the CDROM ejected.


I know the drives can do it because I've seen some other CD's (most recent 
a seagate disk utility) do it.


But the closest I can come is:

cdcontrol -f acd0 eject

and then I can press the eject button and it will eject.

This is fine for me, but I don't want the people doing this to have to 
know to wait for the disk lights to stop.


Any suggestions?

Thanks!

-philip
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I programatically eject a live cd?

2005-10-07 Thread Garrett Cooper

Philip Hallstrom wrote:


Hi all -

I've built a live CDROM based off of the cdroot package and 4.x.  It's 
designed to be popped into a machine, wipe the hard drive, install a 
custom image, and that's it.


Everything works great with one exception.

I would *love* to be able to have the CDROM automatically eject when 
it's finished (and/or shutdown).  This way a user could power on a 
headless box, pop in the cd, reboot, let it's do it's thing and know 
it was done when the CDROM ejected.


I know the drives can do it because I've seen some other CD's (most 
recent a seagate disk utility) do it.


But the closest I can come is:

cdcontrol -f acd0 eject

and then I can press the eject button and it will eject.

This is fine for me, but I don't want the people doing this to have to 
know to wait for the disk lights to stop.


Any suggestions?

Thanks!

-philip


   It'd be better to shut down probably because many machines 
automatically retract the CD tray after rebooting.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How can I programatically eject a live cd?

2005-10-07 Thread Gary W. Swearingen
/usr/ports/sysutils/eject/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]