[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-ppc
Subject:    Odd error mounting removable scsi
From:       "R. Jay Mashl" <mashl () ncsa ! uiuc ! edu>
Date:       2000-04-30 21:54:37
[Download RAW message or body]


I have a removable magneto optical drive with a single HFS partition at
/dev/sdc4.  The following problem occurs under LinuxPPC-2000 with rsync kernel
2.2.15pre19 on a PowerMac 6500, but did not occur under Q3 (extensively
upgraded) with linux-pmac-2.2.10.  I am using the same kernel config options
for both kernels.

To get linux to recognize the drive, I run a script containing the line
echo "scsi add-single-device 0 0 2 0" > /proc/scsi/scsi
The output message has the correct block size, number of sectors, etc.
If I do a 'mount -t hfs /dev/sdc4 /mnt/mo', there is an error with the output

sd.c:Bad block number/count requestedscsidisk I/O error: dev 08:24, sector 2
hfs_fs: unable to read block [blah] from dev 08:24
hfs_fs: Unable to read superblock
sd.c:Bad block number/count requestedscsidisk I/O error: dev 08:24, sector 0
hfs_fs: unable to read block [blah] from dev 08:24
hfs_fs: Unable to read block 0
mount: wrong fs type, bad option, bad superblock on /dev/sdc4,
      or too many mounted file systems

The permissions on /mnt and /mnt/mo were all 777.  On the other hand, if I
'hmount' that partition, there are no errors whatsoever and it mounts fine and
is completely readable/writable.

I tried regressing the mount RPM to the Q3 version (mount-2.9o-1.ppc.rpm), but
that didn't help.  I recompiled a 2.2.15pre19 kernel using the pmac-2.2.10
kernel sources for sd.c and fs/hfs/ instead, and this didn't solve the problem
either.

Any help would be greatly appreciated.

Jay


** Sent via the linuxppc-user mail list. See http://lists.linuxppc.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic