2001-11-13 06:57:51

by Erik Andersen

[permalink] [raw]
Subject: Partitioning wierdness with 2048-byte sectors

I was just trying out 2.4.15-pre4 and noticed that I am
completely unable to create partitions on my magneto optical
drives (2048 byte hardware sectors). Using fdisk to (try to)
create a single partition uttery fails. dmesg shows:

ll_rw_block: device 08:10: only 2048-char blocks implemented (1024)
sd.c:Bad block number requested I/O error: dev 08:10, sector 0
SCSI device sdb: 310352 2048-byte hdwr sectors (636 MB)
sdb: Write Protect is off
sdb: unknown partition table
SCSI device sdb: 310352 2048-byte hdwr sectors (636 MB)
sdb: Write Protect is off
sdb: unknown partition table

With 2.4.13-ac5 doing the exact same thing works fine with the
following showing up when running dmesg:

ll_rw_block: device 08:10: only 2048-char blocks implemented (1024)
SCSI device sdb: 310352 2048-byte hdwr sectors (636 MB)
sdb: Write Protect is off
sdb: sdb1
SCSI device sdb: 310352 2048-byte hdwr sectors (636 MB)
sdb: Write Protect is off
sdb: sdb1

-Erik

--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--


2001-11-13 09:36:58

by Alan

[permalink] [raw]
Subject: Re: Partitioning wierdness with 2048-byte sectors

> I was just trying out 2.4.15-pre4 and noticed that I am
> completely unable to create partitions on my magneto optical
> drives (2048 byte hardware sectors). Using fdisk to (try to)
> create a single partition uttery fails. dmesg shows:
> ll_rw_block: device 08:10: only 2048-char blocks implemented (1024)
> sd.c:Bad block number requested I/O error: dev 08:10, sector 0

Looks like either Andrea's block device in page cache or the updated
partition code broke stuff.