Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Dec 1998 15:58:48 +0100
From:      "José Mª Alcaide" <jose@we.lc.ehu.es>
To:        freebsd-hardware@FreeBSD.ORG
Subject:   I cannot "dd" to 640MB MO disk
Message-ID:  <36694A28.4395A75E@we.lc.ehu.es>

next in thread | raw e-mail | index | archive | help
I have just attached a Fujitsu M2513E MO drive to my SCSI chain.
The drive identifies itself as an optical device, and the "ahc" driver
detects and configures the "od0" device at boot (BTW, I am running
2.2.8-RELEASE, no CAM).

These are the boot messages related to SCSI devices:

ahc0: target 0 Tagged Queuing Device
(ahc0:0:0): "IBM DDRS-34560W S92A" type 0 fixed SCSI 2
sd0(ahc0:0:0): Direct-Access 4357MB (8925000 512 byte sectors)
ahc0:A:4: refuses WIDE negotiation.  Using 8bit transfers
(ahc0:4:0): "FUJITSU M2513E 0050" type 7 removable SCSI 2
od0(ahc0:4:0): Optical 606MB (310352 2048 byte sectors)
ahc0:A:5: refuses WIDE negotiation.  Using 8bit transfers
(ahc0:5:0): "TOSHIBA CD-ROM XM-6201TA 1030" type 5 removable SCSI 2
cd0(ahc0:5:0): CD-ROM can't get the size

There is a 640MB MO disk inserted in the drive while booting FreeBSD.

Now I want to label the MO disk in "dangerously dedicated" mode. So
I try to kill the partition table using "dd" first:

$ dd if=/dev/zero of=/dev/rod0 count=2 obs=2048
dd: /dev/rod0: Input/output error
1+0 records in
0+0 records out
0 bytes transferred in 0.001765 secs (0 bytes/sec)

And the kernel sends these messages to the console:

od0(ahc0:4:0): ILLEGAL REQUEST asc:21,0 Logical block address out of range
od0(ahc0:4:0): ILLEGAL REQUEST asc:21,0 Logical block address out of range
od0(ahc0:4:0): ILLEGAL REQUEST asc:21,0 Logical block address out of range
od0(ahc0:4:0): ILLEGAL REQUEST asc:21,0 Logical block address out of range
od0: oops not queued

I know of problems related to the 2048 byte sector size of 640MB MO disks,
but od.4 says: "Currently the od driver accepts 512, 1024 and 2048
byte/sector media. Raw and block mode device access to non-512 byte/sector
media would be allowed only on each sector size boundary start position
and I/O size". Is this related to my problem?

(Note 1: I booted the Windoze partition -ugh- and I could use the
 640MB cartridge without any problem: format, transfer files, etc.)
(Note 2: I only have cartridges of 640MB size, so I cannot test the
 drive using cartridges with sectors of 512 bytes.)

I would be very grateful for any help.

-- JMA
-----------------------------------------------------------------------
José Mª Alcaide                         | mailto:jose@we.lc.ehu.es
Universidad del País Vasco              | http://www.we.lc.ehu.es/~jose
Dpto. de Electricidad y Electrónica     |
Facultad de Ciencias - Campus de Lejona | Tel.:  +34-946012479
48940 Lejona (Vizcaya) - SPAIN          | Fax:   +34-944858139
-----------------------------------------------------------------------
               "Go ahead... make my day." - H. Callahan

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36694A28.4395A75E>