Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wodim "Cannot open SCSI driver!"

177 views
Skip to first unread message

Emanuel Berg

unread,
Jan 22, 2016, 3:30:06 PM1/22/16
to
When I try to burn with wodim, it says

Errno: 5 (Input/output error), test unit ready
scsi sendcmd: no error

and

$ wodim --devices

I get "Cannot open SCSI driver!"

Ideas?

--
underground experts united
http://user.it.uu.se/~embe8573

Thomas Schmitt

unread,
Jan 22, 2016, 4:20:06 PM1/22/16
to
Hi,

Emanuel Berg wrote:
> When I try to burn with wodim, it says
> Errno: 5 (Input/output error), test unit ready
> scsi sendcmd: no error

We will have to dig deeper to untangle this message.


But first i need to send a few complaints to heaven:

> $ wodim --devices
> I get "Cannot open SCSI driver!"

This i can reproduce on Jessie.

wodim: No such file or directory.
Cannot open SCSI driver!
For possible targets try 'wodim --devices' or 'wodim -scanbus'.

wodim -scanbus does not work either.
(How can it be that unchanged software shows such signs of rot ?)

Funnily, it can operate single drives.
$ wodim -v dev=/dev/sr4 -inq
...
Linux sg driver version: 3.5.27
Wodim version: 1.1.11
...
Device seems to be: Generic mmc2 DVD-R/DVD-RW.

(Well, it is a MMC-5 Blu-ray drive.)

-------------------------------------------------------------

Now for the burn problem.

In order to learn more about the "test unit ready" error, please
repeat the wodim run with additional option -V and catch the
many messages in file /tmp/wodim_log:

wodim -V ...your.wodim.options... 2>&1 | tee -i /tmp/wodim_log

Send the file /tmp/wodim_log to me in private. I will then post
what i can learn from it.

What wodim options did you use, exactly ?

If it was for a pure data or audio CD, then you may try cdrskin
instead of wodim. It uses libburn, as do Xfburn, Brasero, and xorriso.

cdrskin ...your.wodim.options...


Have a nice day :)

Thomas

Thomas Schmitt

unread,
Jan 22, 2016, 4:50:06 PM1/22/16
to
Hi,

Emanuel Berg wrote:
> > $ wodim --devices
> > I get "Cannot open SCSI driver!"

strace reveils that this confusing message comes from the total
lack of /dev/scd* and /dev/hd* device files or links.

I can fix it on my Jessie by

for i in 0 1 2 3 4 5
do
test -e /dev/sr"$i" && ln -s /dev/sr"$i" /dev/scd"$i"
done

wodim --devices

This yields

wodim: Overview of accessible drives (5 found) :
-------------------------------------------------------------------------
0 dev='/dev/scd0' rwrw-- : 'HL-DT-ST' 'BDDVDRW GGC-H20L'
1 dev='/dev/scd1' rwrw-- : 'HL-DT-ST' 'DVDRAM GH24NSC0'
2 dev='/dev/scd2' rwrw-- : 'HL-DT-ST' 'BD-RE GGW-H20L'
3 dev='/dev/scd3' rwrw-- : 'Optiarc' 'BD RW BD-5300S'
4 dev='/dev/scd4' rwrw-- : 'HL-DT-ST' 'BD-RE BH16NS40'
-------------------------------------------------------------------------

To Steve McIntyre and Michael Biebl:
Is there a chance to establish some udev rule to create /dev/scd*
links ?

Emanuel Berg

unread,
Jan 22, 2016, 10:10:06 PM1/22/16
to
"Thomas Schmitt" <scdb...@gmx.net> writes:

> wodim -V ...your.wodim.options... 2>&1 | tee -i
> /tmp/wodim_log

http://user.it.uu.se/~embe8573/wodim_log

> What wodim options did you use, exactly ?

zsh: http://user.it.uu.se/~embe8573/conf/.zsh/dvd

burn-iso-to-cd () {
local iso=$1
wodim -v dev=$DVD -eject -sao $iso
}

burn-iso-to-cd-debug () {
local iso=$1
wodim -V dev=$DVD -eject -sao $iso 2>&1 | tee -i /tmp/wodim_log
}

DVD is

/dev/sr0

> If it was for a pure data or audio CD

The disc is a CD-R and the file is an ISO, namely

debian-8.2.0-i386-xfce-CD-1.iso

> then you may try cdrskin instead of wodim. It uses
> libburn, as do Xfburn, Brasero, and xorriso.

Brasero says

Please replace the disc with a supported CD or DVD.

According to

$ wodim -prcap

it "Does write CD-R media".

Emanuel Berg

unread,
Jan 22, 2016, 10:10:06 PM1/22/16
to
Emanuel Berg <embe...@student.uu.se> writes:

> The disc is a CD-R

I have tried two CD-Rs brand new from the (same) box -
same thing.

Thomas Schmitt

unread,
Jan 23, 2016, 3:50:05 AM1/23/16
to
Hi,

Emanuel Berg wrote:
> http://user.it.uu.se/~embe8573/wodim_log

where i read

> Executing 'test unit ready' command on Bus 1 Target 0, Lun 0 timeout 200s
> CDB: 00 00 00 00 00 00
> Errno: 5 (Input/output error), test unit ready scsi sendcmd: no error
> CDB: 00 00 00 00 00 00
> status: 0x2 (CHECK CONDITION)
> Sense Bytes: 70 00 02 00 00 00 00 0E 00 00 00 00 3A 00 00 00
> Sense Key: 0x2 Not Ready, Segment 0
> Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0

The drive replies SCSI error condition 2 3A 00, which means
that it does not see the CD-R.


> Brasero says
> Please replace the disc with a supported CD or DVD.

The GUI programs often inspect the drive and medium situation by
means of the kernel or userspace device management.
Quite a lot of software layers is involved then.

But if the drive says that there is no disc in it, the urge by
Brasero is well understandable but also futile.


> $ wodim -prcap
> "Does write CD-R media".

It got this info from the drive (which seems willing but inapt).


> wodim -v dev=$DVD -eject -sao $iso

This command should work fine.


> I have tried two CD-Rs brand new from the (same) box -
> same thing.

The good news is that the media are probably still usable
after the failure. (No traces of an attempt to prepare writing
of data to them.)

Bad news is that you will probably have to get a new burner.

Emanuel Berg

unread,
Jan 23, 2016, 10:00:04 PM1/23/16
to
"Thomas Schmitt" <scdb...@gmx.net> writes:

> Bad news is that you will probably have to get
> a new burner.

I have suspected a hardware error as well. Is there
any way to confirm this?

Strange thing tho I recently burned an ISO DVD movie
to a DVD with no problem. I'm used to things in the
computer world either working or not. But perhaps the
burner is one thing where the result can be spotty as
well as perfect or not at all.

Thomas Schmitt

unread,
Jan 24, 2016, 4:10:05 AM1/24/16
to
Hi,

> I have suspected a hardware error as well. Is there
> any way to confirm this?

You could try whether it can recognize any kind of other medium:

wodim -v dev=/dev/sr0 -toc

If i run this on an empty drive, i get

...
Current: 0x0000 (Reserved/Unknown)
...
Sense Code: 0x3A Qual 0x01 (medium not present - tray closed) Fru 0x0
...
wodim: No disk / Wrong disk!

That's what i expect with your drive and problematic media.

With a non-blank CD-RW i get

...
Current: 0x000A (CD-RW)
...
Manufacturer: CMC Magnetics Corporation
...
track: 1 lba: 0 ( 0) 00:02:00 adr: 1 control: 0 mode: -1
track:lout lba: 23260 ( 93040) 05:12:10 adr: 1 control: 0 mode: -1

With a blank CD-R:

...
Current: 0x0009 (CD-R)
...
Sense Code: 0x24 Qual 0x00 (invalid field in cdb) Fru 0x0
...
wodim: Cannot read TOC header
wodim: Cannot read TOC/PMA

(These complaints are normal. wodim should not try to inspect
the CD-R content after the burner reported that it is blank.)

With blank DVD-R:

...
Current: 0x0011 (DVD-R sequential recording)
...
... same complaints as with blank CD-R ...


> Strange thing tho I recently burned an ISO DVD movie
> to a DVD with no problem.

The laser beams for CD and DVD are of different wavelength.
It seems that there are two different laser diodes used.
http://mods-n-hacks.wonderhowto.com/how-to/extract-laser-diodes-from-dvd-burner-computer-drive-398495/


> I'm used to things in the
> computer world either working or not. But perhaps the
> burner is one thing where the result can be spotty as
> well as perfect or not at all.

The process of imprinting information relies in part on chemistry.
This opens the door for thermodynamics and its weirdnesses.
(How does a Crooke Radiometer work ? What's really behind the
Mpemba effect ? Public explanations are ridiculous despite the
experimental situation being quite clear.)

Nevertheless, if the CD laser diode is dead and the the DVD diode
still works, then this is a case of works-not-at-all-with-CD.

Emanuel Berg

unread,
Jan 24, 2016, 7:00:05 PM1/24/16
to
"Thomas Schmitt" <scdb...@gmx.net> writes:

> wodim -v dev=/dev/sr0 -toc
>
> If i run this on an empty drive, i get
>
> ... Current: 0x0000 (Reserved/Unknown) ... Sense
> Code: 0x3A Qual 0x01 (medium not present - tray
> closed) Fru 0x0 ... wodim: No disk / Wrong disk!

I get the same, only:

Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0

>> I'm used to things in the computer world either
>> working or not. But perhaps the burner is one thing
>> where the result can be spotty as well as perfect
>> or not at all.
>
> The process of imprinting information relies in part
> on chemistry. This opens the door for thermodynamics
> and its weirdnesses. (How does a Crooke Radiometer
> work ? What's really behind the Mpemba effect ?
> Public explanations are ridiculous despite the
> experimental situation being quite clear.)
>
> Nevertheless, if the CD laser diode is dead and the
> the DVD diode still works, then this is a case of
> works-not-at-all-with-CD.

Wow! Good answer :)

I went to the tech store today and an extern USB DVD
burner is 399 SEK ~($46, £33, or €43) - so even the
common man can get one, I suppose.

Gene Heskett

unread,
Jan 24, 2016, 7:50:05 PM1/24/16
to
I bought the last burner I have, about 3 or 4 years ago at wallmart,
everything but Blue Ray, for about a $25 dollar bill. Internal, sata
interface. It has to date burned 2 or 3 100 count spindles of cd's and
dvd's, and has never hicupped unless the disk was phony. Some brands
have a high phony percentage. From an lshw report:

*-scsi:2
physical id: 11
logical name: scsi4
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: iHAS424 B
vendor: ATAPI
physical id: 0.0.0
bus info: scsi@4:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/sr0
version: GL1A
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=nodisc

I've had a small wagon load of junk optical drives over the last 18
years, must have at least 10 laying around because I'm a packrat, but
this one has been a workhorse that doesn't seem to need any oats.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

Thomas Schmitt

unread,
Jan 25, 2016, 4:50:05 AM1/25/16
to
Hi,

Emanuel Berg wrote:
> Sense Code: 0x3A Qual 0x00 (medium not present) Fru 0x0

That's another member of the family of medium-not-present messages:
2 3A 00 MEDIUM NOT PRESENT
2 3A 01 MEDIUM NOT PRESENT TRAY CLOSED
2 3A 02 MEDIUM NOT PRESENT TRAY OPEN
2 3A 03 MEDIUM NOT PRESENT LOADABLE


Gene Heskett wrote:
> I've had a small wagon load of junk optical drives over the last 18
> years,

I trust you are old enough not to bundle their lasers into a device
for drilling to China.

Lisi Reisz

unread,
Jan 25, 2016, 5:20:04 AM1/25/16
to
On Monday 25 January 2016 00:45:58 Gene Heskett wrote:
> I bought the last burner I have, about 3 or 4 years ago at wallmart,
> everything but Blue Ray, for about a $25 dollar bill. Internal, sata
> interface.

Don't gloat, Gene. ;-)*

Lisi
*Tech prices in the USA are very low compared with many of us.

Gene Heskett

unread,
Jan 25, 2016, 1:50:07 PM1/25/16
to
Point being Lisi, that its without a doubt of Chinese manufacture and the
price on your store shelf should be comparable +- shipping and of course
any resttrictive tarrifs your government may have in place one way or
the other. Some call it a customs tax, but the effect is the same,
raises your price tag considerably while doing nothing but stuffing some
politicians pocket.

Emanuel Berg

unread,
Jan 25, 2016, 2:00:07 PM1/25/16
to
Gene Heskett <ghes...@shentel.net> writes:

> Point being Lisi, that its without a doubt of
> Chinese manufacture and the price on your store
> shelf should be comparable +- shipping and of course
> any resttrictive tarrifs your government may have in
> place one way or the other. Some call it a customs
> tax, but the effect is the same, raises your price
> tag considerably while doing nothing but stuffing
> some politicians pocket.

Regardless of whatever, it isn't expensive.

Especially not if it doesn't brake for many years and
all the while do useful stuff. If it fails on either
than it sucks anyway no matter how cheap.

Many people spend more money on food which they then
throw away, every month.
0 new messages