From ishizuka@isis.isl.ntt.co.jp  Tue Mar 11 06:22:10 1997
Received: from tama2.tas.ntt.co.jp (tama2.tas.ntt.co.jp [192.68.237.113])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA05697
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 11 Mar 1997 06:22:06 -0800 (PST)
Received: by tama2.tas.ntt.co.jp (8.8.5/3.4W5/mx) with ESMTP
	id XAA14509; Tue, 11 Mar 1997 23:08:09 +0900 (JST)
Received: by nttmail.ecl.ntt.co.jp (8.8.5/3.5W/mx) with ESMTP
	id XAA15796; Tue, 11 Mar 1997 23:22:00 +0900 (JST)
Received: from localhost (ishizuka@localhost) by isis.isl.ntt.co.jp (8.7.6/3.4W4-03/10/97) with SMTP id XAA15621; Tue, 11 Mar 1997 23:22:00 +0900 (JST)
Message-Id: <199703111422.XAA15621@isis.isl.ntt.co.jp>
Date: Tue, 11 Mar 1997 23:21:59 +0900
From: Masachika ISHIZUKA <ishizuka@isis.isl.ntt.co.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ishizuka@isis.isl.ntt.co.jp
Subject: can't dump 640MB optical disks

>Number:         2948
>Category:       bin
>Synopsis:       can't dump 640MB optical disks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 11 06:30:01 PST 1997
>Closed-Date:    Fri Nov 19 13:55:16 PST 1999
>Last-Modified:  Fri Nov 19 13:55:35 PST 1999
>Originator:     Masachika ISHIZUKA
>Release:        FreeBSD 3.0-970209-SNAP i386
>Organization:
Nippon telegraph and telephone corp.
>Environment:

od0 at scbus0 target 5 lun 0
od0: <FUJITSU M2513A 1100> type 7 removable SCSI 2
od0: Optical 606MB (310352 2048 byte sectors)

>Description:

  I can't dump 640 Megs MO (Magneto optical) disk as follows.

# dump 0uf test.dmp /dev/rod0a
  DUMP: Date of this level 0 dump: Tue Mar 11 22:29:44 1997
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rod0a (/mo/) to test.dmp
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 48882 tape blocks on 1.26 tape(s).
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP:   DUMP: read error from /dev/rod0a: Invalid argument: [block 2070]:
 count=5120
read error from /dev/rod0a: Invalid argument: [block 2090]: count=3072
  DUMP: read error from /dev/rod0a: Invalid argument: [sector 2070]: count=512
  DUMP: read error from /dev/rod0a: Invalid argument: [sector 2071]: count=512

And the following messages are displayed on console.

od_strategy: Block number is not multiple of sector size (2): 0x816
od_strategy: Block number is not multiple of sector size (2): 0x82a
od_strategy: Block number is not multiple of sector size (2): 0x82a
od_strategy: Block number is not multiple of sector size (2): 0x816
od_strategy: Block number is not multiple of sector size (2): 0x817
od_strategy: Invalid b_bcount 512 at block number: 0x818

>How-To-Repeat:

% sed -n /mo640/,/^\$/p /etc/disktab
mo640|Generic 3.5in 640MB MO disk:\
        :dt=SCSI:ty=removable:se#2048:nt#64:ns#32:nc#152:\
        :pa#310352:oa#0:ba#8192:fa#2048:ta=4.2BSD:\
        :pb#0:ob#0:tb=swap:\
        :pc#310352:oc#0:

% su
# disklabel -r -w -B od0 mo640
# newfs -t 0 -u 0 /dev/rod0a
# mount /dev/od0a /mnt
# cp /kernel /mnt
# dump 0uf test.dmp /dev/rod0a

>Fix:

  I don't know.
>Release-Note:
>Audit-Trail:

From: j@uriah.heep.sax.de (J Wunsch)
To: ishizuka@isis.isl.ntt.co.jp (Masachika ISHIZUKA)
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/2948: can't dump 640MB optical disks
Date: Tue, 11 Mar 1997 17:51:16 +0100

 As Masachika ISHIZUKA wrote:
 
 > And the following messages are displayed on console.
 > 
 > od_strategy: Block number is not multiple of sector size (2): 0x816
 > od_strategy: Block number is not multiple of sector size (2): 0x82a
 > od_strategy: Block number is not multiple of sector size (2): 0x82a
 > od_strategy: Block number is not multiple of sector size (2): 0x816
 > od_strategy: Block number is not multiple of sector size (2): 0x817
 > od_strategy: Invalid b_bcount 512 at block number: 0x818
 
 Media block sizes != 512 bytes are defunct right now.  I'm surprised
 that dumping from them is your only problem.
 
 -- 
 cheers, J"org
 
 joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
 Never trust an operating system you don't have sources for. ;-)
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Fri Nov 19 13:55:16 PST 1999 
State-Changed-Why:  
Pre CAM SCSI problem 
>Unformatted:
