USB Compact Flash Problem

USB Compact Flash Problem

Post by Christopher Bayl » Thu, 16 Oct 2003 06:46:59



Sorry for yet another USB Compact Flash problem added to the list.  I
too am having difficulty mounting a 256Mb CF card that I just bought.

System RH 8.0 2.4.18-14smp

So far I have:

1) Created a line in my /etc/fstab file:
/dev/sda1                /mnt/usbcard           vfat    user,noauto  0 0

2) Checked to see that usb modules are loaded with /sbin/lsmod.
Output is:

usb-uhci               27276   0  (unused)
usb-storage            62488   0
sd_mod                 13584   0  (autoclean)

3) Then when I run: mount /mnt/usbcard/
mount: /dev/sda1 is not a valid block device

4) Similarly when I try to either create a new partition on the CF
card or make a new file system I get the following messages:


Unable to read /dev/sda


Disk /dev/sda: 1023 cylinders, 64 heads, 32 sectors/track
read: Input/output error

sfdisk: read error on /dev/sda - cannot read sector 0
 /dev/sda: unrecognized partition
No partitions found

or when I run mkfs -t vfat /dev/sda

mkfs.vfat 2.8 (28 Feb 2001)
mkfs.vfat: Will not try to make filesystem on '/dev/sda'

5) Following the suggestion of another post on a similar subject I ran


00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host
bridge (rev 03)
        Flags: bus master, medium devsel, latency 64
        Memory at e4000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [a0] AGP version 1.0

00:01.0 PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge
(rev 03)
(prog-if 00 [Normal decode])
        Flags: bus master, 66Mhz, medium devsel, latency 64
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
        Memory behind bridge: e0000000-e1dfffff
        Prefetchable memory behind bridge: e1f00000-e3ffffff

00:04.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 02)
        Flags: bus master, medium devsel, latency 0

00:04.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
(prog-if 80
[Master])
        Flags: bus master, medium devsel, latency 32
        [virtual] I/O ports at 01f0
        [virtual] I/O ports at 03f4
        [virtual] I/O ports at 0170
        [virtual] I/O ports at 0374
        I/O ports at d800 [size=16]

00:04.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
(prog-if 00 [UHCI])
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at d400 [size=32]

00:04.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
        Flags: medium devsel, IRQ 9

00:09.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado]
(rev 74)
        Subsystem: 3Com Corporation 3C905C-TX Fast Etherlink for PC
Management NIC
        Flags: bus master, medium devsel, latency 32, IRQ 5
        I/O ports at d000 [size=128]
        Memory at df800000 (32-bit, non-prefetchable) [size=128]
        Expansion ROM at <unassigned> [disabled] [size=128K]
        Capabilities: [dc] Power Management version 2

00:0a.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev
08)
        Subsystem: Ensoniq Creative Sound Blaster AudioPCI64V,
AudioPCI128
        Flags: bus master, slow devsel, latency 32, IRQ 10
        I/O ports at b800 [size=64]
        Capabilities: [dc] Power Management version 1

00:0c.0 Unknown mass storage controller: Promise Technology, Inc.
20268 (rev 02) (prog-if 85)
        Subsystem: Promise Technology, Inc. Ultra100TX2
        Flags: bus master, 66Mhz, slow devsel, latency 32, IRQ 11
        I/O ports at b400 [size=8]
        I/O ports at b000 [size=4]
        I/O ports at a800 [size=8]
        I/O ports at a400 [size=4]
        I/O ports at a000 [size=16]
        Memory at df000000 (32-bit, non-prefetchable) [size=16K]
        Expansion ROM at <unassigned> [disabled] [size=16K]
        Capabilities: [60] Power Management version 1

01:00.0 VGA compatible controller: nVidia Corporation RIVA TNT2 Model
64 (rev 15) (prog-if 00 [VGA])
        Subsystem: nVidia Corporation: Unknown device 001e
        Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11
        Memory at e0000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e2000000 (32-bit, prefetchable) [size=32M]
        Expansion ROM at e1ff0000 [disabled] [size=64K]
        Capabilities: [60] Power Management version 1
        Capabilities: [44] AGP version 2.0

