Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 2001 17:11:57 +0100
From:      Bernd Walter <ticso@cicely5.cicely.de>
To:        non@ever.sanda.gr.jp
Cc:        current@FreeBSD.ORG, trevor@jpj.net, akiyama@FreeBSD.ORG
Subject:   Re: od driver for -CURRENT
Message-ID:  <20010207171156.A72756@cicely5.cicely.de>
In-Reply-To: <20010206232112W.non@ever.sanda.gr.jp>; from non@ever.sanda.gr.jp on Tue, Feb 06, 2001 at 11:21:12PM %2B0900
References:  <20010205170041.A86739@panzer.kdm.org> <20010206154333F.non@ever.sanda.gr.jp> <20010206133030.A2232@cicely5.cicely.de> <20010206232112W.non@ever.sanda.gr.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 06, 2001 at 11:21:12PM +0900, non@ever.sanda.gr.jp wrote:
> Today I tried with 4.2-RELEASE (sorry not -current) and,
> 1. Boot up the 4.2-RELEASE with GENERIC kernel.
> 2. Connect MO drive with PC Card SCSI(ncv).
> 3. Insert PC Card without medium in the MO drive.
> 4. The pccardd automatically run camcontrol rescan.
> 5. Message says that da0 is 0MB capacity.
> 6. Run fdisk da0
> 7. got panic with divided by zero. 
> 
> Probably divided by zero is caused at line 737 or 748 in the
> scsi_low_action() in cam/scsi/scsi_low.c because of ccg->block_size or 
> secs_per_cylinder is zero.

I never used fdisk on a removeable disk as I only needed them for FreeBSD.
The follwoing always worked for me:
dd if=/dev/zero bs=10240 count=1 of=/dev/dax
disklabel -rw dax auto
disklabel -e dax

It looks like fdisk triggers the bug.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010207171156.A72756>