From: David Wuertele <dave-gnus@bfnet.com>
To: linux-scsi@vger.kernel.org
Cc: linux-usb-users@lists.sourceforge.net
Subject: Trying to troubleshoot ornery Phison usb-storage
Date: Fri, 14 Mar 2003 10:39:25 -0800 [thread overview]
Message-ID: <m34r65lrmq.fsf@bfnet.com> (raw)
I've got a board with a phison flash-card reader chip on it, and I
don't seem to be able to get any of the usb-storage features to work.
I'm looking for troubleshooting tips.
I'm using linux version 2.4.18 on a mipsel architecture. I get the
same negative results whether or not I'm using the phison patch from
http://www.fuw.edu.pl/~pliszka/linux-USB/Phison.tgz. When I try to
fdisk a card inserted in the slot, I get:
# fdisk /dev/scsi/host0/bus0/target0/lun1/disc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The console always prints:
SCSI error: host 0 id 0 lun 1 return code = 8000002
Sense class 7, sense error 0, extended sense 7
I try to create a new Linux partion, which appears to work at first:
Disk /dev/scsi/host0/bus0/target0/lun1/disc: 34 heads, 61 sectors, 1011 cylinders
Units = cylinders of 2074 * 512 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun1/part1 1 1011 1048376+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
#
The console at this point has printed:
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sns = 70 7
ASC=27 ASCQ= 0
Raw sense data:0x70 0x00 0x07 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x27 0x00 0x00 0x00 0x00 0x00
sdb : block size assumed to be 512 bytes, disk size 1GB.
sdb: Write Protect is off
p1
sdb : READ CAPACITY failed.
sdb : status = 1, message = 00, host = 0, driver = 08
Current sd00:00: sns = 70 7
ASC=27 ASCQ= 0
Raw sense data:0x70 0x00 0x07 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x27 0x00 0x00 0x00 0x00 0x00
sdb : block size assumed to be 512 bytes, disk size 1GB.
sdb: Write Protect is off
p1
So I try to make a filesystem and mount:
mkfs /dev/scsi/host0/bus0/target0/lun1/part1
mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
131072 inodes, 262094 blocks
13104 blocks (5.00%) reserved for the super user
First data block=0
8 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: 0/8\b\b\b1/8\b\b\b2/8\b\b\b3/8\b\b\b4/8\b\b\b5/8\b\b\b6/8\b\b\b7/8\b\b\bdone
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
# mount /dev/scsi/host0/bus0/target0/lun1/part1 /mnt/test
mount: Mounting /dev/scsi/host0/bus0/target0/lun1/part1 on /mnt/test failed: Invalid argument
#
The console now prints:
SCSI error: host 0 id 0 lun 1 return code = 8000002
Sense class 7, sense error 0, extended sense 7
SCSI error: host 0 id 0 lun 1 return code = 8000002
Sense class 7, sense error 0, extended sense 7
SCSI error: host 0 id 0 lun 1 return code = 8000002
Sense class 7, sense error 0, extended sense 7
VFS: Can't find ext2 filesystem on dev sd(8,17).
SCSI error: host 0 id 0 lun 1 return code = 8000002
Sense class 7, sense error 0, extended sense 7
FAT: bogus logical sector size 0
VFS: Can't find a valid FAT filesystem on dev 08:11.
SCSI error: host 0 id 0 lun 1 return code = 8000002
Sense class 7, sense error 0, extended sense 7
SCSI error: host 0 id 0 lun 1 return code = 8000002
Sense class 7, sense error 0, extended sense 7
Now when I try to fdisk the same card, it has forgotten the partition:
# fdisk /dev/scsi/host0/bus0/target0/lun1/disc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Command (m for help): p
Disk /dev/scsi/host0/bus0/target0/lun1/disc: 34 heads, 61 sectors, 1011 cylinders
Units = cylinders of 2074 * 512 bytes
Device Boot Start End Blocks Id System
Command (m for help):
Any suggestions on how to troubleshoot this? I've posted a more
verbose console output at http://www.rokulabs.com/phison-console.txt
and the shell that goes with it at http://www.rokulabs.com/phison-shell.txt.
Thanks,
Dave
next reply other threads:[~2003-03-14 18:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-14 18:39 David Wuertele [this message]
2003-03-14 20:24 ` Trying to troubleshoot ornery Phison usb-storage Matthew Dharm
2003-03-14 21:01 ` David Wuertele
2003-03-14 22:47 ` Matthew Dharm
2003-03-14 23:00 ` David Wuertele
2003-03-15 1:55 ` Matthew Dharm
2003-03-15 2:27 ` David Wuertele
2003-03-16 0:13 ` Matthew Dharm
2003-03-21 2:01 ` write protect seems wrong (was Re: Trying to troubleshoot ornery Phison usb-storage) David Wuertele
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m34r65lrmq.fsf@bfnet.com \
--to=dave-gnus@bfnet.com \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb-users@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.