Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2007 21:47:05 -0400
From:      Jerry McAllister <jerrymc@msu.edu>
To:        Simon Gao <gao@schrodinger.com>
Cc:        questions@freebsd.org
Subject:   Re: Can't fdisk newly installed disks
Message-ID:  <20070814014705.GE5613@gizmo.acns.msu.edu>
In-Reply-To: <46C0F96C.3060600@schrodinger.com>
References:  <46C0F96C.3060600@schrodinger.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 13, 2007 at 05:38:04PM -0700, Simon Gao wrote:

> Hi,
> 
> I am running into some problem with fdisk newly installed drives.
> 
> >From boot message, these drives are found without problem:
> 
> da3 at mpt0 bus 0 target 2 lun 0
> da3: <IFT A12U-G2421 347D> Fixed Direct Access SCSI-3 device
> da3: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged
> Queueing Enabled
> da3: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C)
> da4 at mpt0 bus 0 target 2 lun 1
> da4: <IFT A12U-G2421 347D> Fixed Direct Access SCSI-3 device
> da4: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged
> Queueing Enabled
> da4: 2048000MB (4194304000 512 byte sectors: 255H 63S/T 261083C)
> da5 at mpt0 bus 0 target 2 lun 2
> da5: <IFT A12U-G2421 347D> Fixed Direct Access SCSI-3 device
> da5: 160.000MB/s transfers (80.000MHz, offset 127, 16bit), Tagged
> Queueing Enabled
> da5: 670790MB (1373777920 512 byte sectors: 255H 63S/T 85513C)
> 
> There are device files in /dev:
> 
> crw-r-----  1 root  operator    4,  14 Aug 13 17:14 /dev/da3
> crw-r-----  1 root  operator    4,  15 Aug 13 17:14 /dev/da4
> crw-r-----  1 root  operator    4,  16 Aug 13 17:14 /dev/da5
> 
> 
> However, when trying to fdisk one of drives, I got following error:
> 
> # fdisk -BI da5
> fdisk: cannot open disk /dev/da5: No such file or directory
> 
> sysintall failed also.
> 
> The system runs  FreeBSD 5.2.1-RELEASE.
> 
> Any help is appreciated.

Did you try doing a  dd(1)  if some blocks of zeros to the drive
before doing the fdisk.    On some older FreeBSD - don't remember
which - I had trouble with some brands of SCSI disks and writing
some zeros to it seemed to make it work.  I don't know why or even
why I first tried it.   But it is simple enough to be worth giving
it a try to see if anything improves.

   dd if=/devf/zero of=/dev/da5 bs=512 count=1024

////jerry  

> 
> Simon
> 
> 
>  
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



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