[ag-automation] Problem reading RBF filesystem on SCSI disk

Piotr Czepek piotr.czepek at gmail.com
Mon Mar 19 12:45:42 CET 2007


Hi,

I tried to mount scsi disk with rbf filesystem under linux-2.6.20.
It failed - see dmesg output at the end of message.
I suppose the problem is hardcoded sectorsize in fs/buffer.c file:

        if (unlikely(size & (bdev_hardsect_size(bdev)-1) ||
                        (size < 512 || size > PAGE_SIZE))) {
                printk(KERN_ERR "getblk(): invalid block size %d requested\n",

Sector size on hdd is 256 - is normal for OS9, but linux expects 512 at least.

I tried to make "dirty hack" replacing 512 with 256.
After rebooting hacked kernel I entered command:

# mount -t rbf /dev/sda /mnt/os9

HDD LED started to lit but 'mount' command stood still - no shell prompt....
No error messages, nothing in log file, HDD LED is on for hours but
nothing was mounted.

Any suggestions?


============= dmesg output: =====================
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
        <Adaptec 2940 SCSI adapter>
        aic7870: Single Channel A, SCSI Id=7, 16/253 SCBs

  Vendor: FUJITSU   Model: M1603S-256        Rev: 6236
  Type:   Direct-Access                      ANSI SCSI revision: 02
scsi0:A:0:0: Tagged Queuing enabled.  Depth 32
target0:0:0: Beginning Domain Validation
target0:0:0: FAST-10 SCSI 10.0 MB/s ST (100 ns, offset 15)
target0:0:0: Domain Validation skipping write tests
target0:0:0: Ending Domain Validation
SCSI device sda: 1900044 256-byte hdwr sectors (486 MB)
sda: Write Protect is off
sda: Mode Sense: 85 00 00 08
SCSI device sda: drive cache: write through
SCSI device sda: 1900044 256-byte hdwr sectors (486 MB)
sda: Write Protect is off
sda: Mode Sense: 85 00 00 08
SCSI device sda: drive cache: write through
sda: unknown partition table
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
RBF Filesystem Version 0.60 (alpha)
getblk(): invalid block size 256 requested
=========== end of dmesg output ===========

-- 
best regards
piotr


More information about the ag-automation mailing list