Opening/closing cd tray using terminal...

So I guess “drutil tray open/close” only works on G4s & G5s.
I had some fun with it at work today but when I got home
realized it doesn't work for my B&W G3.
Is there another command that'll open/close the tray or
am I outta luck on my G3?
Thanks in advance!
Mike

You might need to use the command, disktool, instead.

Similar Messages

  • Opening/closing cd tray...

    So I guess “drutil tray open/close” only works on G4s & G5s.
    I had some fun with it at work today but when I got home
    realized it doesn't work for my B&W G3.
    Is there another command that'll open/close the tray or
    am I outta luck on my G3?
    Thanks in advance!
    Mike

    Thanks folks - but none of that worked.
    I don't have a cd stuck in there or anything.
    I can open it via terminal with a cd in the tray but
    can't open/close an empty tray.
    I'm just trying to do this in terminal for fun.
    F12 does work but I'm trying to figure out
    the unix command to mess with the wife's head
    while I'm at work! hehe
    Thanks again!
    Mike
    I've read somewhere that the G4 & G5 have a “powered”
    cd drive??? - wouldn't all of them be powered???

  • How do I open the CD tray using Windows Keyboard

    How do I open the CD tray of my eMac using a Windows Keyboard that does not have a eject button? If I use uControl Program to switch the alt and Window Keys (the option and ⌘ Keys) I can't use the iJect Program.

    shulmice,
    While not a perfect answer since you have to be logged in before you can open the tray, you can put an eject icon in the menu bar by double-clicking on ~/System/ Library/ CoreServices/ Menu Extras/ Eject.menu

  • Closing cd tray using java application

    sir,
    i want to close the cd tray using java program.i opened it using a vbs file which can be called through Runtime.getRuntime().exec("WScript <filename.vbs> ");
    But i want to know how can close this cd tray using java programming...
    the vbs file cotains the code for opening as
    CreateObject(\"Shell.Application\").NameSpace(17).ParseName(\"g\" & \":\\\").InvokeVerb(\"e&ject\")");
    Now i want to close the cd tray using a vbscript or through any other method which can be implemented in java..plz help me...........

    You can not do it directly, it would have to be via Runtime.exec, or JNI.
    As to how to do it via VBScript, this would not be the best forum to ask on. I'm sure Google will tell you if you ask it nicely.

  • Opening Closing CD Tray without Apple Keyboard

    Hello, this is a simple question but I can't seem to find the answer. I switched to a Logitech G11 Keyboard for using in MSFT XP(bootcamp). I can open the tray by using the iTunes eject button. I have no way to close it except to manually push it in. Is there a key or macro I could use to open and close the cd tray?
    I feel like a rookie about now. Thanks in advance for you help. Mac's are awesome!

    If the keyboard doesn't have the Eject key, F12 should work if you hold it for a few seconds. You can also add Eject to the menu bar by double-clicking:
    /System/Library/CoreServices/Menu Extras/Eject.menu

  • Open CD tray using JNA in Java

    I know this is about JNA and not JNI, but I couldn't find a better forum to place this. And since JNA builds upon JNI, I thought I would give it a try here.
    I was looking for a while to figure out how to open the CD tray using Java on Windows. After a while I came up with this solution:
    1. Download the jna library (jna.rar) from [https://jna.dev.java.net/|https://jna.dev.java.net/]
    2. Add this to your project (in NetBeans right click the Libraries folder in the Project view and click Add JAR/Folder, then locate the jna.jar file and add this).
    3. Then, make a new Java class and name it WinMM.java, and add the following code to that file
    import com.sun.jna.Library;
    import com.sun.jna.Native;
    interface WinMM extends Library { /* We'll make a new library */
        WinMM INSTANCE = (WinMM) Native.loadLibrary(("winmm"), WinMM.class); //Create the library from the winmm.dll file
        long mciSendStringA(String lpstrCommand, String lpstrReturnString, long uReturnLength, long hwndCallback); //Create the function we need to use to open the CD tray
    }4. Now you can add the following code into a button event in another class in your app to open the CD tray:
    WinMM.INSTANCE.mciSendStringA("set CDAudio door open", null, 0, 0);5. Or to close the tray:
    WinMM.INSTANCE.mciSendStringA("set CDAudio door closed", null, 0, 0);6. A simple app, which opens and closes the CD tray, would look like this:
    public class Main {
         * @param args the command line arguments
        public static void main(String[] args) {
        WinMM.INSTANCE.mciSendStringA("set CDAudio door open", null, 0, 0); //Open tray
        WinMM.INSTANCE.mciSendStringA("set CDAudio door closed", null, 0, 0); //Close tray
    }I hope this will save someone some hours of googling. And if you really don't want to use JNA, there is a solution in [this thread|http://forum.java.sun.com/thread.jspa?threadID=566946&messageID=4103195] which might work just as well. I haven't tested it though.

    Hi Svenni, thanks for your wonderful post! If you don't mind, I have a few questions on this. Plus, if you are feeling generous, then perhaps you could even advise me on another related topic.
    To start, I set up this WinMM library exactly as you prescribed, but it doesn't seem to work for me. I think I am doing everything correct, as Netbeans didn't complain about me using any
    of the classes in the jna.jar file. Everything compiles just fine, so I think I am calling everything correctly.
    I thought that maybe my drive isn't being acknowledged as "cdaudio", and my goal isn't to open the drive anyways. So, I found the list of MCI commands here:
    [MCI commands|http://msdn.microsoft.com/en-us/library/ms712587(VS.85).aspx]
    And tried to do this:
    WinMM.INSTANCE.mciSendStringA("set waveaudio audio all off", null, 0, 0);Which it seems would deactivate all audio on my system, but it does not. Unfortunately, there are no errors being thrown by doing any of this, so I really don't know where to look.
    What I am trying to accomplish is to gain control of the analog volume controls. The Java Sound API apparently used to support this, but it does not seem to anymore.
    I can create Source and Target data lines, and read and write to them with no problems, but for some reason I am not able to get ANY controls on any line! It does seem to
    be the consensus that you can't control the analog mixer from Java, and that's why I have been researching other avenues. This has been one of them, but I just can't seem to get
    it to work. I think if I could, then my problems may be solved. Well, all but the problem that the MCI command strings don't seem to have support for mute/unmute, but I may have to
    deal with that seperately. In my app at the moment, I basically shell execute "sysvol32.exe -R" and leave it up to my user to set the recording level, but I'd really like to manage that through
    software.
    Any suggestions?

  • Can't format external HDD using terminal: Error: -69877: Couldn't open device

    Disk Utility won't format / erase Seagate Barracuda 2TB (ST2000DM001) - it is an internal drive but I connected it using a docking station via USB. The disk is brand new and unformatted. System indicates that it is S.M.A.R.T incompatible
    When trying to erase the disk, I get error message "disk / link could not be found / opened".
    I tried using terminal "diskutil eraseDisk HFS+ newdisk /dev/disk3" but I get this message:
    Started erase on disk3
    Unmounting disk
    Error: -69877: Couldn't open device
    Any way I could force format the disk?

    Thank you @MrHofman. I had a setup with 2 dock stations and 2 HDDs (my TimeCapsule had crashed and I needed to recover its content disassembling the "box"). I disconnected everything. I restarted the computer., I swithched the USB ports in which I had connected the dock stations; I swithched the HDDs from dock stations, and voilà, the system allowed me to format the "recovery" HDD. Sometimes the "simplest" solutions work...
    @Linc Davis: prior to the fix described above, when trying to partition, same thing would occur : "can't open link / disk" error message. But now it seems to be working fine. Thank you anyway!

  • How do you open the DVD tray on a K430 without using Windows Explorer?

    How do you open the DVD tray on a K430 without using Windows Explorer? I can't find a button on or below the door.  Am I missing something?  Additionally, will the K430 boot from a DVD/CD if it finds one in the DVD tray instead of the hard disk?  Please help. Thanks. 
    Solved!
    Go to Solution.

    hi penguin247,
    Regarding your questions:
    1. Can you try to press the eject symbol on the DVD bay and observe if the DVD tray comes out.
    Link to picture
    2. By default, the HDD is set as the first boot device and the ODD second on the K430. You will need to change the boot order or continuously tap F12 during POST to boot from the ODD (assuming you have a bootable media inserted).
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How come i can't open the sim tray even if i use the small pin?

    how come i can't open the sim tray even if i use the small pin?

    Press firmly and push either the sim eject tool or a small paperclip straight in until the tray pops out.
    If that doesn't work make an appointment at an Apple store.

  • Cannot open any folders within thunderbird or send unsent messages after computer (ubuntu) closed suddenly whilst using programme

    I use ubuntu. The computer ran out of battery power and closed whilst I was using thunderbird. On restarting thunderbird later, I found that I could not open any folders or send any unsent messages. When I close the programme, I cannot restart it because it says thunderbird is already open, but if I use killall -9 thunderbird I am told there are no thunderbird processes running. I've checked my profile and there is no lock file or parentlock file. Someone suggest deleting the global messages database, but this hasn't helped at all.
    If I am slow responding to any questions, please be patient, tonight is my last night with a decentinternet connection - before returning to my rural African home, where we get download speeds of 15kb/s on a good day.
    Thanks,
    Karen

    Do you run some sort of anti-virus software on the Ubuntu computer?
    Do you have a backup of your profile folder? If not, now is a good time to create one.
    https://support.mozilla.org/en-US/kb/profiles-tb#w_backing-up-a-profile
    There might be some sort of corruption in connection with your Inbox folder.
    Try to rebuild the index file within Thunderbird:
    Right click on Inbox in Thunderbird, select Properties, and then press the Rebuild Index button.

  • Iogear and tiger, can not open the cd tray

    I have the iogear miniview that was working great with my old g4 and xp box, but now I have a g5...great of course, and it does work well, I can see my USB drives, etc.
    BUT..... when I try to open the cd tray with the keyboard arrow, it doesn't work. I have to plug my apple keyboard directly into the computer to get it to open the tray.
    Not the worse problem I've encountered, but I would hope there is a work aorund, anyone know?
    thanks!
    G5   Mac OS X (10.4.2)  

    Try "Terminal" found in Utilities. Type in at the prompt <man drutil> (without the chevrons). This will list a set of usefull commands for intracting with cd/dvd drives. The one to try for opening the tray ( or ejecting a disk from a slot drive which of course has no tray) is <drutil tray open>.
    I use laptops and found this (drutil tray eject) to get a disk out of the unfamiliar G5 of a friend before we found the
    "eject" key on the keyboard.
    Have also found <drutil getconfig> helpful to get information on a problematical dvd writer.
    I personally keep "Terminal" to my admin accounts because of its danger potentials.

  • Kodi don't open cd-rom tray

    I prefer open a new thread even if in long far 2012 https://bbs.archlinux.org/viewtopic.php?id=136711 bagheera said:
    bagheera wrote:
    I'm building htpc with arch and xbmc. Unfortunatly, xbmc can't eject cdrom tray. It can't be done even outside xbmc. I can't use button on device, even if media present on device is not mounted. Button on device is working just fine, if no media is present.
    eject command is working.
    [xbmc@mediacenter ~]$ eject -v
    eject: using default device `sr0'
    eject: device name is `sr0'
    eject: expanded name is `/dev/sr0'
    eject: `/dev/sr0' is not mounted
    eject: `/dev/sr0' is not a mount point
    eject: checking if device "/dev/sr0" has a removable or hotpluggable flag
    eject: `/dev/sr0' is not a multipartition device
    eject: trying to eject `/dev/sr0' using CD-ROM eject command
    eject: unlocking tray using CDROM_LOCKDOOR ioctl
    eject: CD-ROM eject command succeeded
    [xbmc@mediacenter ~]$
    How to configure system to be able to eject cd tray if inserted media is not mounted?
    It is unacceptable state for that machine, cuz xbmc supposed to be running only xbmc with rf remote unit.
    Hello everybody.
    Now I have the same issue of bagheera and I'm not able to sleep from 3 days
    My cdrom is /dev/sr0
    With eject command I'm able to open tray from root and from standard user. In Kodi the eject botton or Open/Close selection no have success.
    I tried to change my udev rules: I created cat /etc/udev/rules.d/60-cdrom_id.rules with this:
    ACTION=="remove", GOTO="cdrom_end"
    SUBSYSTEM!="block", GOTO="cdrom_end"
    KERNEL!="sr[0-9]*|xvd*", GOTO="cdrom_end"
    ENV{DEVTYPE}!="disk", GOTO="cdrom_end"
    # unconditionally tag device as CDROM
    KERNEL=="sr[0-9]*", ENV{ID_CDROM}="1"
    # media eject button pressed
    ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"
    # import device and media properties and lock tray to
    # enable the receiving of media eject button events
    IMPORT{program}="cdrom_id $devnode"
    KERNEL=="sr0", SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
    LABEL="cdrom_end"
    but never changed.
    I tried modify from 1 to 0 this:
    echo "0" > /proc/sys/dev/cdrom/lock
    but never changed.
    I'm looking for others solutions to my issue in internet but I'm very unlucky!!!
    Thank you everybody wants to give me some help... to sleep tonight 

    I have an update to this issue.
    1. I insert a cd in the player
    2. I play it
    3. I open a terminal and umount /dev/sr0 (root and non-root users can do it)
    4. I select open / close tray in kodi and it works like a charm
    Why a standard user can umount my device and kodi can't do it?

  • GL account opening/closing balances by day

    Hi All.
    I wish to list day by day opening and closing balances of G/L account by restricting the result to a time interval.
    Anyone know how to write the query for G/L account opening & closing balances by day?
    I found this in the forum and modify it to below:
    declare @fr char(10)
    declare @to char(10)
    set @fr=convert (char(10),[%0],20)
    set @to=convert (char(10),[%1],20)
    declare @PrCl dec(19,6)
    declare @de dec(19,6)
    declare @cr dec(19,6)
    declare @acc char(20)
    declare @Pracc char(20)
    Create table #W
      (M char(10), Acc char(20), Me char(100), Tid char(10), Br char(10), TT char(30), Op dec(19,6),De dec(19,6),Cr dec(19,6),Cl dec(19,6) )
    Insert into #W (M,Acc,Me,Tid,Br,TT,Op,De,Cr,Cl)
    SELECT convert (char(10),T1.[RefDate],20)Mo, T1.[Account],T0.Memo, T0.TransId, T0.BaseRef, CASE
    WHEN T0.TransType = 13 THEN 'AR Inv'
    WHEN T0.TransType = 14 THEN 'AR CN'
    WHEN T0.TransType = 18 THEN 'AP Inv'
    WHEN T0.TransType = 19 THEN 'AP CN'
    WHEN T0.TransType = 24 THEN 'Incoming Payment'
    WHEN T0.TransType = 30 THEN 'JE'
    WHEN T0.TransType = 46 THEN 'Outgoing Payment'
    ELSE 'Other'
    END AS 'Trans Type',
      0,T1.[Debit] De , T1.[Credit] Cr,0
    FROM OJDT T0 INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
    Group by T1.[Account],convert (char(10),T1.[RefDate],20),T0.Memo, T0.TransId, T0.BaseRef, T0.TransType,  T1.Debit, T1.Credit
    Order By T1.[Account],convert (char(10),T1.[RefDate],20)
    Declare cu cursor for
    Select acc,de,cr from #W
      for update
    set @PrAcc=''
    Open cu
    Fetch next from cu into @acc,@de,@cr
    While @@FETCH_STATUS = 0
    Begin
    If @acc!=@PrAcc set @PrCl=0
    Update #W
       set op=@PrCl,
           cl=@PrCl-@Cr+@de
      where current of cu
    set @PrCl=@PrCl-@Cr+@de
    set @PrAcc=@acc
    Fetch next from cu into @acc,@de,@cr
    End
    deallocate cu
    Select * from #w
    Where M between @fr and @to
    Drop table #W
    but some of the rows are missing from the result. e.g. row with the same value of debit/credit ( same TransId and BaseRef) will come out once only in the result.
    Please guide me on the above issue.
    Thanks & Best Regards,
    Leng

    Hi,
    You have to make use of many tables for this purpose.
    1. You have to claculate the previuos period and finscal year for the given date..
    2. You have to calculate the G/L balances for this period for the given G/L account from table GLT0.(You can use some of the standard function modules for the same)
    3. You have get the line items from the various tables like BSIS,BSAS,BSIK, BASK, BSID and BSAD for the dates from the begining of the month to the given date-1. sum upthis amount with the amount retrieved from step 2 .This will be the opening balance for the given date.
    4.retrieve the data from he same tables like step 3 for the given date. This will the transactions of the given date.
    5. sum up  the amounts from step 4 with step 3. this will be the closing balance for that date.
    let me know id you want any further info..
    Reward the points if i answered your question..

  • Opening & Closing balances of Vendor

    Hi Experts,
    I am doing a report where in i need to get the opening & closing balances for Vendor(s). I am using BSIK & BSAK tables. Are there any more tables involved and how do i carry out the calculations?
    Please help.
    Thanks
    Dany

    hi Dn,
    That would suffice for your requirement .
    Regards,
    Santosh

  • Opening & closing balances for Vendor

    Hi Experts,
    I am doing a report where in i need to get the opening & closing balances for Vendor(s). I am using BSIK & BSAK tables. Are there any more tables involved and how do i carry out the calculations?
    Please help.
    Thanks
    Dany

    Hi,
    There are various t. code to check line items for vendor like: S_ALR_87012103 but Any table is not helping to check opening/closeing balance for vendor.
    Table BSIK and BSAK are having are records for open items and close items for vendor and system calculate the balance by using these tables.
    Regards,
    Vinod

Maybe you are looking for

  • HDMI cable with Mosh MiniDisplay port

    Hello, I got a Mosh mini display and a HDMI cable, and even though the image works fine. There is no sound. I thought HDMI cable transmit sound. Do I need another cable? Is there a Mosh Mini display that plugs to both my sound and my Thunderbolt port

  • Do you have a Win7 GE70-0ND? Would like your help!

    Hi folks Does anyone here have a GE70-0ND which originally shipped with Windows 7? If so, could you provide me with a dump of the ACPI DSDT table? This can be done using Everst Lavalys (After you install it and run, right click on the bottom status b

  • Payment Card Functionality

    Hello all, I need some documentations on Payment Card Functionality in Travel management in SAP. Is there any specific procedure for country specific. If any do let me know that. Appreciate with point on quick response. Please need this on an urgency

  • Bug in Flex transition?

    Hi, I have problem while adding TabNavigator to the UI. Basically if I specify the TabNavigator and the children inside the main MXML, the Transition will be able to display it properly during state transition. However if I create another MXML compon

  • Oracle Collections

    Hi, We have a requirement to build a procedure: The procedure should be capable of the following: I procedure will accept certain input parameters (Example: 4 Input parameteres). The input varables should be capable of holding more than one value. Th