From owner-freebsd-scsi Fri Jul 26 18:29:15 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA23092 for freebsd-scsi-outgoing; Fri, 26 Jul 1996 18:29:15 -0700 (PDT) Received: (from grog@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA23083 for scsi; Fri, 26 Jul 1996 18:29:12 -0700 (PDT) From: Greg Lehey Message-Id: <199607270129.SAA23083@freefall.freebsd.org> Subject: Setting disk sector size? To: scsi Date: Fri, 26 Jul 1996 18:29:12 -0700 (PDT) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk A friend of mine just turned up with a Tandem disk drive (looks for all the world like an IBM :-) which has 514 byte sectors. He also has another one with 516 byte sectors. By all accounts we can change that to 512 with 'scsi -m 3 -p 3 -e', except that the driver gets all uptight about the 514 byte sectors and doesn't get as far as reading the mode page. scsiformat can report the format, so there must be some way to do read the information, and I suspect there's also a way to set it. Does anybody have any ideas? Greg From owner-freebsd-scsi Sat Jul 27 08:14:33 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA13081 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 08:14:33 -0700 (PDT) Received: (from grog@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id IAA13074; Sat, 27 Jul 1996 08:14:30 -0700 (PDT) From: Greg Lehey Message-Id: <199607271514.IAA13074@freefall.freebsd.org> Subject: Re: Setting disk sector size? To: julian@whistle.com (Julian Elischer) Date: Sat, 27 Jul 1996 08:14:30 -0700 (PDT) Cc: scsi In-Reply-To: <199607270213.TAA24690@shrimp.whistle.com> from "Julian Elischer" at Jul 26, 96 07:13:49 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > A friend of mine just turned up with a Tandem disk drive (looks for > > all the world like an IBM :-) which has 514 byte sectors. He also has > > another one with 516 byte sectors. By all accounts we can change that > > to 512 with 'scsi -m 3 -p 3 -e', except that the driver gets all > > uptight about the 514 byte sectors and doesn't get as far as reading > > the mode page. scsiformat can report the format, so there must be > > some way to do read the information, and I suspect there's also a way > > to set it. Does anybody have any ideas? > > compile a krnrel without that test in sd.c > and use that to change the setup.. > > I tried that before I sent the message. It hangs (OK, to be more specific, it times out). I think that the problem is that scsi tries to access the disk before it reads the mode page. scsiformat issues a direct scsi command, so I assume that I could issue a write command and write it back. Unfortunately, I'm on vacation at the moment, and I don't have any documentation with me. Greg From owner-freebsd-scsi Sat Jul 27 09:02:52 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA16975 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 09:02:52 -0700 (PDT) Received: from hda.com (ip59-max1-fitch.zipnet.net [199.232.245.59]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA16953; Sat, 27 Jul 1996 09:02:45 -0700 (PDT) Received: (from dufault@localhost) by hda.com (8.6.11/8.6.9) id LAA00226; Sat, 27 Jul 1996 11:56:07 -0400 From: Peter Dufault Message-Id: <199607271556.LAA00226@hda.com> Subject: Re: Setting disk sector size? To: grog@freefall.freebsd.org (Greg Lehey) Date: Sat, 27 Jul 1996 11:56:05 -0400 (EDT) Cc: julian@whistle.com, scsi@freefall.freebsd.org In-Reply-To: <199607271514.IAA13074@freefall.freebsd.org> from "Greg Lehey" at Jul 27, 96 08:14:30 am Reply-to: hdalog@zipnet.net X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > > A friend of mine just turned up with a Tandem disk drive (looks for > > > all the world like an IBM :-) which has 514 byte sectors. He also has > > > another one with 516 byte sectors. By all accounts we can change that > > > to 512 with 'scsi -m 3 -p 3 -e', except that the driver gets all > > > uptight about the 514 byte sectors and doesn't get as far as reading > > > the mode page. scsiformat can report the format, so there must be > > > some way to do read the information, and I suspect there's also a way > > > to set it. Does anybody have any ideas? > > > > compile a krnrel without that test in sd.c > > and use that to change the setup.. > > > > > I tried that before I sent the message. It hangs (OK, to be more > specific, it times out). I think that the problem is that scsi tries > to access the disk before it reads the mode page. scsiformat issues a > direct scsi command, so I assume that I could issue a write command > and write it back. Unfortunately, I'm on vacation at the moment, and > I don't have any documentation with me. Use the control device for the disk - it will bypass normal processing and all you can do is issue ioctl's against it. The control device is the one with the crazy minor number: > crw------- 1 root wheel 13, 536870912 Jan 10 1996 /dev/rsd0.ctl You should be able to issue the mode page editing and format commands against that device. -- Peter Dufault Real-Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267 From owner-freebsd-scsi Sat Jul 27 09:32:25 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA19505 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 09:32:25 -0700 (PDT) Received: (from grog@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA19498; Sat, 27 Jul 1996 09:32:23 -0700 (PDT) From: Greg Lehey Message-Id: <199607271632.JAA19498@freefall.freebsd.org> Subject: Re: Setting disk sector size? To: hdalog@zipnet.net Date: Sat, 27 Jul 1996 09:32:23 -0700 (PDT) Cc: scsi In-Reply-To: <199607271556.LAA00226@hda.com> from "Peter Dufault" at Jul 27, 96 11:56:05 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > compile a krnrel without that test in sd.c > > > and use that to change the setup.. > > > > > > > > I tried that before I sent the message. It hangs (OK, to be more > > specific, it times out). I think that the problem is that scsi tries > > to access the disk before it reads the mode page. scsiformat issues a > > direct scsi command, so I assume that I could issue a write command > > and write it back. Unfortunately, I'm on vacation at the moment, and > > I don't have any documentation with me. > > Use the control device for the disk - it will bypass normal processing > and all you can do is issue ioctl's against it. The control device > is the one with the crazy minor number: > > > crw------- 1 root wheel 13, 536870912 Jan 10 1996 /dev/rsd0.ctl > > You should be able to issue the mode page editing > and format commands against that device. Thanks, that solved the first hurdle. With 'scsi -f /dev/rsd0.ctl -m 3 -P 3' I can now display the mode page. Unfortunately, 'scsi -f /dev/rsd0.ctl -m 3 -P 3 -e' gives me a blank file to edit. I've checked with ktrace, and it seems that scsi isn't writing the file before invoking the editor. I tried copying in the output from the scsi command, but it didn't appear to do anything with it. I'm about to jump into the code, but if anybody has any suggestions first, I'd be glad to hear of them. Greg From owner-freebsd-scsi Sat Jul 27 10:21:36 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA21790 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 10:21:36 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA21773 for ; Sat, 27 Jul 1996 10:21:24 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA27939; Sat, 27 Jul 1996 19:21:04 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA02204; Sat, 27 Jul 1996 19:21:03 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id SAA01784; Sat, 27 Jul 1996 18:51:55 +0200 (MET DST) From: J Wunsch Message-Id: <199607271651.SAA01784@uriah.heep.sax.de> Subject: Re: Setting disk sector size? To: scsi@freebsd.org Date: Sat, 27 Jul 1996 18:51:55 +0200 (MET DST) Cc: grog@freefall.freebsd.org (Greg Lehey) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199607271514.IAA13074@freefall.freebsd.org> from Greg Lehey at "Jul 27, 96 08:14:30 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Greg Lehey wrote: > specific, it times out). I think that the problem is that scsi tries > to access the disk before it reads the mode page. scsiformat issues a > direct scsi command, so I assume that I could issue a write command > and write it back. Well, scsiformat does nothing very magic, have a look into this shell script. But you are using the `control' device, are you? The regular (block/character) device will always touch the disk first in sd_open(). Using the control device won't get you to sd_open() at all (the open of the control device is caught in the upper layers of the SCSI driver). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Sat Jul 27 10:53:04 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA23062 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 10:53:04 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA23057 for ; Sat, 27 Jul 1996 10:52:56 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id TAA28423; Sat, 27 Jul 1996 19:51:11 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id TAA02547; Sat, 27 Jul 1996 19:51:11 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id TAA02116; Sat, 27 Jul 1996 19:32:58 +0200 (MET DST) From: J Wunsch Message-Id: <199607271732.TAA02116@uriah.heep.sax.de> Subject: Re: Setting disk sector size? To: scsi@freebsd.org Date: Sat, 27 Jul 1996 19:32:58 +0200 (MET DST) Cc: grog@freefall.freebsd.org (Greg Lehey) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199607271632.JAA19498@freefall.freebsd.org> from Greg Lehey at "Jul 27, 96 09:32:23 am" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Greg Lehey wrote: > Unfortunately, 'scsi -f > /dev/rsd0.ctl -m 3 -P 3 -e' gives me a blank file to edit. Bad luck then. This means there are no editable fields at all on this mode page. (scsi -e only offers you those fields that are marked as writable by the device.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Sat Jul 27 12:19:47 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA27053 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 12:19:47 -0700 (PDT) Received: (from grog@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id MAA27047; Sat, 27 Jul 1996 12:19:45 -0700 (PDT) From: Greg Lehey Message-Id: <199607271919.MAA27047@freefall.freebsd.org> Subject: Re: Setting disk sector size? To: joerg_wunsch@uriah.heep.sax.de Date: Sat, 27 Jul 1996 12:19:45 -0700 (PDT) Cc: scsi In-Reply-To: <199607271732.TAA02116@uriah.heep.sax.de> from "J Wunsch" at Jul 27, 96 07:32:58 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > As Greg Lehey wrote: > > > Unfortunately, 'scsi -f > > /dev/rsd0.ctl -m 3 -P 3 -e' gives me a blank file to edit. > > Bad luck then. This means there are no editable fields at all on this > mode page. (scsi -e only offers you those fields that are marked as > writable by the device.) Well, according to scsiformat, the sector size *is* changeable. I've gone through all four -P values, and discovered that the default value is, in fact, 512. Obviously one alternative would be to reset the disk to its default value. Does anybody have any ideas on that? -P 1 (changeable values) lists all the fields, but all are set to 0. Does this mean anything? Greg From owner-freebsd-scsi Sat Jul 27 14:20:10 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA04197 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 14:20:10 -0700 (PDT) Received: from hda.com (ip59-max1-fitch.zipnet.net [199.232.245.59]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA04181; Sat, 27 Jul 1996 14:20:02 -0700 (PDT) Received: (from dufault@localhost) by hda.com (8.6.11/8.6.9) id RAA00514; Sat, 27 Jul 1996 17:13:34 -0400 From: Peter Dufault Message-Id: <199607272113.RAA00514@hda.com> Subject: Re: Setting disk sector size? To: grog@freefall.freebsd.org (Greg Lehey) Date: Sat, 27 Jul 1996 17:13:32 -0400 (EDT) Cc: joerg_wunsch@uriah.heep.sax.de, scsi@freefall.freebsd.org In-Reply-To: <199607271919.MAA27047@freefall.freebsd.org> from "Greg Lehey" at Jul 27, 96 12:19:45 pm Reply-to: hdalog@zipnet.net X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Well, according to scsiformat, the sector size *is* changeable. I've > gone through all four -P values, and discovered that the default value > is, in fact, 512. Obviously one alternative would be to reset the disk > to its default value. Does anybody have any ideas on that? > > -P 1 (changeable values) lists all the fields, but all are set to 0. > Does this mean anything? It means they aren't changeable - changeable fields will be all 1 bits, non-changeable all zero bits. Maybe there are some other steps you have to take before the block size become changeable, such as a jumper or a setting in a different mode page. I'm afraid nothing jumps out at me looking through the direct access mode pages, though. -- Peter Dufault Real-Time Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936 dufault@hda.com Fax: 508 433 5267 From owner-freebsd-scsi Sat Jul 27 14:34:12 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA05121 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 14:34:12 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id OAA05106 for ; Sat, 27 Jul 1996 14:34:06 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA02432; Sat, 27 Jul 1996 23:32:44 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id XAA05281; Sat, 27 Jul 1996 23:32:43 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id XAA02494; Sat, 27 Jul 1996 23:20:19 +0200 (MET DST) From: J Wunsch Message-Id: <199607272120.XAA02494@uriah.heep.sax.de> Subject: Re: Setting disk sector size? To: scsi@freebsd.org Date: Sat, 27 Jul 1996 23:20:19 +0200 (MET DST) Cc: grog@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from j at "Jul 27, 96 07:32:58 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As I wrote: > As Greg Lehey wrote: > > > Unfortunately, 'scsi -f > > /dev/rsd0.ctl -m 3 -P 3 -e' gives me a blank file to edit. > > Bad luck then. This means there are no editable fields at all on this > mode page. (scsi -e only offers you those fields that are marked as > writable by the device.) Thinking more about it, and reading in the specs, this sounds logical. You _might_ however be able to modify the current setting of the physical block size, but in order to get the new block size in effect, you have to reformat. (The SCSI-2 specs explicitly allow this, and it seems to be useful.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-freebsd-scsi Sat Jul 27 15:53:12 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA09905 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 15:53:12 -0700 (PDT) Received: (from grog@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA09896; Sat, 27 Jul 1996 15:53:10 -0700 (PDT) From: Greg Lehey Message-Id: <199607272253.PAA09896@freefall.freebsd.org> Subject: Re: Setting disk sector size? To: hdalog@zipnet.net Date: Sat, 27 Jul 1996 15:53:10 -0700 (PDT) Cc: scsi In-Reply-To: <199607272113.RAA00514@hda.com> from "Peter Dufault" at Jul 27, 96 05:13:32 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > > > Well, according to scsiformat, the sector size *is* changeable. I've > > gone through all four -P values, and discovered that the default value > > is, in fact, 512. Obviously one alternative would be to reset the disk > > to its default value. Does anybody have any ideas on that? > > > > -P 1 (changeable values) lists all the fields, but all are set to 0. > > Does this mean anything? > > It means they aren't changeable - changeable fields will be all 1 bits, > non-changeable all zero bits. That's funny that the default is 512 bytes, then. And how come scsiformat -pv shows all the parameters? > Maybe there are some other steps you have to take before the block > size become changeable, such as a jumper or a setting in a different > mode page. I'm afraid nothing jumps out at me looking through the > direct access mode pages, though. Since this is a used drive, we don't have any information about the jumpers. Looking at the drive, I'd guess it's made by IBM, and it has very few jumpers. I think I'm going to have difficulty following that possibility. It seems to me that an obvious approach would be to try to write back the mode page and see what happens. What command does that? Greg From owner-freebsd-scsi Sat Jul 27 15:54:38 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA09998 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 15:54:38 -0700 (PDT) Received: (from grog@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA09991; Sat, 27 Jul 1996 15:54:37 -0700 (PDT) From: Greg Lehey Message-Id: <199607272254.PAA09991@freefall.freebsd.org> Subject: Re: Setting disk sector size? To: joerg_wunsch@uriah.heep.sax.de Date: Sat, 27 Jul 1996 15:54:37 -0700 (PDT) Cc: scsi In-Reply-To: <199607272120.XAA02494@uriah.heep.sax.de> from "J Wunsch" at Jul 27, 96 11:20:19 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > As I wrote: > > > As Greg Lehey wrote: > > > > > Unfortunately, 'scsi -f > > > /dev/rsd0.ctl -m 3 -P 3 -e' gives me a blank file to edit. > > > > Bad luck then. This means there are no editable fields at all on this > > mode page. (scsi -e only offers you those fields that are marked as > > writable by the device.) > > Thinking more about it, and reading in the specs, this sounds logical. > You _might_ however be able to modify the current setting of the > physical block size, but in order to get the new block size in effect, > you have to reformat. (The SCSI-2 specs explicitly allow this, and it > seems to be useful.) Yes, I have no doubt that I'll need to reformat. That's not the problem, I just want to know how to set the block size first. Greg From owner-freebsd-scsi Sat Jul 27 23:51:21 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA02383 for freebsd-scsi-outgoing; Sat, 27 Jul 1996 23:51:21 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA02371 for ; Sat, 27 Jul 1996 23:51:17 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id IAA11451; Sun, 28 Jul 1996 08:51:13 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA11961; Sun, 28 Jul 1996 08:51:12 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id IAA06933; Sun, 28 Jul 1996 08:37:29 +0200 (MET DST) From: J Wunsch Message-Id: <199607280637.IAA06933@uriah.heep.sax.de> Subject: Re: Setting disk sector size? To: scsi@freebsd.org Date: Sun, 28 Jul 1996 08:37:29 +0200 (MET DST) Cc: grog@freefall.freebsd.org (Greg Lehey) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199607272254.PAA09991@freefall.freebsd.org> from Greg Lehey at "Jul 27, 96 03:54:37 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Greg Lehey wrote: > Yes, I have no doubt that I'll need to reformat. That's not the > problem, I just want to know how to set the block size first. I've just checked with my old scratch disk (a flakey Maxtor MXT-1240S), and this one lets me specify a sector size on the Rigid Disk Geometry page (using scsi -e). The size will be reverted to the current size if i'm performing some IO on the drive. I'm now reformatting... So if your IBM drive doesn't do it this way, they will most likely abuse a vendor-specific mode page for this. You have to get this information from the vendor then. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)