Exception of type 'Aaru.Devices.DeviceException' was thrown. #394

Closed
opened 2026-01-29 15:17:53 +00:00 by claunia · 4 comments
Owner

Originally created by @elperepat on GitHub (Apr 5, 2020).

Prerequisites

  • Are you running the latest version?

  • Can you reproduce the problem in the debug version?

Check and fill as appropriate:

  • I was running Aaru under Linux [5.0.0.2879]
  • ...in 64-bit

Description

All commands that deal with my DVD drive return an exception if there is a disc in the drive. When the drive is empty, I get a proper result (see at bottom)

Exact command line used:

aaru -v dev info /dev/sr0

Expected behavior:

Getting information about the drive

Actual behavior:

Exception of type 'Aaru.Devices.DeviceException' was thrown.

If command was expected to work with a device fill this out:

*-scsi:3
physical id: 5
logical name: scsi11
*-cdrom
description: DVD-RAM writer
product: DVDRAM GSA-H10N
vendor: HL-DT-ST
physical id: 0.0.0
bus info: scsi@11:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
version: JL10
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: status=nodisc

Output of command execution with debug output enabled

aaru 5.0.0.2879
Copyright © 2011-2020 Natalia Portillo

DEBUG (Device-Info command): --debug=True
DEBUG (Device-Info command): --device=/dev/sr0
DEBUG (Device-Info command): --output-prefix=
DEBUG (Device-Info command): --verbose=True
**Exception of type 'Aaru.Devices.DeviceException' was thrown.**

Result when drive is empty

aaru 5.0.0.2879
Copyright © 2011-2020 Natalia Portillo

Error 1 querying ATA PACKET IDENTIFY
Device vendor: Hitachi-LG Data Storage, Inc.
Device name: DVDRAM GSA-H10N
Device release level: JL10
Device is connected and supported.
CD-ROM/DVD/etc device
Device does not claim to comply with any SCSI ANSI standard
Device does not claim to comply with any SCSI ECMA standard
Device does not claim to comply with any SCSI ISO/IEC standard
Device is removable
Device supports setting Normal ACA
Device supports LUN hierarchical addressing
Device does not support assymetrical access
Device supports only ST clocking
Reserved bytes 74 to 95
============================================================
Offset   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000000   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
000010   00 00 00 00 00 00                                 ......

============================================================

SCSI Mode Sense Header:
	Medium is Unknown medium type

SCSI Read error recovery page for MultiMedia Devices:
	Drive will repeat read operations 19 times
Unknown recovery parameter 0x80
	Drive will repeat write operations 3 times

SCSI Flexible disk page:
	Transfer rate: 24581 kbit/s
	8 heads
	0 cylinders
	16 sectors per track
	0 bytes per sector
	Drive steps in 15000 μs
	Target shall wait 0 seconds before attempting to access the medium after motor on is asserted
	Target shall wait 0 seconds before releasing the motor on signal after becoming idle
	Drive needs to do 1 step pulses per cylinder
	Pin 34 is unconnected
	Pin 4 is unconnected
	Pin 2 is unconnected
	Pin 1 is unconnected

SCSI Caching mode page:
	Parameters can be saved
	Write-cache is enabled
	Drive does not distinguish between cached read data
	Drive does not distinguish between cached write data
	Pre-fetch will be done for READ commands of 2048 blocks or less
	A maximum of 128 blocks will be pre-fetched
	A maximum of 128 blocks will be pre-fetched even if it is commanded to pre-fetch more

SCSI CD-ROM parameters page:
	Parameters can be saved
	Drive will remain in track hold state 2 minutes after a seek or read
	Each minute has 60 seconds
	Each second has 75 frames

SCSI CD-ROM audio control parameters page:
	Drive will return from playback command immediately
	Output port 0 has channels 0 at maximum volume
	Output port 1 has channels 1 at maximum volume

Found unknown mode page 18h
SCSI Power condition page:
	Parameters can be saved
	Standby timer Z is set to 120000 ms
	Idle timer A is set to 60000 ms

SCSI Timer & Protect page:
	Parameters can be saved
	Drive will remain in same status 1 second after a seek, read or write operation


