On Monday 20 September 2004 20:50, Patrick Shanahan wrote:
* Constant Brouerius van Nidek
[09-20-04 13:39]: eject alone works also as the command looks for the devices which use eject and if the device is mounted it says it will try to umount too.
I have three devices (dvd,cdrom,ls120) and 'eject' alone will only address the first device it finds. If you only have a single removable media device, yes, 'eject' is sufficient and appropriate.
eject accepts parameters (man eject ;P <running away for shelter>) suppose /dev/hdb = dvd, /dev/hdc = cdrom, /dev/hdd = ls120; One can eject each of those with eject /dev/hdb, eject /dev/hdc, eject /dev/hdd. A great combo is: 1) eject /media/cdrom => umounts and ejects 2) replace CD/DVD 3) mount /media/cdrom => pulls in drivebay (à la eject -t) and mounts Cheers, Leen