PNY flash drive on PC running RH 9.1 vs. RH 7.1

From: Allan Adler (ara_at_nestle.csail.mit.edu)
Date: 06/09/05


Date: 08 Jun 2005 23:24:02 -0400


I have been trying to get a PNY USB 2.0 FD flash drive to work on two
PC's, one of which has RH 7.1 and the other of which has RH 9.1. I have
succeeded in getting it to work on the one with RH 7.1 but I don't know
for certain which of the things I did are responsible for it working. I
am unable to get it to work on the one with RH 9.1.

Basically, on the one with RH 7.1, I created a file named /etc/updfstab.conf
and placed

symlink false
device flash {
        match hd flash
        }

in it. I also added the line
/dev/sda1 /mnt/flash auto noauto,owner 0 0
to the file /etc/fstab. I also created the directory /mnt/flash and executed
/usr/sbin/modprob usb-storage
just in case and found after plugging in the flash drive that
/proc/scsi/scsi/usb-storage-0/0 contained all the information about the
flash drive. Then I mounted it with the command
mount -t msdos /dev/sda1 /mnt/flash
and was able to read and write to the flash drive with no difficulty.

Question: is there such a thing as formatting the flash drive for Linux,
e.g. with an ext2 file system? If so, how.

On the other PC, with RH 9.1, there was already a file /etc/updfstab.conf
which simply sourced another file named /etc/updfstab.conf.default. The
entry for flash in the latter read

device flash {
        partition 1
        match hd CompactFlash
        match hd ImageMate
        }

I have no idea what these are. I added match hd PNY as a third option
in /etc/updfstab.conf after the default file was read in, since later
entries override earlier ones. I also tried it with the same version I
used on the RH 7.1 system. In neither case could I mount the flash drive.
It did create the file /proc/scsi/usb-storage-0/0 with the right information
but it said that is is not attached. The error message when I plugged in
the flash drive was, according to dmesg:

hub.c: already running port 1 disabled by hub (EMI?), re-enabling
usb.c: USB disconnect on device 00:1d.0-1 address 2
hub.c: Cannot enable port 1 of hub 1, disabling port.
hub.c: Maybe the USB cable is bad?

As I already mentioned, it works on RH 7.1 without the cable but I get
this error message on RH 9.1 with or without the cable. When I execute

mount -t msdos /dev/sda1 /mnt/flash

I get the error message

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

which I think means it isn't detecting the flash drive, which is consistent
with the proc file saying the device is not attached. I have no idea which
of the /dev/sd* devices is the right one to use. On RH 7.1, I first tried
/dev/sda and got an error message. When I used /dev/sda1, it worked fine.
None of the choices works on the RH 9.1 but that might be irrelevant, the
real problem being that Linux thinks the flash drive is not attached.

Anyway, the differences in the configurations of the various files
/etc/*fstab* between the two versions of RH show that there might be
some features of the upgraded OS that I need to understand. I suspect
that I'm actually close to being able to get the flash drive to work
on the RH 9.1 system. If you know how to do it, based on the above,
please let me know.

-- 
Ignorantly,
Allan Adler <ara@zurich.csail.mit.edu>
* Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and
* comments do not reflect in any way on MIT. Also, I am nowhere near Boston.


Relevant Pages

  • Re: Power Surge on Hub Port
    ... With NO USB ... A USB device has exceed the power limits of its hub port. ... Googled the error message, but no luck there either even though it looks ...
    (microsoft.public.windowsxp.general)
  • Re: USB port is disabled - Power problems.
    ... after using a normal memory stick i got this error message when i ... " Using to much power at the USB port - ... A USB decive is consuming to much power at the moment. ...
    (comp.sys.mac.system)
  • Re: Need help with diagnostics
    ... serial/com ports. ... a COM port address. ... (USB version - details here: ... Tell him to note the error message before calling. ...
    (uk.rec.cars.maintenance)
  • Re: usb 2.0 error
    ... In order to have USB 2.0, you must have a USB 2.0 port on the computer ... > SPEED port. ... > gives me the same error message. ...
    (microsoft.public.windowsxp.hardware)
  • usb_insert_transfer panic with if_zyd
    ... When I use my ZyXEL G-220 Wireless USB Stick with the if_zyd driver, ... <ACPI PCI bus> on pcib0 ... device problem, disabling port 1 ... <Ethernet over FireWire> on firewire0 ...
    (freebsd-current)