linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [OT] scsi disk sector size question
@ 2002-08-15 13:30 Cress, Andrew R
  0 siblings, 0 replies; 3+ messages in thread
From: Cress, Andrew R @ 2002-08-15 13:30 UTC (permalink / raw)
  To: 'Helge Hafting', Mike Galbraith; +Cc: linux-kernel

You can change the disk's reported capacity via mode select, and the sector
size is included in the block descriptor with it.  Changing the sector size
from the manufacturer is not recommended, but you could try, if you do a
format afterward.  

I have a tool called 'sgmode' that I use to do mode sense/select on a set of
drives based on disk model.  
http://cvs.carrierlinux.org/viewcvs/viewcvs.cgi/components/scsirastools/src/

Andy Cress

-----Original Message-----
From: Helge Hafting [mailto:helgehaf@aitel.hist.no] 
Sent: Thursday, August 15, 2002 7:27 AM
To: Mike Galbraith
Cc: linux-kernel
Subject: Re: [OT] scsi disk sector size question

Mike Galbraith wrote:
> 
> There's gotta be a better place to ask this, but...
> 
> Greetings,
> 
> Is it possible to change scsi drive sector size?  

The hardware sector size?  It depends on the drive.  
Some may let you do it, this usually requires a low-level
format, possibly using litte-documented vendor specific tricks.

> Scsiinfo says no, which is
> inconvenient if you're making images of ancient drives (ST4766N) and find
> that some have 512 byte and others 1024 byte sectors.

Having two scripts, one for each case is too bad?  

> Why on earth would a manufacturer [drives are really CDC] do this?

You should really ask the manufacturer.  One reason may be to squeeze
more data onto the disk.  Each sector has some overhead on the magnetic 
surface, such as crc data and sector gaps.  And the sector number is 
written too so the disk firmware knows where the head is - this is why
you need a low-level format when changing.  You need to write
new sector numbers for the different-sized sectors.

The overhead means you get more data on the disk by using larger
sectors.  Fewer sectors in total means less overhead when per-sector
overhead adds upp.  

Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

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

* Re: [OT] scsi disk sector size question
  2002-08-15  8:48 Mike Galbraith
@ 2002-08-15 11:26 ` Helge Hafting
  0 siblings, 0 replies; 3+ messages in thread
From: Helge Hafting @ 2002-08-15 11:26 UTC (permalink / raw)
  To: Mike Galbraith; +Cc: linux-kernel

Mike Galbraith wrote:
> 
> There's gotta be a better place to ask this, but...
> 
> Greetings,
> 
> Is it possible to change scsi drive sector size?  

The hardware sector size?  It depends on the drive.  
Some may let you do it, this usually requires a low-level
format, possibly using litte-documented vendor specific tricks.

> Scsiinfo says no, which is
> inconvenient if you're making images of ancient drives (ST4766N) and find
> that some have 512 byte and others 1024 byte sectors.

Having two scripts, one for each case is too bad?  

> Why on earth would a manufacturer [drives are really CDC] do this?

You should really ask the manufacturer.  One reason may be to squeeze
more data onto the disk.  Each sector has some overhead on the magnetic 
surface, such as crc data and sector gaps.  And the sector number is 
written too so the disk firmware knows where the head is - this is why
you need a low-level format when changing.  You need to write
new sector numbers for the different-sized sectors.

The overhead means you get more data on the disk by using larger
sectors.  Fewer sectors in total means less overhead when per-sector
overhead adds upp.  

Helge Hafting

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

* [OT] scsi disk sector size question
@ 2002-08-15  8:48 Mike Galbraith
  2002-08-15 11:26 ` Helge Hafting
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Galbraith @ 2002-08-15  8:48 UTC (permalink / raw)
  To: linux-kernel

There's gotta be a better place to ask this, but...

Greetings,

Is it possible to change scsi drive sector size?  Scsiinfo says no, which is
inconvenient if you're making images of ancient drives (ST4766N) and find
that some have 512 byte and others 1024 byte sectors.

Why on earth would a manufacturer [drives are really CDC] do this?

    -Mike


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

end of thread, other threads:[~2002-08-15 13:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-15 13:30 [OT] scsi disk sector size question Cress, Andrew R
  -- strict thread matches above, loose matches on Subject: below --
2002-08-15  8:48 Mike Galbraith
2002-08-15 11:26 ` Helge Hafting

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).