LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-17-2004, 11:45 PM   #1
John_Zbesko
LQ Newbie
 
Registered: Nov 2003
Location: Evanston, IL, USA
Distribution: Kubuntu
Posts: 11

Rep: Reputation: 0
usb-storage -issues with USB2.0?


Like many others posting here, I've had nothing but trouble trying to get my usb flash drive to work properly under linux, specifically, each version of Mandrake.

I noticed that when I upgraded my son's hand me down PC, Mandrake 10.0 is able to work perfectly fine with the falsh drive. I can insert it and remove it and insert it again and it it just works.

The same is not true of my laptop, nor my current PC, both of which have usb 2.0 ports. I get similar error messages as described in many posts here. Booting with the drive inserted helps, but removing and re-inserting messes the PC up. (Konqueror or a shell will hang.)

The desktop PC has a VIA chipset (Athlon CPU) and the laptop is an e-machine also with an athlon.

I'm not a newbie- I've tried modprobe, fdisk -l, mounting usbfs, recompiling 2.4 and 2.6 kernels. One post suggested that the drive may be formatted wrong, like a super floppy? What's that? I formatted the drive in windows xp- no help.

Can anyone suggest a procedure to follow to diagnose the problem, rather than trying one random idea at a time as I google the net?
 
Old 05-17-2004, 11:52 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
When you say "removing and re-inserting messes the PC up," perhaps you could give a more
technical idea of what "messing up" means. Did you umount the device before removing it?
Mine works fine in Slack, and this is how it's setup:
Code:
/dev/sda1        /mnt/hd          vfat        user,umask=1000,rw,auto 0 0
As user I mount and then when finished I umount, no problems. I do notice that if I mount
one of my other 8 USB devices, and then umount, I cannot mount any other device properly
unless I reboot.

You also you formatted the drive in Windoze - as what file system? If NTFS, then you will
only have read access reliably.
 
Old 05-18-2004, 10:38 AM   #3
John_Zbesko
LQ Newbie
 
Registered: Nov 2003
Location: Evanston, IL, USA
Distribution: Kubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
"Messed up" includes several problems. Opening Konqueror and attempting to look at the contents of the flash drive cause Konqueror to hang or go into some process difficult to exit from. Likewise, using a shell to explore the contents also hangs.

When I have been successful in mounting the flash drive, I am unable to successfully unmount it- the green light on the drive stays lit. I believe the hotplug scripts that activate upon insertion may be part of the problem, but I don't know how to "turn them off." The hotplugging of the drive, when it works, never refers to /dev/sda1 but rather to a long scsi path name. Mounting /dev/sda1 produces a device not found error.

I've noticed that I have more success with my digital camera which I believe is usb 1.0. More success means I can plug it into the laptop and I can retrieve pictures.

As for the desktop PC, the usb ports just don't work in Mandrake 9.2. Sometimes usbview will detect devices; most often, it does not.

I've just discovered that booting Knoppix on the laptop provides me with a working flash drive. I can mount and unmount sda1 and insert and remove the drive. Maybe my problems are Mandrake specific?
 
Old 05-18-2004, 08:33 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Quote:
Originally posted by John_Zbesko
"Messed up" includes several problems. Opening Konqueror and attempting to look at the contents of the flash drive cause Konqueror to hang or go into some process difficult to exit from. Likewise, using a shell to explore the contents also hangs.
I've never used a file browser with a USB device before I mounted it from cli. That's why I gave you that line for /etc/fstab so that you can mount it as a user rather than root from cli, then use a file browser, or even mc.

Quote:
When I have been successful in mounting the flash drive, I am unable to successfully unmount it- the green light on the drive stays lit. I believe the hotplug scripts that activate upon insertion may be part of the problem, but I don't know how to "turn them off." The hotplugging of the drive, when it works, never refers to /dev/sda1 but rather to a long scsi path name. Mounting /dev/sda1 produces a device not found error.
As for the light going on and off, it doesn't go off for me in Slack as long as the device is plugged in. In Linux, you mount devices and then you umount (yes, the first n in unmount is missing in the commmand) them. Issue
$ man mount
and read about that command. You may already know this. I never use automount, so cant really advise on that.
Does the listing of devices have to do with devfs (device filesystem)?