Found unknown mode page 20h
SCSI CD-ROM capabilities page:
	Drive can play audio
	Drive can read sectors in Mode 2 Form 1 format
	Drive can read sectors in Mode 2 Form 2 format
	Drive supports multi-session discs and/or Photo-CD
	Drive can read digital audio
	Drive can continue from streaming loss
	Drive supports C2 pointers
	Drive can read Media Catalogue Number
	Drive can read ISRC
	Drive uses a tray
	Drive can lock media
	Drive is not locked, media can be ejected and inserted
	Drive can eject media
	Each channel can be muted independently
	Each channel's volume can be controlled independently
	Drive supports 256 volume levels
	Drive has 2048 Kbyte of buffer
	Drive's maximum reading speed is 8467 Kbyte/sec.
	Drive's current reading speed is 8467 Kbyte/sec.
	Drive can read and write CD-R
	Drive supports reading CD-R packet media
	Drive can read and write CD-RW
	Drive can read DVD-ROM
	Drive can read and write DVD-R
	Drive can read and write DVD-RAM
	Drive's current writing speed is 8467 Kbyte/sec. in CLV mode
	Drive supports writing at 8467 Kbyte/sec. in CLV mode
	Drive supports writing at 7056 Kbyte/sec. in CLV mode
	Drive supports writing at 5645 Kbyte/sec. in CLV mode
	Drive supports writing at 4234 Kbyte/sec. in CLV mode
	Drive supports writing at 2822 Kbyte/sec. in CLV mode
	Drive supports writing at 1411 Kbyte/sec. in CLV mode
	Drive supports writing at 706 Kbyte/sec. in CLV mode
	Drive supports test writing
	Drive can read both sides of a disc
	Drive an read raw R-W subchannel from the Lead-In
	Drive supports DVD CSS and/or DVD CPPM
	Drive supports buffer under-run free recording

SCSI MMC GET CONFIGURATION Features:
MMC Supported Profiles:
	Drive supports DVD-RAM
	Drive supports DVD-R
	Drive supports sequentially recorded DVD-R DL
	Drive supports layer jump recorded DVD-R DL
	Drive supports sequentially recorded DVD-RW
	Drive supports restricted overwrite DVD-RW
	Drive supports DVD+RW
	Drive supports DVD+R
	Drive supports DVD+R DL
	Drive supports DVD-ROM
	Drive supports CD-R
	Drive supports CD-RW
	Drive supports CD-ROM
	Drive supports rewritable and removable media

MMC Core Feature:
	Drive uses ATAPI interface

MMC Morphing:
	Drive supports only polling GET EVENT STATUS NOTIFICATION

MMC Removable Medium:
	Drive uses a tray
	Drive can lock media
	Drive can eject media

MMC Write Protect:
	Drive supports set/release of PWP status

MMC Random Readable:
	Drive shall report Read/Write Error Recovery mode page
	2048 bytes per logical block

Drive claims capability to read all CD formats according to OSTA Multi-Read Specification

MMC CD Read:
	Drive supports C2 Error Pointers
	Drive can return CD-Text from Lead-In

MMC DVD Read:
	Drive can read DVD media

MMC Random Writable::
	Drive shall report Read/Write Error Recovery mode page
	2048 bytes per logical block
	16 logical blocks per media writable unit

MMC Incremental Streaming Writable:
	Drive is capable of zero loss linking

MMC Formattable:
	Drive can format media into logical blocks

MMC Hardware Defect Management:
	Drive shall be able to provide a defect-free contiguous address space
	Drive can return Spare Area Information

Drive shall have the ability to overwrite logical blocks only in fixed sets at a time

Drive can read and write DVD+RW
	Drive supports both forms of background format stopping

Drive can read and write DVD+R

MMC Rigid Restricted Overwrite:
	Drive supports the BLANK command
	Drive supports writing on an intermediate state session and quick formatting
	Drive can read Defect Status data recorded on the medium

Drive can write CDs in Track at Once Mode:
	Drive can overwrite a TAO track with another in CD-RWs
	Drive can do a test writing
	Drive supports zero loss linking
	Drive supports data block types: 0 8 9 10 11 12 13

Drive can write CDs in Session at Once and in Raw Modes:
	Drive can write user provided data in the R-W subchannels
	Drive can write CD-RWs
	Drive can do a test writing
	Drive supports zero loss linking
	Drive supports a maximum of 3072 bytes in a single cue sheet

Drive supports writing DVD-R, DVD-RW and DVD-R DL
	Drive can do a test writing
	Drive supports zero loss linking

MMC Layer Jump Recording:

Drive can write CD-RW
	Drive supports CD-RW subtypes 0 1 2 3

Drive can read and write DVD+R DL

Drive is able to perform host and drive directed power management

Drive supports S.M.A.R.T.
	Drive supports the Informational Exceptions Control mode page 1Ch

Drive has an analogue audio output
	Drive supports the SCAN command
	Drive is able to mute channels separately
	Drive supports separate volume per channel
	Drive has 257 volume levels

Drive supports Microcode Upgrade

Drive supports Timeout & Protect mode page 1Dh

Drive supports DVD CSS/CPPM version 1

MMC Real Time Streaming:
	Drive supports the block bit in the READ BUFFER CAPACITY command
	Drive supports the SET CD SPEED command
	Drive supports the Write Speed Performance Descriptor Blocks in the MMC mode page 2Ah
	Drive supports the Write Speed data of GET PERFORMANCE and the WRC field of SET STREAMING
	Drive supports stream recording

Drive serial number: AFDBA384C350

Drive supports DCB 46444300h
Drive supports DCB 53444300h
Drive supports DCB 544F4300h

Drive supports DVD CPRM version 1

Drive firmware is dated 2006-02-23 12:34:56 p.m.


