Re: command to eject a CD

paul beard <[email protected]> Sun, 11 Sep 2005 09:17:23 -0700
Newsgroups gmane.os.opendarwin.general
Message-ID <[email protected]>
On Sep 11, 2005, at 5:35 AM, [email protected] wrote:

>  I have no eject button on the machine or on the keyboard, so the
> only way I found to eject a CD is rebooting on Linux or macos9,  
> which is not
> very convenient.

diskutil is a handy but little-known app.

Disk Utility Tool
Utility to manage local disks and volumes.
Most options require root access to the device

Usage:  diskutil <verb> <options>
      <verb> is one of the following:
      list                  (List the partitions of a disk)
      information | info    (Get information on a disk or volume)

      unmount               (Unmount a single volume)
      unmountDisk           (Unmount an entire disk (all volumes))
      eject                 (Eject a disk)
      mount                 (Mount a single volume)
      mountDisk             (Mount an entire disk (all mountable  
volumes))
      rename                (Rename a volume)

      enableJournal         (Enable HFS+ journaling on a mounted HFS+  
volume)
      disableJournal        (Disable HFS+ journaling on a mounted HFS 
+ volume)

      verifyVolume          (Verify the structure of a volume)
      repairVolume          (Repair the structure of a volume)

      verifyPermissions     (Verify the permissions of a volume)
      repairPermissions     (Repair the permissions of a volume)
      repairOS9Permissions  (Repair the permissions for the current
                                 Classic boot volume)

      eraseDisk             (Erase an existing disk, removing all  
volumes)
      eraseVolume           (Erase an existing volume)
      reformat              (Reformat an existing volume)
      eraseOptical          (Erase an optical media (CD/RW, DVD/RW,  
etc.))
      zeroDisk              (Erase a disk, writing zeros to the media)
      randomDisk            (Erase a disk, writing random data to the  
media)
      secureErase           (Securely erase a disk or freespace on a  
volume)

      partitionDisk         ((re)Partition a disk, removing all volumes)

      createRAID            (Create a RAID set on multiple disks)
      destroyRAID           (Destroy an existing RAID set)
      checkRAID             (Check a RAID set for errors)
      enableRAID            (Convert a disk to a degraded RAID mirror  
set)
      convertRAID           (Convert a RAID 1.x (pre-Tiger) to a RAID  
2.x (Tiger))
      updateRAID            (Update the settings of an existing RAID)
      addToRAID             (Add a spare or member disk to an  
existing RAID)
      removeFromRAID        (Remove a spare or member disk from an  
existing RAID)
      repairMirror          (Repair a damaged RAID mirror set)

      diskutil <verb> with no options will provide help on that verb

--
Paul Beard
contact info: www.paulbeard.org/paulbeard.vcf

Are you trying to win an argument or solve a problem?
PGP.sig (application/pgp-signature, 186 B) - not displayed