how to recognise a dvd disk is r/w without seeing the dvd disk . it should be know through some techinical commands in pc.

Dani AI

Generated

Short answer: you can, but how depends on OS and drive support. As asked, the reliable way is to query the drive for the media descriptor (the optical/MMC or SCSI data the drive reports) rather than trying to guess from the filesystem. As hinted, Windows IMAPI-based tools will expose media properties; on Linux there are simple command-line utilities that show the disc "disc type" string.

Practical checks (work on most systems)

  • Linux: install dvd+rw-tools or libcdio and run a media-info tool. Typical commands:

    sudo dvd+rw-mediainfo /dev/sr0
    sudo isoinfo -d -i /dev/sr0

    Look for lines such as "Disc type:" or "DISC INFO" that say DVD+RW, DVD-R, DVD-ROM, etc. A "DVD+RW" or "DVD-RW" string means rewritable; "DVD-R" or "DVD+R" means write-once.

  • Windows: use an IMAPI-aware utility or a small program that uses the IMAPI/MMC interfaces to query the inserted medium. IMAPI is the supported Windows API for CD/DVD recorder queries (see Microsoft IMAPI documentation for the COM interfaces). Simple WMI queries (Win32_CDROMDrive) often do not report rewritability reliably.

Troubleshooting and cautions

  • Blank media sometimes reports only "blank" and will not always show RW vs R until the drive reads vendor/media descriptors; use a tool that issues MMC READ DISC INFORMATION or similar.
  • Different drives expose different detail levels; if a built-in utility shows only generic info, try a vendor/third-party tool that uses low-level MMC/SCSI commands.
  • Device path varies (Windows: D: or device handle; Linux: /dev/sr0 or /dev/cdrom).

Recommended Answers

All 2 Replies

thanks for u reply.thanks every much.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.