Questions tagged [optical-drive]

13 questions
7
votes
7 answers

Recovery from optical media ignoring read errors

I have backups of files archived in optical media (CDs and DVDs). These all have par2 recovery files, stored on separate media. Even in cases where there are no par2 files, minor errors when reading on one optical drive can be read fine on another…
tzot
  • 92,761
  • 29
  • 141
  • 204
5
votes
5 answers

What approach works best for quickly reading files off of optical drives?

When reading files off of a hard drive, mmap is generally regarded as a good way to quickly get data into memory. When working with optical drives, accesses take more time and you have a higher latency to worry about. What approach/abstraction do…
spate
  • 386
  • 2
  • 5
4
votes
1 answer

Run apple script after mac resumes from sleep mode

I want my macbook to run a script each time it resumes from sleep mode. My code is extremely simple: tell application "Finder" if exists (disk "HDD") then do shell script "diskutil eject HDD" else do shell script…
WYSIWYG
  • 137
  • 2
  • 2
  • 7
3
votes
1 answer

Vendor-specific SCSI commands reference for optical drives

I'm looking for references of vendor-specific SCSI commands. I'm mostly concerned about the following ones : 0xD4 0xD5 0xD8 Based on what I know already, those commands are some "special" read commands used on some Plextor drives. However, I was…
Daniel Kamil Kozar
  • 18,476
  • 5
  • 50
  • 64
3
votes
1 answer

DVD or CD Player?

I want to know if my player is a DVD or CD Player, etc ... I tried : SELECT Drive, MediaType, Caption FROM Win32_CDROMDrive MediaType doesn't work on XP, and not very well on Seven. I tried on a computer (with Windows 7) with 1 player (Cd…
Kariboo
  • 45
  • 10
2
votes
0 answers

How to determine capacity of blank inserted burnable optical media (CD, DVD, Blu-Ray disc) from Windows command line or batch?

Is there a way to determine the type and size of blank inserted burnable media from Windows command prompt / batch file? I know with hard disk / SSD I can use: WMIC logicaldisk get deviceid, size, freespace and extract information I need. But for…
HTWingNut
  • 213
  • 1
  • 7
2
votes
0 answers

How to tell if an optical drive has ejected

I am trying to eject an optical disc on a Windows PC connected to a robotic disc changer. I have the following powershell script which works most of the time: $path=$args[0] $sh = New-Object -Comobject "Shell.Application" $sh.Namespace(17).Items() |…
Nick C
  • 319
  • 8
  • 23
1
vote
1 answer

Allow Windows RDP users to access removable media

I am trying to configure Windows 10 with PowerShell. To enable access to optical drives when logged on via RDP (Remote Desktop Protocol) I use the following code: Function EnableMediaBurningDevices { Write-Output "Enabling media burning…
Zweikeks
  • 300
  • 1
  • 11
1
vote
1 answer

Eject disk if inserted media is blank with applescript

I am hoping to create a custom applescript that will automatically eject my optical drive if the inserted cd is blank. I'm new to applescripts, and would greatly appreciate some input on how to find the answer. I've currently created the array set…
zhwatts
  • 84
  • 1
  • 11
0
votes
2 answers

How can I programmatically determine the capabilities of an optical drive in Win32

I'm trying to create a deployment tool that will install software based on the hardware found on a system. I'd like the tool to be able to determine if the optical drive is a writer (to determine if burning software sould be installed) or can read…
None
0
votes
1 answer

How does sectors, track are identified on disk and CD/DVD?

I was writing some assembly BIOS code and in general we use interrupt to access disk functionality. We give commands like seek to this sector read bytes etc etc. but how does disk knows whether it is first sector and similarly how does cd/dvd…
Rahul
  • 47
  • 4
0
votes
1 answer

Glan polarizer, field of view

Consider a Glan polarizer with air between the two prisms. The prism angle is 39° (I mean the angle between the surface where ligh incide and the interface with air) and the indices of refraction for the ordinary and extraordinary light are 1.6584…
Daniele Peruzzini
  • 101
  • 1
  • 1
  • 4
-1
votes
1 answer

Where can I find the set of exit codes that may be returned by dvd+rw-mediainfo

Running on redhat 7.9. I will be using dvd+rw-mediainfo wrapped by either ProcBuilder from apache or the ProcessBuilder from java 11 to query the state of media inserted into an optical drive. I'd like information about the possible exit values…
Jeff Gaer
  • 351
  • 3
  • 21