From: Grant Grundler <iod00d@hp.com>
To: Douglas Gilbert <dougg@torque.net>
Cc: Patrick Mansfield <patmans@us.ibm.com>, linux-scsi@vger.kernel.org
Subject: Re: convert 520 byte sector disk to 512 byte sector?
Date: Wed, 18 Jun 2003 13:19:15 -0700 [thread overview]
Message-ID: <20030618201915.GG23761@cup.hp.com> (raw)
In-Reply-To: <3EE53A34.7070503@torque.net>
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
On Tue, Jun 10, 2003 at 11:53:56AM +1000, Douglas Gilbert wrote:
> www.seagate.com have a tool called "seatool" that may
> do the trick for you.
Douglas,
I don't recall if I followed up - "st" in fact did work on ia64.
The FC drives are now 512 byte sector. The "read_capacity" call
to monitor FORMAT_UNIT progress fails even though the FORMAT_UNIT
seems to complete successfully.
I also wrote a script (attached) to identify the block size of each
"sg" device.
In the interest of writing a "generic" tool, can someone decode the
SG command below?
I'm using the 2.4 SG interface and still haven't found any decent
description how the 2.2 SG kernel interface works.
open("/dev/sg26", O_RDWR) = 7
write(7, "\x00\x00\x00\x00\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x00\x00\x00\x00\x00\x00\x15\x11\x00\x00\x0c\x00\x00\x00\x00\x08\x04\x2c\x1d\x80\x00\x00\x02\x00", 54) = 54
read(7, "\x24\x00\x00\x00\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 36) = 36
(After logging the entry in stlog.txt, "st" sends a FORMAT_UNIT.)
thanks,
grant
[-- Attachment #2: list_sg --]
[-- Type: text/plain, Size: 246 bytes --]
for i in 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
do echo -n "sg$i "
scsiinfo -i /dev/sg$i | gawk '/Product/ {printf $2 "\t"}'
scsiinfo -f /dev/sg$i | gawk '/Bytes per sector/ {print $4}'
done
next prev parent reply other threads:[~2003-06-18 20:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-09 17:46 convert 520 byte sector disk to 512 byte sector? Grant Grundler
2003-06-09 19:29 ` Patrick Mansfield
2003-06-09 22:39 ` Grant Grundler
2003-06-10 1:53 ` Douglas Gilbert
2003-06-10 17:24 ` Grant Grundler
2003-06-10 20:54 ` Grant Grundler
2003-06-18 20:19 ` Grant Grundler [this message]
2003-06-10 0:36 ` Grant Grundler
-- strict thread matches above, loose matches on Subject: below --
2003-06-10 18:32 Cress, Andrew R
2003-06-18 20:52 ` Grant Grundler
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=20030618201915.GG23761@cup.hp.com \
--to=iod00d@hp.com \
--cc=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
--cc=patmans@us.ibm.com \
/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.