Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Genuine question - usb flash disks and 2.6+

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
Pink
Veteran
Veteran
User avatar
Posts: 1062
Joined: Thu Jul 24, 2003 11:52 am

Genuine question - usb flash disks and 2.6+

  • Quote

Post by Pink » Sat Feb 07, 2004 9:38 am

Has anyone actually got their usb flash disk/usb mp3 player working in 2.6+ kernel?

Please note, I am not asking about any other usb device - just flash drives. I am also not asking how to, their are plenty of other threads about it. Just the one simple question.

I know it works on my system - I run gs-sources (2.4.23) and plug it in (a bytestor 256mb flash drive), mount it (it is always /dev/sda1), copy files, delete files, unmount it. Plug it straight back in and repeat until not funny.

No matter what 2.6 kernel I use, from 2.6-test4 to 2.6.2-love1, they will not mount, (no block device) the first time, then unplug, plug it back in and nothing - absolutely nothing, no flicker, nothing. No change in /dev/sd, no flashing led on the flash drive - simply not seen.

This is the only reason I have not changed to 2.6+ (and I love the love-sources!)

So my simple question (again) has anyone got their usb flash drive working in 2.6+? (plug it in, mount it, unmount , plug it in again, etc) 8O

Let me know I have a chance of sanity....
Top
ehudokai
n00b
n00b
User avatar
Posts: 53
Joined: Fri Dec 27, 2002 6:47 am
Location: Southern Cal, USA
Contact:
Contact ehudokai
Website

Failed before/about to try again

  • Quote

Post by ehudokai » Sun Feb 08, 2004 4:30 am

I have a Sony Clie N710C that my father recently gave me.

I had tryed before to mount it in linux under 2.6. It mounts the memory stick exactly the same way as a usb drive. I was unsuccessful until I went back to 2.4. Then it mounted beautifully.....

Then I ran across this post on the clie-linux mailing list http://kreucher.net/pipermail/clie-linu ... 00492.html

There the individual offers a patch to remove the strict protocol checking from the transport.c file. I could be way off base, but your device may be violating the usb drive specs similarly to my sony clie's...

I haven't tested this yet, but I am about to and I'll let you know if it works.

-jb
Linux saved my life and made me $1 million dollars over night... for only 19.95 it can all be yours :)
Top
0ctane
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 115
Joined: Sat Jun 21, 2003 4:23 pm
Location: Cincinnati, OH

Re: Failed before/about to try again

  • Quote

Post by 0ctane » Sun Feb 08, 2004 1:45 pm

ehudokai wrote:I haven't tested this yet, but I am about to and I'll let you know if it works.
-jb
Keep us posted. I want to connect a Sony memorystick camera. What kernel options are needed in 2.6?
<signature></signature>
-----------------------------
Top
ehudokai
n00b
n00b
User avatar
Posts: 53
Joined: Fri Dec 27, 2002 6:47 am
Location: Southern Cal, USA
Contact:
Contact ehudokai
Website

mild success...

  • Quote

Post by ehudokai » Mon Feb 09, 2004 1:54 am

Ok, well I was able to mount my memory stick under 2.6 with the patch mentioned previously. However, there are still issues.

First is that it recognized the scsi disk and created a device for it, but apparently didn't scan the disk for partitions.. because no sda1 showed up. Once I used a partitioning tool to make sure the disk really was my MS, it then scanned and sda1 showed up, and I was able to mount it.

Second problem is that once I unmounted the device and tried disconnecting it, both the scsi_mod and usb_storage hung. Thus trying to reattach the device was futile.

I am a programmer, but I know VERY little about kernel hacking. I was trying to figure out how to increase the DEBUG level so I could see more in my logs, but haven't exactly figured out how to do that.

On the memory stick camera front, I have been able to mount my sony memory stick through my DV camera under 2.6, so you should be able to do that. You need to have scsi enabled including the suboptions of scsi disk and scsi generic all preferably as modules, and the usb-storage module as well. That should do it. Then you should be able to plug it in, and if you have hotplug running it should autodetect it. If not you can modprobe the appropriate modules.. which I think are

Code: Select all

scsi_mod sd_mod sg usb-storage
and your usb drivers
That should allow it to show up as well. It ought to show up as /dev/sda1 unless that device is in use in which case /dev/sdb1 and so on... so mount that dev and you should be good. Hope that helps :D

If anyone has any links to some good kernel debugging howtos I would love the info!!!
Linux saved my life and made me $1 million dollars over night... for only 19.95 it can all be yours :)
Top
creese
n00b
n00b
Posts: 58
Joined: Wed Aug 13, 2003 5:22 pm
Location: Folsom, CA

  • Quote

Post by creese » Mon Feb 09, 2004 8:28 pm

Using mm-souces-2.6.2-r1 my compact flash usb reader works. Only problem is that it doesn't scan the partition table. I have to do "fdisk /dev/sda" to get it to scan the table. Works fine after that. Plugging and unplugging works fine.

Chad
Top
jetblack
Guru
Guru
User avatar
Posts: 340
Joined: Wed Jan 15, 2003 4:38 pm
Location: Evanston, IL, USA

Re: Genuine question - usb flash disks and 2.6+

  • Quote

Post by jetblack » Mon Feb 09, 2004 8:53 pm

PickledOnion wrote:So my simple question (again) has anyone got their usb flash drive working in 2.6+? (plug it in, mount it, unmount , plug it in again, etc) 8O
Yes. 128 MB SanDisk cruzer mini. works like a charm on every 2.6 kernel I've tried.
Top
0ctane
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 115
Joined: Sat Jun 21, 2003 4:23 pm
Location: Cincinnati, OH

Re: mild success...

  • Quote

Post by 0ctane » Mon Feb 09, 2004 9:36 pm

ehudokai wrote: On the memory stick camera front, I have been able to mount my sony memory stick through my DV camera under 2.6, so you should be able to do that. You need to have scsi enabled including the suboptions of scsi disk and scsi generic all preferably as modules, and the usb-storage module as well. That should do it. Then you should be able to plug it in, and if you have hotplug running it should autodetect it
...
That should allow it to show up as well. It ought to show up as /dev/sda1 unless that device is in use in which case /dev/sdb1 and so on... so mount that dev and you should be good. Hope that helps :D
I was adventurous and just plugged it in. Worked fine in 2.6.1. I did not have to enable any special scsi stuff in the kernel, just usb support. I changed my /etc/fstab so that I could mount it as "user". Unmounting leaves /dev/sda1 (other posts/threads mention this), but it is not giving me any troubles. I can remount to the same location and everything works great. The only downside is no long filenames. :)
<signature></signature>
-----------------------------
Top
Pink
Veteran
Veteran
User avatar
Posts: 1062
Joined: Thu Jul 24, 2003 11:52 am

  • Quote

Post by Pink » Mon Feb 09, 2004 9:41 pm

Thanks for all the replies - at least I know it is possible.

I don't mind things not working as long as I know they can - kind of like a light at the end of the tunnel... :D

*goes back to searching for the solution*
Top
ehudokai
n00b
n00b
User avatar
Posts: 53
Joined: Fri Dec 27, 2002 6:47 am
Location: Southern Cal, USA
Contact:
Contact ehudokai
Website

Re: mild success...

  • Quote

Post by ehudokai » Mon Feb 09, 2004 11:47 pm

0ctane wrote: The only downside is no long filenames. :)
Be sure your mounting it with the vfat filesystem type.
Linux saved my life and made me $1 million dollars over night... for only 19.95 it can all be yours :)
Top
Pink
Veteran
Veteran
User avatar
Posts: 1062
Joined: Thu Jul 24, 2003 11:52 am

  • Quote

Post by Pink » Tue Feb 10, 2004 8:20 am

Linux 2.6.3-rc2 kernel is just out and there is an interesting remark in the changelog about usb:
USB gadget: file_storage.c -- remove device_unregister_wait()
Maybe this is the fix I've been waiting for, can't wait for Steel to release the love on this one... :D
Top
melanarchy
n00b
n00b
Posts: 11
Joined: Tue Dec 03, 2002 7:41 pm
Location: New York
Contact:
Contact melanarchy
Website

Toshiba Camera and 2.6.4

  • Quote

Post by melanarchy » Tue Mar 02, 2004 5:50 am

I am having the same problem as PickledOnion with my Toshiba PDR-M81 digital camera. It worked fine with 2.4.x series kernels but when I plug it in to my 2.6.4 kernel I get the following dmesg:

Code: Select all

usb 2-1: new full speed USB device using address 2
scsi0 : SCSI emulation for USB Mass Storage devices
from that point on the camera no longer shows a link when I try to turn it on.
The expectant behaviour would be that after plugging in the camera it would appear in /dev/sda as a file system (vfat) that I could mount, however after plugging the camera in /dev/sda does not appear.

I have USB compiled in, including USB Mass Storage, as well as USB file system support etc.
SCSI generic, disk, cdrom etc.

Incidentally my ipod works better w/ 2.6.4 than it did with any of the 2.4 kernels.

mel
Top
0ctane
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 115
Joined: Sat Jun 21, 2003 4:23 pm
Location: Cincinnati, OH

  • Quote

Post by 0ctane » Tue Mar 02, 2004 4:17 pm

I did not have to use any of the SCSI emulation options to get my Sony DSC-V1 working (gentoo-dev-sources 2.6.3). Maybe there is a conflict? Possibly turn off scsi emulation if you do not need it for anything else.
<signature></signature>
-----------------------------
Top
wolfpakk
n00b
n00b
Posts: 28
Joined: Thu Feb 19, 2004 10:09 pm
Location: sundsvall, sweden

  • Quote

Post by wolfpakk » Tue Mar 02, 2004 4:23 pm

i have a usb sony digital camera (dcs p52) and vanilla-kernel 2.6.3 and have no problem mounting it as /dev/sda1
Top
jamesm
n00b
n00b
Posts: 22
Joined: Fri Jun 13, 2003 10:37 am

Re: Genuine question - usb flash disks and 2.6+

  • Quote

Post by jamesm » Thu Mar 11, 2004 4:49 am

PickledOnion wrote:Has anyone actually got their usb flash disk/usb mp3 player working in 2.6+ kernel?
I have successfully mounted, and used, my Sony Memory Stick based camera (Sony DSC-P8) with 2.6.3 (vanilla sources)
Top
Pink
Veteran
Veteran
User avatar
Posts: 1062
Joined: Thu Jul 24, 2003 11:52 am

  • Quote

Post by Pink » Thu Mar 11, 2004 11:29 am

Thanks, I have them working perfectly now - it was a general issue with the early 2.6 kernels (2.6.1 to be exact) - I think everyone has them working once they upgraded and any problems now are specific hardware problems. :D
Top
Post Reply

15 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic