Ejecting CD/DvD drive

Discussion in 'Open Source' started by BONZI, Dec 13, 2004.

Thread Status:
Not open for further replies.
  1. BONZI

    BONZI New Member

    Joined:
    Oct 7, 2003
    Messages:
    190
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Palakkad Kerala
    My first problem was solved thankx to nixcraft. I have another problem. How can I make redhat eject the cd/dvd drive by pushing button?? At times it will be ridiculous to unmount it and then eject?? Can a tweak in fstab help to solve this problem. I tried it myself b4 but found no success :(

    Another thing just forget that redhat has an option to create a link to device (by right clicking). How can I create a link to a device? By just linking to /mnt/cdrom there will be nooption to mount and unmount.
     
  2. curvenger

    curvenger New Member

    Joined:
    Aug 12, 2004
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Aizawl
    right click the cdrom icon on the desktop and then click eject, that way it will unmount and eject the cd, about creating link to device, loggin as root, right click the folder eg: /mnt and then make link to the / (the same folder) cut that link and paste somewhere (maybe desktop)!
     
  3. OP
    OP
    BONZI

    BONZI New Member

    Joined:
    Oct 7, 2003
    Messages:
    190
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Palakkad Kerala
    Unfortunately that wasnt the answer I needed. That could probably be my mistake of explaining the problem. What I want is to open the drive by pressing the button in the drive. Regarding the second problem (which is not very important): Leave it I will find by myself(hopefully) :)
     
  4. nixcraft

    nixcraft New Member

    Joined:
    Nov 16, 2004
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    BIOS
    eject command may help you.

    eject -t will close try!
     
  5. curvenger

    curvenger New Member

    Joined:
    Aug 12, 2004
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Aizawl
    bonzi, the cd cannot be eject directly, because it should me unmounted first in order to eject it. :)
     
  6. OP
    OP
    BONZI

    BONZI New Member

    Joined:
    Oct 7, 2003
    Messages:
    190
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Palakkad Kerala
    ejecting with commands are ok but I think you can do it otherwise. I think in one version of pcq(7.1) that was possible without any commands. I dont remember exactly because I wasnt a gr8 linux fan then.
     
  7. nixcraft

    nixcraft New Member

    Joined:
    Nov 16, 2004
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    BIOS
    :p eject does both try out yourself!
    Why to type umount /mnt/cdrom;and press button or type eject after :!:
     
  8. Guest

    Guest Guest

    In linux, the cdrom device is locked by default once it is mounted. So, to eject the cd just by using button on drive, you have to remove the lock. Use the following command :

    echo "0" > /proc/sys/dev/cdrom/lock

    This command will remove the lock. Now you can eject the cdrom even if it is mounted as long as the value in /proc/sys/dev/cdrom/lock is 0. But this is not the standard way of changing the cds.
     
Thread Status:
Not open for further replies.

Share This Page