From owner-freebsd-hardware Sat Dec 5 06:58:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA15048 for freebsd-hardware-outgoing; Sat, 5 Dec 1998 06:58:55 -0800 (PST) (envelope-from owner-freebsd-hardware@FreeBSD.ORG) Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id GAA15043 for ; Sat, 5 Dec 1998 06:58:53 -0800 (PST) (envelope-from jose@we.lc.ehu.es) Received: from we.lc.ehu.es by polaris.we.lc.ehu.es (SMI-8.6/SMI-SVR4) id PAA19352; Sat, 5 Dec 1998 15:58:48 +0100 Message-ID: <36694A28.4395A75E@we.lc.ehu.es> Date: Sat, 05 Dec 1998 15:58:48 +0100 From: "José Mª Alcaide" Organization: Universidad del País Vasco - Dept. Electricidad y Electrónica X-Mailer: Mozilla 4.07 [en] (X11; U; FreeBSD 2.2.8-RELEASE i386) MIME-Version: 1.0 To: freebsd-hardware@FreeBSD.ORG Subject: I cannot "dd" to 640MB MO disk Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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