But at this point, I don't know what else to do.  Can someone PLEASE
help me out.

I'd really like to get this CF card to work.

Thanks for your help

Chris

 
 
 

USB Compact Flash Problem

Post by Dances With Crow » Fri, 17 Oct 2003 03:12:31


On 14 Oct 2003 14:46:59 -0700, Christopher Bayley staggered into the
Black Sun and said:

Quote:> having difficulty mounting a 256Mb CF card that I just bought.
> System RH 8.0 2.4.18-14smp
> 1) Created a line in my /etc/fstab file:
> /dev/sda1   /mnt/usbcard   vfat  user,noauto  0 0
> 2) Checked to see that usb modules are loaded with /sbin/lsmod.
> usb-uhci               27276   0  (unused)
> usb-storage            62488   0
> sd_mod                 13584   0  (autoclean)

Where's scsi_mod ?  Where's usbcore?  If Redhat builds scsi_mod directly
into the kernel, no problem, but "dmesg | grep -i scsi" should show you
something.  usbcore should be loaded as well.

> mount: /dev/sda1 is not a valid block device

> Unable to read /dev/sda

Either scsi_mod is not loaded or the device is not being recognized by
the usb-storage module.  If the latter, first thing to try is upgrading
your kernel--2.4.18 is old.  Don't use 2.4.20 (performance problems), go
for 2.4.21 or 2.4.22.


> 00:04.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
> (prog-if 00 [UHCI])
>         Flags: bus master, medium devsel, latency 32, IRQ 5
>         I/O ports at d400 [size=32]

OK, it has an IRQ and usb-uhci is the right module to use.  Everything
should work.  Something else is going wrong, and there's not enough info
in your post to figure out what it is.  Do "dmesg > temp.txt", then post
temp.txt on your webspace, then follow up to this message with a URL
pointing to the place where you posted the file.

--
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /  "He is a rhythmic movement of the
-----------------------------/    penguins, is Tux." --MegaHAL

 
 
 

USB Compact Flash Problem

Post by Christopher Bayl » Fri, 17 Oct 2003 08:03:26


Thanks for the reply Dances With Crows.  Since I posted the message I
got utterly fed up and returned the USB card, and got another one, by
another manufacturer.

This time, I plugged it in and everything worked, APART from one
thing.  When I mounted it under /dev/sda1 I got a mount: No medium
found.  Recalling a previous posting, I thought I'd try mounting under
/dev/sdb1, and voila it worked.

Now if someone can tell me why I can mount under /dev/sdb1 and not
/dev/sda1 I'd be really interested in finding out.

Thanks

Chris


> On 14 Oct 2003 14:46:59 -0700, Christopher Bayley staggered into the
> Black Sun and said:
> > having difficulty mounting a 256Mb CF card that I just bought.
> > System RH 8.0 2.4.18-14smp
> > 1) Created a line in my /etc/fstab file:
> > /dev/sda1   /mnt/usbcard   vfat  user,noauto  0 0

> > 2) Checked to see that usb modules are loaded with /sbin/lsmod.
> > usb-uhci               27276   0  (unused)
> > usb-storage            62488   0
> > sd_mod                 13584   0  (autoclean)

> Where's scsi_mod ?  Where's usbcore?  If Redhat builds scsi_mod directly
> into the kernel, no problem, but "dmesg | grep -i scsi" should show you
> something.  usbcore should be loaded as well.

> > mount: /dev/sda1 is not a valid block device

> > Unable to read /dev/sda

> Either scsi_mod is not loaded or the device is not being recognized by
> the usb-storage module.  If the latter, first thing to try is upgrading
> your kernel--2.4.18 is old.  Don't use 2.4.20 (performance problems), go
> for 2.4.21 or 2.4.22.


> > 00:04.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
> > (prog-if 00 [UHCI])
> >         Flags: bus master, medium devsel, latency 32, IRQ 5
> >         I/O ports at d400 [size=32]

> OK, it has an IRQ and usb-uhci is the right module to use.  Everything
> should work.  Something else is going wrong, and there's not enough info
> in your post to figure out what it is.  Do "dmesg > temp.txt", then post
> temp.txt on your webspace, then follow up to this message with a URL
> pointing to the place where you posted the file.