On Sun, 24 Jan 1999, Tobias Richter wrote:

> You ([EMAIL PROTECTED]) wrote:
> > I have a Fujitsu M2513A Magneto optical drive installed in my system,
> > based on an ASUS P2L97-S m/b.
> > 
> > The drive uses 230 Mb and 640 Mb disks: the small disks have 512 byte
> > sectors, the larger disks have 2048 byte sectors.
> > Here's what I havem according to scripts/ver_linux:
> 

More info. I had occasion to reboot & did so with a 640 Mb disk in the
drive. According to dmesg:
(scsi0) <Adaptec AIC-7880 Ultra SCSI host adapter> found at PCI 6/0
(scsi0) Wide Channel, SCSI ID=7, 16/255 SCBs
(scsi0) Downloading sequencer code... 419 instructions downloaded
scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.1.10/3.2.4
       <Adaptec AIC-7880 Ultra SCSI host adapter>
scsi : 1 host.
  Vendor: FUJITSU   Model: M2513A            Rev: 1200
  Type:   Direct-Access                      ANSI SCSI revision: 01
Detected scsi removable disk sda at scsi0, channel 0, id 0, lun 0
(scsi0:0:0:0) Synchronous at 10.0 Mbyte/sec, offset 10.
scsi : detected 1 SCSI disk total.
SCSI device sda: hdwr sector= 2048 bytes. Sectors= 310352 [606 MB] [0.6 GB]
sda: Write Protect is off

Notice that it's recognised 2K sectors.

It happens the disk is formatted hpfs and Linux can't cope with it:
sd.c:Bad block number requestedscsidisk I/O error: dev 08:01, sector 0
HPFS: map_sector: read error
sd.c:Bad block number requestedscsidisk I/O error: dev 08:01, sector 0
Reading super block failed
sd.c:Bad block number requestedscsidisk I/O error: dev 08:01, sector 2
sd.c:Bad block number requestedscsidisk I/O error: dev 08:01, sector 0
HPFS: map_sector: read error
sd.c:Bad block number requestedscsidisk I/O error: dev 08:01, sector 0
Reading super block failed
sd.c:Bad block number requestedscsidisk I/O error: dev 08:01, sector 0
HPFS: map_sector: read error

cfdisk correctly reads the partition table and identifies one partition,
formattted hpfs.

I tried varius ways of mounting to no avail. I suspect the problem here is
IBM's trickery. For these drives there's a filter driver that reads 2K
sectors and passes them out in 512 byte chunks. All the other software
views the drive as being formatted with 512 byte sectors. I imagine this
has implications for device addressing and could well stuff up the Linux
HPFS driver.

This information reinforces my view that Linux' driver needs to get the
device capacity information whenever there's a media change.

-- 
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to