Device not in database, please create a device report and attach it to a Github issue.
CD reading offset is 667 samples (2668 bytes).
Originally created by @elperepat on GitHub (Apr 5, 2020). ### Prerequisites * [x] Are you running the latest version? * [x] Can you reproduce the problem in the debug version? ### Check and fill as appropriate: * [x] I was running Aaru under Linux [5.0.0.2879] * [x] ...in 64-bit ### Description All commands that deal with my DVD drive return an exception if there is a disc in the drive. When the drive is empty, I get a proper result (see at bottom) ### Exact command line used: ` aaru -v dev info /dev/sr0` ### Expected behavior: Getting information about the drive ### Actual behavior: `Exception of type 'Aaru.Devices.DeviceException' was thrown.` ### If command was expected to work with a device fill this out: *-scsi:3 physical id: 5 logical name: scsi11 *-cdrom description: DVD-RAM writer product: DVDRAM GSA-H10N vendor: HL-DT-ST physical id: 0.0.0 bus info: scsi@11:0.0.0 logical name: /dev/cdrom logical name: /dev/cdrw logical name: /dev/dvd logical name: /dev/dvdrw logical name: /dev/sr0 version: JL10 capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram configuration: status=nodisc ### Output of command execution with debug output enabled ``` aaru 5.0.0.2879 Copyright © 2011-2020 Natalia Portillo DEBUG (Device-Info command): --debug=True DEBUG (Device-Info command): --device=/dev/sr0 DEBUG (Device-Info command): --output-prefix= DEBUG (Device-Info command): --verbose=True **Exception of type 'Aaru.Devices.DeviceException' was thrown.** ``` ### Result when drive is empty ``` aaru 5.0.0.2879 Copyright © 2011-2020 Natalia Portillo Error 1 querying ATA PACKET IDENTIFY Device vendor: Hitachi-LG Data Storage, Inc. Device name: DVDRAM GSA-H10N Device release level: JL10 Device is connected and supported. CD-ROM/DVD/etc device Device does not claim to comply with any SCSI ANSI standard Device does not claim to comply with any SCSI ECMA standard Device does not claim to comply with any SCSI ISO/IEC standard Device is removable Device supports setting Normal ACA Device supports LUN hierarchical addressing Device does not support assymetrical access Device supports only ST clocking Reserved bytes 74 to 95 ============================================================ Offset 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 000010 00 00 00 00 00 00 ...... ============================================================ SCSI Mode Sense Header: Medium is Unknown medium type SCSI Read error recovery page for MultiMedia Devices: Drive will repeat read operations 19 times Unknown recovery parameter 0x80 Drive will repeat write operations 3 times SCSI Flexible disk page: Transfer rate: 24581 kbit/s 8 heads 0 cylinders 16 sectors per track 0 bytes per sector Drive steps in 15000 μs Target shall wait 0 seconds before attempting to access the medium after motor on is asserted Target shall wait 0 seconds before releasing the motor on signal after becoming idle Drive needs to do 1 step pulses per cylinder Pin 34 is unconnected Pin 4 is unconnected Pin 2 is unconnected Pin 1 is unconnected SCSI Caching mode page: Parameters can be saved Write-cache is enabled Drive does not distinguish between cached read data Drive does not distinguish between cached write data Pre-fetch will be done for READ commands of 2048 blocks or less A maximum of 128 blocks will be pre-fetched A maximum of 128 blocks will be pre-fetched even if it is commanded to pre-fetch more SCSI CD-ROM parameters page: Parameters can be saved Drive will remain in track hold state 2 minutes after a seek or read Each minute has 60 seconds Each second has 75 frames SCSI CD-ROM audio control parameters page: Drive will return from playback command immediately Output port 0 has channels 0 at maximum volume Output port 1 has channels 1 at maximum volume Found unknown mode page 18h SCSI Power condition page: Parameters can be saved Standby timer Z is set to 120000 ms Idle timer A is set to 60000 ms SCSI Timer & Protect page: Parameters can be saved Drive will remain in same status 1 second after a seek, read or write operation Found unknown mode page 20h SCSI CD-ROM capabilities page: Drive can play audio Drive can read sectors in Mode 2 Form 1 format Drive can read sectors in Mode 2 Form 2 format Drive supports multi-session discs and/or Photo-CD Drive can read digital audio Drive can continue from streaming loss Drive supports C2 pointers Drive can read Media Catalogue Number Drive can read ISRC Drive uses a tray Drive can lock media Drive is not locked, media can be ejected and inserted Drive can eject media Each channel can be muted independently Each channel's volume can be controlled independently Drive supports 256 volume levels Drive has 2048 Kbyte of buffer Drive's maximum reading speed is 8467 Kbyte/sec. Drive's current reading speed is 8467 Kbyte/sec. Drive can read and write CD-R Drive supports reading CD-R packet media Drive can read and write CD-RW Drive can read DVD-ROM Drive can read and write DVD-R Drive can read and write DVD-RAM Drive's current writing speed is 8467 Kbyte/sec. in CLV mode Drive supports writing at 8467 Kbyte/sec. in CLV mode Drive supports writing at 7056 Kbyte/sec. in CLV mode Drive supports writing at 5645 Kbyte/sec. in CLV mode Drive supports writing at 4234 Kbyte/sec. in CLV mode Drive supports writing at 2822 Kbyte/sec. in CLV mode Drive supports writing at 1411 Kbyte/sec. in CLV mode Drive supports writing at 706 Kbyte/sec. in CLV mode Drive supports test writing Drive can read both sides of a disc Drive an read raw R-W subchannel from the Lead-In Drive supports DVD CSS and/or DVD CPPM Drive supports buffer under-run free recording SCSI MMC GET CONFIGURATION Features: MMC Supported Profiles: Drive supports DVD-RAM Drive supports DVD-R Drive supports sequentially recorded DVD-R DL Drive supports layer jump recorded DVD-R DL Drive supports sequentially recorded DVD-RW Drive supports restricted overwrite DVD-RW Drive supports DVD+RW Drive supports DVD+R Drive supports DVD+R DL Drive supports DVD-ROM Drive supports CD-R Drive supports CD-RW Drive supports CD-ROM Drive supports rewritable and removable media MMC Core Feature: Drive uses ATAPI interface MMC Morphing: Drive supports only polling GET EVENT STATUS NOTIFICATION MMC Removable Medium: Drive uses a tray Drive can lock media Drive can eject media MMC Write Protect: Drive supports set/release of PWP status MMC Random Readable: Drive shall report Read/Write Error Recovery mode page 2048 bytes per logical block Drive claims capability to read all CD formats according to OSTA Multi-Read Specification MMC CD Read: Drive supports C2 Error Pointers Drive can return CD-Text from Lead-In MMC DVD Read: Drive can read DVD media MMC Random Writable:: Drive shall report Read/Write Error Recovery mode page 2048 bytes per logical block 16 logical blocks per media writable unit MMC Incremental Streaming Writable: Drive is capable of zero loss linking MMC Formattable: Drive can format media into logical blocks MMC Hardware Defect Management: Drive shall be able to provide a defect-free contiguous address space Drive can return Spare Area Information Drive shall have the ability to overwrite logical blocks only in fixed sets at a time Drive can read and write DVD+RW Drive supports both forms of background format stopping Drive can read and write DVD+R MMC Rigid Restricted Overwrite: Drive supports the BLANK command Drive supports writing on an intermediate state session and quick formatting Drive can read Defect Status data recorded on the medium Drive can write CDs in Track at Once Mode: Drive can overwrite a TAO track with another in CD-RWs Drive can do a test writing Drive supports zero loss linking Drive supports data block types: 0 8 9 10 11 12 13 Drive can write CDs in Session at Once and in Raw Modes: Drive can write user provided data in the R-W subchannels Drive can write CD-RWs Drive can do a test writing Drive supports zero loss linking Drive supports a maximum of 3072 bytes in a single cue sheet Drive supports writing DVD-R, DVD-RW and DVD-R DL Drive can do a test writing Drive supports zero loss linking MMC Layer Jump Recording: Drive can write CD-RW Drive supports CD-RW subtypes 0 1 2 3 Drive can read and write DVD+R DL Drive is able to perform host and drive directed power management Drive supports S.M.A.R.T. Drive supports the Informational Exceptions Control mode page 1Ch Drive has an analogue audio output Drive supports the SCAN command Drive is able to mute channels separately Drive supports separate volume per channel Drive has 257 volume levels Drive supports Microcode Upgrade Drive supports Timeout & Protect mode page 1Dh Drive supports DVD CSS/CPPM version 1 MMC Real Time Streaming: Drive supports the block bit in the READ BUFFER CAPACITY command Drive supports the SET CD SPEED command Drive supports the Write Speed Performance Descriptor Blocks in the MMC mode page 2Ah Drive supports the Write Speed data of GET PERFORMANCE and the WRC field of SET STREAMING Drive supports stream recording Drive serial number: AFDBA384C350 Drive supports DCB 46444300h Drive supports DCB 53444300h Drive supports DCB 544F4300h Drive supports DVD CPRM version 1 Drive firmware is dated 2006-02-23 12:34:56 p.m. Device not in database, please create a device report and attach it to a Github issue. CD reading offset is 667 samples (2668 bytes). ```
Author
Owner

@claunia commented on GitHub (Apr 5, 2020):

When there is a disc on the drive is the disc mounted?

@claunia commented on GitHub (Apr 5, 2020): When there is a disc on the drive is the disc mounted?
Author
Owner

@elperepat commented on GitHub (Apr 5, 2020):

I didn't know I could unmount without ejecting a CD. I learn something everyday. Sorry for the newbie issue.

All is great now! I'm back to archiving old CDs! Oh, and which image format would you recommend as being the most complete for saving old PC games on CD-ROM? I know .iso doesn't save subchannels. That's why I found out about aaru. Which format should I use? .ccd and .mdf being proprietary, is there and open-source alternative to those?

Thanks!

@elperepat commented on GitHub (Apr 5, 2020): I didn't know I could unmount without ejecting a CD. I learn something everyday. Sorry for the newbie issue. All is great now! I'm back to archiving old CDs! Oh, and which image format would you recommend as being the most complete for saving old PC games on CD-ROM? I know .iso doesn't save subchannels. That's why I found out about aaru. Which format should I use? .ccd and .mdf being proprietary, is there and open-source alternative to those? Thanks!
Author
Owner

@claunia commented on GitHub (Apr 5, 2020):

the most complete one is aaruformat. it's not yet perfect (specially for some particular copy protections), and not yet supported by any emulator, but it's the most complete for archival purposes (and it's obviously opensource).

@claunia commented on GitHub (Apr 5, 2020): the most complete one is aaruformat. it's not yet perfect (specially for some particular copy protections), and not yet supported by any emulator, but it's the most complete for archival purposes (and it's obviously opensource).
Author
Owner

@claunia commented on GitHub (Apr 5, 2020):

I'm closing the issue as fixed.

@claunia commented on GitHub (Apr 5, 2020): I'm closing the issue as fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: aaru-dps/Aaru-aaru-dps#394