Quote:
I've noticed that I have more success with my digital camera which I believe is usb 1.0. More success means I can plug it into the laptop and I can retrieve pictures.
My Sony DSC digital camera works the same as the USB mass storage devices, and it works well on all three comps, also. Do you have USB 2.0 support in your kernel?

Quote:
As for the desktop PC, the usb ports just don't work in Mandrake 9.2. Sometimes usbview will detect devices; most often, it does not.
Sorry, John, I've never used usbview. To detect devices I issue
# lsusb
from cli and add -v if I need more verbose info.

Quote:
I've just discovered that booting Knoppix on the laptop provides me with a working flash drive. I can mount and unmount sda1 and insert and remove the drive. Maybe my problems are Mandrake specific?
I will tell you this - I have 3 computers in my office right now with Slack 9.1 - two PC's and a lappy. With the default bare.i kernel (2.4.22), they all detected both my USB flash drive and USB gas drive (it's a lappy drive in a USB 2.0 case). Both PC's have USB 2.0, but the lappy has USB 1.0. They can all read and write to those USB devices with no problem.

Since Knopppix works fine on that particular comp, why not look at the .config file and see what you've got. Better yet, you could copy it and then boot into Mandy and compare - or maybe save your present config with a different name, then put the Knoppix config in Mandy and recompile with make oldconfig and maybe you're set. Sounds too easy, what's the flaw?

Sorry I can't be of more help, but every time I've tried to help a Mandy user, it's turned sour. It seems that system does things in peculiar ways, and doesn't install all the libraries needed.
 
Old 05-18-2004, 09:44 PM   #5
John_Zbesko
LQ Newbie
 
Registered: Nov 2003
Location: Evanston, IL, USA
Distribution: Kubuntu
Posts: 11

Original Poster
Rep: Reputation: 0
Wink Thanks for help!

Your reply helped, but not in quite the way you may have expected. Experimenting more with my Knoppix CD, I learned Knoppix does a better job of handling my usb devices than Mandrake 9.2 or 10.0. (Thanks also for the lsusb command.)

I've been using Mandrake for over five years. The fact that Knoppix "understands" my hardware better than Mandrake made me stop and think. Your quote,

"Sorry I can't be of more help, but every time I've tried to help a Mandy user, it's turned sour. It seems that system does things in peculiar ways, and doesn't install all the libraries needed."

convinces me that I should try another distribution.
 
Old 05-18-2004, 10:37 PM   #6
Ming Dao
Member
 
Registered: Oct 2003
Location: Earth
Distribution: Linux 2.6.25.4
Posts: 30

Rep: Reputation: 15
Hey, could I put in my two cents for Slack? I used Debian (Knoppix is) before Slack, and it was nice and fast - easy to install. However, when I tried to get stuff with apt-get there were sometimes problems. I ran SID, and to get KDE, for instance, I had to get it from Woody (stable). But that didn't work either, because some of my libraries would have to go backwards, and then apps in unstable wouldn't work.

I think Slack understands the hardware quite well, and it's a true Linux system, also. BSD style, not SysV (like Mandrake and RedHat).

Last edited by Ming Dao; 05-18-2004 at 11:43 PM.
 
Old 05-19-2004, 04:23 AM   #7
Galik
Member
 
Registered: Mar 2003
Location: UK
Distribution: gentoo
Posts: 67

Rep: Reputation: 15
Just thought this thread might be of some help

http://www.linuxquestions.org/questi...hreadid=181510
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM
STRANGE!: Usb Extension cable fixes broken USB2 ? qwijibow Linux - Hardware 2 08-24-2005 03:39 PM
How to... Connect drives on USB, USB2 Port the_rhino Fedora 2 02-07-2005 11:35 PM
USB storage - detected on USB1 port, but not USB2 (Mandrake 10 Official) maehara Mandriva 1 10-27-2004 02:28 PM
pci usb2 card and mass storage. Er how??? BashTin Linux - Hardware 2 10-17-2003 06:34 PM


All times are GMT -5. The time now is 02:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration