<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [ What is the best way to find whether CD is present in CD ROM or no ] in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503737#M217007</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnkCdisk&lt;BR /&gt;disk      0  0/0/1/0.1.0  sdisk CLAIMED     DEVICE       HP      DVD-ROM 304&lt;BR /&gt;                         /dev/dsk/c0t1d0   /dev/rdsk/c0t1d0&lt;BR /&gt;disk      1  0/0/1/1.2.0  sdisk CLAIMED     DEVICE       SEAGATE ST39103LC&lt;BR /&gt;                         /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0&lt;BR /&gt;disk      2  0/0/2/0.2.0  sdisk CLAIMED     DEVICE       SEAGATE ST39103LC&lt;BR /&gt;                         /dev/dsk/c2t2d0   /dev/rdsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;In my case the dvd/cdrom is c0t1d0&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;</description>
    <pubDate>Mon, 14 Mar 2005 05:46:15 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2005-03-14T05:46:15Z</dc:date>
    <item>
      <title>[ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503731#M217001</link>
      <description>Hi all ( Thanks in advance )&lt;BR /&gt;&lt;BR /&gt;What is the best way to find that cd is existing in the cdrom. Assume that i have not mouted any cd. But just put cd in to the cdrom.&lt;BR /&gt;&lt;BR /&gt;Also, is it that all the time cd will be reocgniged by c0t0d0 in /dev/dsk ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 04:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503731#M217001</guid>
      <dc:creator>madhavabk</dc:creator>
      <dc:date>2005-03-14T04:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503732#M217002</link>
      <description>Mount I think is the only way to check if there is readable CD in cdrom.&lt;BR /&gt;&lt;BR /&gt;If it's c0t0d0 now, it will always be c0t0d0 unless you change it. If you mena that on all systems it's c0t0d0, the answer is no.</description>
      <pubDate>Mon, 14 Mar 2005 04:57:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503732#M217002</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-03-14T04:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503733#M217003</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i can only think of mount command.&lt;BR /&gt;&lt;BR /&gt;to check which device file the CD-ROM belongs:&lt;BR /&gt;&lt;BR /&gt;# ioscan -funC disk&lt;BR /&gt;look for CD-ROM under description column and the device file u may use to mount and check if any CD exists&lt;BR /&gt;# mount /dev/dsk/c#t#d# /CDROM&lt;BR /&gt;&lt;BR /&gt;regards.</description>
      <pubDate>Mon, 14 Mar 2005 05:06:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503733#M217003</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-03-14T05:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503734#M217004</link>
      <description>You can also check this ejecting the CD (this will only work if the CD drive is not mounted!!)&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;&lt;BR /&gt;Eric Antunes</description>
      <pubDate>Mon, 14 Mar 2005 05:17:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503734#M217004</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-03-14T05:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503735#M217005</link>
      <description>Joseph Loo : If c0t0d0 is not CDROM on all the machines then how we should find that which one is cdrom ?&lt;BR /&gt;&lt;BR /&gt;Eric Antunes : I hope there is no eject command in HPUX. (if there ) How program will find that cd is present in CDROM by ejecting the CD ? If CD is mounted then we can simply grep for mount target in mount out put. And under DEVICE column i am not getting CD-ROM or any related words.&lt;BR /&gt;&lt;BR /&gt;So i have following doubrs with the solutions got from you. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 05:36:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503735#M217005</guid>
      <dc:creator>madhavabk</dc:creator>
      <dc:date>2005-03-14T05:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503736#M217006</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you didn't undrestood my point of view:&lt;BR /&gt;&lt;BR /&gt;- you can only eject the cd if it isn't mounted;&lt;BR /&gt;&lt;BR /&gt;- you can only mount the CD drive if there ia a valid CD in it and the drive is ok. To check if the drive is ok:&lt;BR /&gt;&lt;BR /&gt;#ioscan -fnCdisk&lt;BR /&gt;&lt;BR /&gt;Please post the ioscan results here...&lt;BR /&gt;&lt;BR /&gt;Eric</description>
      <pubDate>Mon, 14 Mar 2005 05:43:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503736#M217006</guid>
      <dc:creator>Eric Antunes</dc:creator>
      <dc:date>2005-03-14T05:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503737#M217007</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnkCdisk&lt;BR /&gt;disk      0  0/0/1/0.1.0  sdisk CLAIMED     DEVICE       HP      DVD-ROM 304&lt;BR /&gt;                         /dev/dsk/c0t1d0   /dev/rdsk/c0t1d0&lt;BR /&gt;disk      1  0/0/1/1.2.0  sdisk CLAIMED     DEVICE       SEAGATE ST39103LC&lt;BR /&gt;                         /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0&lt;BR /&gt;disk      2  0/0/2/0.2.0  sdisk CLAIMED     DEVICE       SEAGATE ST39103LC&lt;BR /&gt;                         /dev/dsk/c2t2d0   /dev/rdsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;In my case the dvd/cdrom is c0t1d0&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Mar 2005 05:46:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503737#M217007</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2005-03-14T05:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503738#M217008</link>
      <description>What about fstyp ? That will tell you if there is a mountable CD in the drive:&lt;BR /&gt;&lt;BR /&gt;fstyp /dev/dsk/c3t2d0&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 14 Mar 2005 07:01:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503738#M217008</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2005-03-14T07:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503739#M217009</link>
      <description>Use the diskinfo command.</description>
      <pubDate>Mon, 14 Mar 2005 07:31:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503739#M217009</guid>
      <dc:creator>Noel Miranda</dc:creator>
      <dc:date>2005-03-14T07:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503740#M217010</link>
      <description>Just a note: there is no eject command in HP-UX. There are postings of programs that can perform a CD eject but you must download, compile and test the program.&lt;BR /&gt; &lt;BR /&gt;The command:&lt;BR /&gt;ioscan -knfC disk&lt;BR /&gt;  &lt;BR /&gt;is the fastest way to determine where the CD drive is located, but you'll notice that all disks (not just CD drives) are listed. There is no way to filter ioscan beyond the disk class. The CD drive may be a DVD or CD-RM but this is dependent on the response from the CD itself. ioscan uses the SCSI ID command to determine the description. Note you can safely assume that the device file will be different on every machine. Many sysadmins will setup new machines by creating a /dev/rdsk/cdrom and /dev/dsk/cdrom devicefile so that they are easily identified.&lt;BR /&gt; &lt;BR /&gt;However, the diskinfo command will work and it has the benefit of the "type:" field which reports "direct access" for disks and CD-ROM for CD drives. diskinfo will be immediate or take as much as 5-10 seconds to complete depending on HP-UX revision and patches.</description>
      <pubDate>Mon, 14 Mar 2005 08:26:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503740#M217010</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-03-14T08:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503741#M217011</link>
      <description>Try doing a "diskinfo" on it.  I think that it may be the case that if there is no disk in that drive then it would return a "1"...&lt;BR /&gt;&lt;BR /&gt;I've not tested it,&lt;BR /&gt;but the following might work...&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;diskinfo /dev/dsk/cdrom&lt;BR /&gt;if [ $? -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;   echo "Error No Disk in Drive"&lt;BR /&gt;   exit 1&lt;BR /&gt;fi&lt;BR /&gt;# Continue on as if disk is in drive...</description>
      <pubDate>Mon, 14 Mar 2005 08:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503741#M217011</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-03-14T08:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: [ What is the best way to find whether CD is present in CD ROM or no ]</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503742#M217012</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Here's a small script that will find the device file for the cdrom, and mount or unmount it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 15 Mar 2005 12:02:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-best-way-to-find-whether-cd-is-present-in-cd-rom-or/m-p/3503742#M217012</guid>
      <dc:creator>Mark Ellzey</dc:creator>
      <dc:date>2005-03-15T12:02:00Z</dc:date>
    </item>
  </channel>
</rss>

