All of lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Matthias Urlichs <matthias@urlichs.de>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Low-level reformat with different sector size: ?
Date: Fri, 29 Jun 2007 21:47:30 -0400	[thread overview]
Message-ID: <4685B632.5030604@torque.net> (raw)
In-Reply-To: <f638pe$it6$1@sea.gmane.org>

Matthias Urlichs wrote:
> Hello,
> 
> Yesterday I managed to buy a couple of SCA disks with a sector size of ...
> *drumroll* ... 524.
> 
> What's the easiest way to re-format these to use 512 bytes?
> Preferably without screwing up anything else on these things?
> 
> I tried sformat, which reported some rather broken
> data:
> 
> # sformat
> sformat SCSI format/analysis/repair utilities
> Release 3.4, Copyright J. Schilling
> 
> scsibus0:
>         0,0,0     0) *
>         0,1,0     1) *
>         0,2,0     2) 'S330L  !' 'C0
>                                   P' '' Disk
>         0,3,0     3) *
>         0,4,0     4) 'S330L  !' 'C0' 'P?' Disk
>         0,5,0     5) 'S330L  !' 'C0`P#  ' '?' Disk
>         0,6,0     6) *
>         0,7,0     7) *
> Select target -1 (2 - 5)/<cr>:2
> scsibus0 target 2:
>         0,2,0     0) 'S330L  !' 'C0
>                                   P' '' Disk
>         0,2,1     1) *
>         0,2,2     2) *
>         0,2,3     3) *
>         0,2,4     4) *
>         0,2,5     5) *
>         0,2,6     6) *
>         0,2,7     7) *
> Select lun -1 (0 - 0)/<cr>:0
> scsibus0 target 2 lun 0
> Device type    : Disk
> Version        : 7
> Response Format: 1
> Vendor_info    : 'S330L  !'
> Identifikation : 'C0
>                    P'
> Revision       : ''
> Device seems to be: Generic CCS Disk.
> sformat: PANIC Sectorsize.
> #
> 
> ... Oops?
> 
> Kernel: 2.6.22 (Ubuntu development)

Matthias,
Have a look at sg_format in the sg3_utils package.

Assuming you want to reformat /dev/sdc to 512 byte sector
size the you could use:
    sg_format --format --size=512 /dev/sdc

See sg_format's man page for more information.

Doug Gilbert



  parent reply	other threads:[~2007-06-30  1:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-29 15:34 Low-level reformat with different sector size: ? Matthias Urlichs
2007-06-29 15:50 ` James Bottomley
2007-06-30  2:04   ` Douglas Gilbert
2007-06-30  1:47 ` Douglas Gilbert [this message]
2007-06-30  1:50 ` Douglas Gilbert
2007-06-30 15:30   ` Matthias Urlichs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4685B632.5030604@torque.net \
    --to=dougg@torque.net \
    --cc=linux-scsi@vger.kernel.org \
    --cc=matthias@urlichs.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.