Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wait_cmd_sense: Input/output error #67

Open
Gooberpatrol66 opened this issue Aug 19, 2023 · 9 comments
Open

wait_cmd_sense: Input/output error #67

Gooberpatrol66 opened this issue Aug 19, 2023 · 9 comments

Comments

@Gooberpatrol66
Copy link

cdrwtool -d /dev/sr0 -q
using device /dev/sr0
7716KB internal buffer
setting write speed to 12x
Settings for /dev/sr0:
        Fixed packets, size 32
        Mode-2 disc

I'm going to do a quick setup of /dev/sr0. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now.
ENTER to continue.

Initiating quick disc blank
wait_cmd_sense: Input/output error
Command failed: a1 11 00 00 00 00 00 00 00 00 00 00 - sense 05.30.06
blank disc: Input/output error
smartctl -i /dev/sr0 -d sat
smartctl 7.3 2022-02-28 r5338 [x86_64-linux-6.1.41-gentoo-x86_64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     ATAPI   iHBS212   2
Serial Number:    2512013 226230501386
Firmware Version: HL04
Device is:        Not in smartctl database 7.3/5364
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 1.5 Gb/s
Local Time is:    Sat Aug 19 16:14:36 2023 CDT
SMART support is: Unavailable - Packet Interface Devices [this device: CD/DVD] don't support ATA SMART

Tried with a BD-R and CD-R

@pali
Copy link
Owner

pali commented Aug 19, 2023

Tried with a BD-R and CD-R

cdrwtool is for CD-RW discs only.

@pali
Copy link
Owner

pali commented Aug 19, 2023

Command failed: a1 11 00 00 00 00 00 00 00 00 00 00 - sense 05.30.06

  • command a1 11 means to do fast blank operation
  • sense 05.30.06 is return value of operation and means CANNOT FORMAT MEDIUM - INCOMPATIBLE MEDIUM

So error is correct there as optical drive can format/blank only rewritable CD medias.

@Gooberpatrol66
Copy link
Author

Oh, the man page says it works on CD-Rs

@pali
Copy link
Owner

pali commented Aug 19, 2023

Uff, maybe some of the options could be used also for CD-R (like printing track information).

But blanking media is RW operation.

@Gooberpatrol66
Copy link
Author

Does BD-RE work?

@pali
Copy link
Owner

pali commented Aug 19, 2023

BD-RE uses UDF in overwritable mode, like DVD-RAM. So formatting to UDF does not require special access to optical drive (like for CD-RW via cdrwtool) and therefore you can use any mkfs.* tool which operates directly on block device.

Unfortunately, UDF specification requires that Blu-ray must use at least UDF rev 2.50 and this UDF rev for requires for all non-recordable media to use UDF Metadata partition, which mkudffs does not support yet (issue #20).

So you can use mkudffs on BD-RE only by forcing older UDF rev 2.01, which is against UDF specification and so do not have to work with other implementations / operating systems. It works on Linux as Linux can use any UDF revision on any media type.

@Gooberpatrol66
Copy link
Author

Is it possible to format a BD-R as UDF without using cdrwtool?

@pali
Copy link
Owner

pali commented Aug 20, 2023

Recordable media types are not supported directly for writing by tools which are parted of the udftools. Just mkudffs can prepare (empty) UDF disk image for recordable media type, but for writing it to media you need to use other application.

@Gooberpatrol66
Copy link
Author

OK, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants