LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-05-2004, 09:23 AM   #1
Tepel
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
USB-storage in a 2.6 kernel


Ok its like this

I own a USB MP3 storage device, when i was using my 2.4 kernel there were no problems mounting it whatsoever the only thing was which device to use.

a week ago i updated to the 2.6 kernel and now i cant seem to mount my USB stick
at first i tried the default line i had in my fstab since 2.4
The only thing it gave me was an error that /dev/sda1 didnt exist
after browsing through some threads here i read something about `dmesg` so i plugged in my usb device, executed dmesg got this

[ Lots of other stuff ]

hub 1-0:1.0: new USB device on port 2, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Model: USB MP3 Rev: 1.04
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3

so i tried to mount my stick using /dev/sg0
and then i got this
mount: /dev/sg0 is not a block device

has anyone got the same problem ??
im using Gentoo as a distro and got the right optoins compiled into my kernel (i think :)
 
Old 01-05-2004, 09:35 AM   #2
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
You might want to do 'lspci -v' and it will tell you the type of usb you have (UHCI, OHCI, EHCI) and make sure those are built into the kernel. Also there is a separate selection of USB mass storage in the 2.6 kernel configs that gave me problems so you might want to try that or not.

rberry88
 
Old 01-05-2004, 09:39 AM   #3
Tepel
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Original Poster
Rep: Reputation: 0
wont work, dont have that command, but its UHCI

Last edited by Tepel; 01-05-2004 at 09:47 AM.
 
Old 01-05-2004, 10:17 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
You must be missing something. You need to make sure you have SCSI disk support, SCSI generic support, SCSI emulation, and all the USB stuff enabled. I too run gentoo and I get the following message when I plug in my USB Mass Storage digital camera:
Code:
hub 1-0:1.0: new USB device on port 2, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
  Vendor: NIKON     Model: NIKON DSC E775    Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sda: 128128 512-byte hdwr sectors (66 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
 /dev/scsi/host0/bus0/target0/lun0: p1
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
I then just have to mount the device at /dev/sda1 as I always did with gentoo even before I went to a 2.6.1-mm kernel.

You seam to be missing the "Attached scsi removable disk...." line.

- John

Last edited by jtshaw; 01-05-2004 at 10:19 PM.
 
Old 01-30-2004, 02:12 PM   #5
michip
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
Hi,

I've found your question because I had the same problem. After som looking, I recognized that I missed the support for multiple LUNs in the SCSI-Section of the kernel-config.

After this, you will have

/dev/scsi/host<your hostnumber here>/bus0/target0/lunX

where X depends on the number of slots on your reader. In one of the /dev/scsi/host<your hostnumber here>/bus0/target0/lunX you will find disc, generic and hopefully at least part1. This is mountable...

CU

Michael
 
  


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
USB storage: kernel jaakkop Linux - Hardware 1 09-10-2005 12:35 PM
USB Mass Storage in kernel 2.6.8.1 cb951303 Slackware 2 11-04-2004 05:23 PM
USB Storage with Kernel 2.6.7 acting very strangely and not mounting correctly animehair Linux - Hardware 2 10-13-2004 10:17 AM
kernel 2.6.7 & USB Mass Storage KMcD Linux - General 2 06-23-2004 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:18 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration