https://bugzilla.novell.com/show_bug.cgi?id=390934
User teheo@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=390934#c39
--- Comment #39 from Tejun Heo 2008-05-22 18:34:18 MST ---
Okay, the problem is that the boot script is too impatient and times out before
the drive becomes ready. It currently does 7 times spaced by 1 sec of 5
consecutive tries, which apparently is too short. We'll need to try for
something like 30 seconds and it will definitely help to issue TEST UNIT READY
and determine the device state. ie. if TUR indicates CHECK_SENSE w/
SK:ASC:ASCQ=02:04:01, it means LOGICAL UNIT IS IN PROCESS OF BECOMING READY
which means that the drive has media in it and trying to recognize it in which
case we can wait for it longer.
Possible sense codes for TUR are described in section F.3.3 of t10 MMC-6
standard and as follows. For 04:01, we can wait longer knowing that the drive
is doing something. for 02:04:02 and 02:03, we know that it's not gonna get
ready by itself. The same goes for 02:30:01-03 or 02:3A:*. ATAPI devices
often being cheesy, depending 100% on the sense data result isn't advisable
There probably needs to be some retry anyway but TUR can definitely help
determining what's going on.
SK ASC ASCQ Description
2 04 00 LOGICAL UNIT NOT READY, CAUSE NOT REPORTABLE
2 04 01 LOGICAL UNIT IS IN PROCESS OF BECOMING READY
2 04 02 LOGICAL UNIT NOT READY, INITIALIZING CMD. REQUIRED
2 04 03 LOGICAL UNIT NOT READY, MANUAL INTERVENTION REQUIRED
2 04 04 LOGICAL UNIT NOT READY, FORMAT IN PROGRESS
2 04 07 LOGICAL UNIT NOT READY, OPERATION IN PROGRESS
2 04 08 LOGICAL UNIT NOT READY, LONG WRITE IN PROGRESS
2 0C 07 WRITE ERROR RECOVERY NEEDED
2 0C 0F DEFECTS IN ERROR WINDOW
2 30 00 INCOMPATIBLE MEDIUM INSTALLED
2 30 01 CANNOT READ MEDIUM – UNKNOWN FORMAT
2 or 5 30 02 CANNOT READ MEDIUM – INCOMPATIBLE FORMAT
2 30 03 CLEANING CARTRIDGE INSTALLED
2 or 5 30 04 CANNOT WRITE MEDIUM – UNKNOWN FORMAT
2 or 5 30 05 CANNOT WRITE MEDIUM – INCOMPATIBLE FORMAT
2 or 5 30 06 CANNOT FORMAT MEDIUM – INCOMPATIBLE MEDIUM
2 30 07 CLEANING FAILURE
2 or 5 30 11 CANNOT WRITE MEDIUM – UNSUPPORTED MEDIUM VERSION
2 3A 00 MEDIUM NOT PRESENT
2 3A 01 MEDIUM NOT PRESENT – TRAY CLOSED
2 3A 02 MEDIUM NOT PRESENT – TRAY OPEN
2 3E 00 LOGICAL UNIT HAS NOT SELF-CONFIGURED YET
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.