Forums

Skip to content

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

usb stick and "no medium found"

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
6 posts • Page 1 of 1
Author
Message
v_andal
Guru
Guru
Posts: 549
Joined: Tue Aug 26, 2008 4:25 pm
Location: Germany

usb stick and "no medium found"

  • Quote

Post by v_andal » Thu Aug 18, 2011 4:29 pm

Got weird problem. When I insert USB stick (16GB) I get messages

usb 2-1.8: new high speed USB device number 7 using ehci_hcd
scsi10 : usb-storage 2-1.8:1.0
scsi 10:0:0:0: Direct-Access USB Mass Storage Device PQ: 0 ANSI: 0 CCS
sd 10:0:0:0: Attached scsi generic sg3 type 0
sd 10:0:0:0: [sdc] Attached SCSI removable disk

But if I try to access this disk in any way, for example "fdisk /dev/sdc" then I get error

fdisk: unable to open /dev/sdc: No medium found

At first I thought that the disk is bad, but I've plugged it into Debian computer and everything works there. It also works under Windows.

What could be the problem? Debian runs 2.6.32. Gentoo runs 2.6.39. I have another USB stick with 2GB and this one works everywhere.
Top
b0nafide
Apprentice
Apprentice
User avatar
Posts: 171
Joined: Sun Feb 17, 2008 9:48 pm
Location: ~/

  • Quote

Post by b0nafide » Thu Aug 18, 2011 5:02 pm

Hmmm, searching the forums a bit my guess is:

Code: Select all

# grep CONFIG_BLK_DEV_UB /usr/src/linux/.config
(it shouldn't be set)
Top
DooBeDooBeDo
Apprentice
Apprentice
User avatar
Posts: 220
Joined: Wed Aug 21, 2002 9:50 pm
Location: UK

  • Quote

Post by DooBeDooBeDo » Thu Aug 18, 2011 11:11 pm

I have a similar problem but only on one box
Bad box:

Code: Select all

usb 2-4: new high speed USB device using ehci_hcd and address 2
usb 2-4: New USB device found, idVendor=14cd, idProduct=8123
usb 2-4: New USB device strings: Mfr=1, Product=3, SerialNumber=2
usb 2-4: Product: USB 2.0  SD MMC READER 
usb 2-4: Manufacturer: SDMMC MA8123
usb 2-4: SerialNumber: 812822222789
Initializing USB Mass Storage driver...
scsi8 : usb-storage 2-4:1.0
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
scsi 8:0:0:0: Direct-Access     USB 2.0  SD MMC Reader         PQ: 0 ANSI: 0 CCS
sd 8:0:0:0: Attached scsi generic sg3 type 0
sd 8:0:0:0: [sdc] Attached SCSI removable disk
Same kernel both machines, working machine is 64bit

Code: Select all

uname -r
2.6.38-gentoo-r6
Good box:

Code: Select all

usb 1-6: new high speed USB device using ehci_hcd and address 10
usb 1-6: New USB device found, idVendor=14cd, idProduct=8123
usb 1-6: New USB device strings: Mfr=1, Product=3, SerialNumber=2
usb 1-6: Product: USB 2.0  SD MMC READER 
usb 1-6: Manufacturer: SDMMC MA8123
usb 1-6: SerialNumber: 812822222789
scsi12 : usb-storage 1-6:1.0
scsi 12:0:0:0: Direct-Access     USB 2.0  SD MMC Reader         PQ: 0 ANSI: 0 CCS
sd 12:0:0:0: Attached scsi generic sg1 type 0
sd 12:0:0:0: [sdb] 15548416 512-byte logical blocks: (7.96 GB/7.41 GiB)
sd 12:0:0:0: [sdb] Write Protect is off
sd 12:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 12:0:0:0: [sdb] Assuming drive cache: write through
sd 12:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 12:0:0:0: [sdb] Assuming drive cache: write through
sd 12:0:0:0: [sdb] Attached SCSI removable disk
And on both machines:

Code: Select all

grep CONFIG_BLK_DEV_UB /usr/src/linux/.config
# CONFIG_BLK_DEV_UB is not set
Top
v_andal
Guru
Guru
Posts: 549
Joined: Tue Aug 26, 2008 4:25 pm
Location: Germany

  • Quote

Post by v_andal » Fri Aug 19, 2011 6:57 am

It is also not set in my case. In fact, I've tried it yesterday on another Gentoo installation - same problem. I've even downgraded to 2.26.32 with no success. So, something else is missing in my gentoo installations :roll:
Top
v_andal
Guru
Guru
Posts: 549
Joined: Tue Aug 26, 2008 4:25 pm
Location: Germany

  • Quote

Post by v_andal » Fri Aug 19, 2011 10:01 pm

I've tried to enable debugging message for USB storage driver. Got the following interesting part. See the highlighted line.

Aug 19 23:28:03 avlap kernel: usb-storage: Attempting to get CSW...
Aug 19 23:28:03 avlap kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Aug 19 23:28:03 avlap kernel: usb-storage: Status code 0; transferred 13/13
Aug 19 23:28:03 avlap kernel: usb-storage: -- transfer complete
Aug 19 23:28:03 avlap kernel: usb-storage: Bulk status result = 0
Aug 19 23:28:03 avlap kernel: usb-storage: Bulk Status S 0x53425355 T 0x2 R 0 Stat 0x1
Aug 19 23:28:03 avlap kernel: usb-storage: -- transport indicates command failure
Aug 19 23:28:03 avlap kernel: usb-storage: Issuing auto-REQUEST_SENSE
Aug 19 23:28:03 avlap kernel: usb-storage: Bulk Command S 0x43425355 T 0x3 L 18 F 128 Trg 0 LUN 0 CL 6
Aug 19 23:28:03 avlap kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
Aug 19 23:28:03 avlap kernel: usb-storage: Status code 0; transferred 31/31
Aug 19 23:28:03 avlap kernel: usb-storage: -- transfer complete
Aug 19 23:28:03 avlap kernel: usb-storage: Bulk command transfer result=0
Aug 19 23:28:03 avlap kernel: usb-storage: usb_stor_bulk_transfer_sglist: xfer 18 bytes, 1 entries
Aug 19 23:28:03 avlap kernel: usb-storage: Status code 0; transferred 18/18
Aug 19 23:28:03 avlap kernel: usb-storage: -- transfer complete
Aug 19 23:28:03 avlap kernel: usb-storage: Bulk data transfer result 0x0
Aug 19 23:28:03 avlap kernel: usb-storage: Attempting to get CSW...
Aug 19 23:28:03 avlap kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Aug 19 23:28:03 avlap kernel: sd 2:0:0:0: Attached scsi generic sg2 type 0

For "working" USB stick this request is successful and after that the driver requests the size of the medium. Do they have some patch in the Debian version of the kernel that is not present in the Gentoo version?
Top
v_andal
Guru
Guru
Posts: 549
Joined: Tue Aug 26, 2008 4:25 pm
Location: Germany

  • Quote

Post by v_andal » Sun Aug 21, 2011 5:52 pm

I keep searching, though it seems I should simply open a bug report.

I've found this thread http://www.mail-archive.com/linux-usb-u ... 16821.html that talks about similar problem.

After reading it, I've also tried to attach USB stick before turning computer on. And it indeed worked fine. The messages corresponding to posted above looked like
Aug 21 18:56:40 avlap kernel: usb-storage: Attempting to get CSW...
Aug 21 18:56:40 avlap kernel: usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
Aug 21 18:56:40 avlap kernel: usb-storage: Status code 0; transferred 13/13
Aug 21 18:56:40 avlap kernel: usb-storage: -- transfer complete
Aug 21 18:56:40 avlap kernel: usb-storage: Bulk status result = 0
Aug 21 18:56:40 avlap kernel: usb-storage: Bulk Status S 0x53425355 T 0x18a R 0 Stat 0x0
Aug 21 18:56:40 avlap kernel: usb-storage: scsi cmd done, result=0x0
What an interesting problem. What could be different at boot time? Is it actually udev problem?
Top
Post Reply

6 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