We use LiveCD's alot in my line of work. Whether it be fscking file systems, recovering data from a customer to rm'd his server, etc.
I'm looking for a quick way to eject the CDROM and reboot the server.
Does anyone have any one-liners to do this or any other suggestions? Using 'eject' doesn't work most of the time, from what I've tested / used.
We're using RHEL / Cent on most of our servers if that helps :D
I don't know what distro your LiveCDs are, but I've used grml(a Knoppix variant) before and when you reboot, it ejects the CD, tells you to remove the CD and hit return to reboot. The prompt can be suppressed by passing it the "noprompt" boot parameter.
So yes it can be done. But all I know about your distro is "knoppix variant".
The eject would most likely fail if the disk is still mounted, as part of the exit sequence place the eject call after the umount.
If you have properly unmounted any storage devices you mounted. Then you could use the simple method. Hit the power button so the machine reboots, and hit the eject button before the system boots off the disk.
Another option would be to use livecd that immediately loads the image into memory instead of running from the disk.