Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Bad Disk blocks - What to do?
@ 1997-06-30  4:00 Steven Schoch
  1997-07-01  4:00 ` Steven Berry
  1997-07-03  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Schoch @ 1997-06-30  4:00 UTC (permalink / raw)



I'm running DEC Unix 4.0 with a "DEC AS10" 2.1 GB drive (at least that's
what
it's SCSI info says).  It is starting to develop bad blocks, which
causes fsck to
fail.

Is there a way to map out these bad blocks?  The drive is not the boot
drive,
so I could reformat it IF I could find a format program.  When this
happened
last month I removed the drive, plugged it into a Solaris system,
formatted it
and ran a bad block scan, but I don't think the Solaris bad block table
is
compatible with the OSF1 bad block table, if it has any.

I also tried the badsect command, but this appears to not work on OSF1.

Anyone know how to format a DEC OSF 4.0 SCSI drive?
--
    Steve





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bad Disk blocks - What to do?
  1997-07-01  4:00   ` Steven Schoch
@ 1997-07-01  4:00     ` Rob McNicholas
  0 siblings, 0 replies; 5+ messages in thread
From: Rob McNicholas @ 1997-07-01  4:00 UTC (permalink / raw)



In article <33B95BCB.DD30C08E@starnet.com> Steven Schoch <sschoch@starnet.com> writes:
   Steven Berry wrote:
   > You use the disklabel command to partition the disk (up to 8
   > partitions
   > allowed) and the newfs command to create a filesystem on a device.

   Been there, done that.

   The disklabel and newfs commands only partition the drive and create
   filesystems on it.  They do NOT do bad block forwarding.

   What I'm looking for is something like the Solaris "format ... analyze"
   or the old "bad144" commands.  Any help?


I'm afraid I missed the beginning of this thread, but if you are
talking about Digital Unix, I think you can do this with the "scu"
program ("SCSI CAM Utility").  There is an extensive man page, in
which is mentioned the "reassign" command:

     reassign lba n
       Reassigns a defective block on a disk device.

Hopefully this is what you are looking for.

-rob
-- 
Rob McNicholas		  Computer Services Group, EE/CS, U.C. Berkeley
robm@eecs.berkeley.edu	  Voice: 510/642-8633  FAX: 510/643-7846



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bad Disk blocks - What to do?
  1997-06-30  4:00 Bad Disk blocks - What to do? Steven Schoch
@ 1997-07-01  4:00 ` Steven Berry
  1997-07-01  4:00   ` Steven Schoch
  1997-07-03  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1 sibling, 1 reply; 5+ messages in thread
From: Steven Berry @ 1997-07-01  4:00 UTC (permalink / raw)



You use the disklabel command to partition the disk (up to 8 partitions
allowed) and the newfs command to create a filesystem on a device.

Hope this helps,

Steven Berry
sb@m4.net





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bad Disk blocks - What to do?
  1997-07-01  4:00 ` Steven Berry
@ 1997-07-01  4:00   ` Steven Schoch
  1997-07-01  4:00     ` Rob McNicholas
  0 siblings, 1 reply; 5+ messages in thread
From: Steven Schoch @ 1997-07-01  4:00 UTC (permalink / raw)
  To: Steven Berry


Steven Berry wrote:

> You use the disklabel command to partition the disk (up to 8
> partitions
> allowed) and the newfs command to create a filesystem on a device.

Been there, done that.

The disklabel and newfs commands only partition the drive and create
filesystems on it.  They do NOT do bad block forwarding.

What I'm looking for is something like the Solaris "format ... analyze"
or the old "bad144" commands.  Any help?

--

    Steve





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Bad Disk blocks - What to do?
  1997-06-30  4:00 Bad Disk blocks - What to do? Steven Schoch
  1997-07-01  4:00 ` Steven Berry
@ 1997-07-03  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1997-07-03  4:00 UTC (permalink / raw)




In article <33B813CF.C55822AE@starnet.com>, Steven Schoch <sschoch@starnet.com> writes:
>
>I'm running DEC Unix 4.0 with a "DEC AS10" 2.1 GB drive (at least that's
>what
>it's SCSI info says).

I don't know of any "AS10" that we've ever made.  You can use scu(8)
to look at the Inquiry data to verify.  It may not matter much.

>Is there a way to map out these bad blocks?

Use the "reassign lba" command in scu(8).  If the drive supports the
SCSI command to reassign blocks that will do it.  You can also make
a scan, which may get the drive or the driver to replace any additional
bad blocks.  And if all else fails, you can use scu(8) to tell the
disk to format itself.

--
Alan Rollow				alan@nabeth.cxo.dec.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-07-03  4:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-06-30  4:00 Bad Disk blocks - What to do? Steven Schoch
1997-07-01  4:00 ` Steven Berry
1997-07-01  4:00   ` Steven Schoch
1997-07-01  4:00     ` Rob McNicholas
1997-07-03  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox