LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-24-2002, 09:03 PM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
USB Mass Storage


I really want my NEO jukebox (it's essentially a harddrive) to work under linux and I think it's something simple to get it to work. I am running Mandrake 9.0 and it already has all the usb mass storage stuff in it. I also run two scsi harddrives (/dev/sda $ /dev/sdb) How do I figure out where the mass storage driver places the usb harddrive? I have tried to mount it under /dev/sdc1 and the error mesage says that:

mount: special device /dev/sdc1 does not exist

Please help me out, I have been wanting to get this thing to work for a while. Is there a utility to see where the mass storage device driver places the partition? Any thing would be helpful.
 
Old 10-24-2002, 09:09 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Have a look at the logs ('tail -f /var/log/messages') and see what it spits out when you plug the drive in. If it is a usb mass storage device and if it is recognized it should show you how it was assigned.
 
Old 10-24-2002, 09:23 PM   #3
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
will it tell me which /dev it attaches to?
 
Old 10-24-2002, 10:12 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Assuming you have everything set up correctly and it's all working, AND
you are running devfs:
If you do a:

cat /proc/scsi/scsi

You'll see something like this:

Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: NIKON Model: NIKON DSC E995 Rev: 1.00
Type: Direct-Access ANSI SCSI revision: 02

The important thing is the "Host:" line, as that tells you where the device
is connected.

In this case, it's connected to SCSI1, 0,0,0. This means your device is:

/dev/scsi/host1/bus0/target0/lun0/disc

<EDIT>
You may not need to be running devfs for this to work, but it's much
easier to figure this out. . .
</EDIT>

Last edited by moses; 10-24-2002 at 10:15 PM.
 
Old 10-24-2002, 10:24 PM   #5
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST39204LW Rev: 0002
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST318404LW Rev: 0002
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: PLEXTOR Model: CD-R PX-W124TS Rev: 1.07
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: Model: Rev:
Type: <NULL> ANSI SCSI revision: ffffffff

That is what I got. My neo jukebox has a standard 2.5" 10 gig harddrive in it. Is this what is supposed to happen or is my neo jukebox not being identified by the kernel? Like I said before, the dmesg says that it loaded the usb mass storage device,
 
Old 10-25-2002, 01:34 PM   #6
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
I'm seeing two Seagate hard drives, one Plextor CD-ROM drive and
something else that isn't recognized by the SCSI driver. The two hard
drives are on the same controller, so I'm guessing that they are both
installed within your box. The unidentified device is probably your neo, try
mounting that with:

mount /dev/scsi/host1/bus0/target0/lun0/disc /mnt
 
Old 10-25-2002, 04:30 PM   #7
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
[root@localhost mrsolo]# mount /mnt/neo
[mntent]: warning: no final newline at the end of /etc/fstab
mount: special device /dev/scsi/host1/bus0/target0/lun0/disc does not exist

The above is what I got when I typed in that location. What gives? I get that error everytime I attempt to mout it. I know Mandrake 9.0 is loading the drivers for a mass storage device, I just can't seem to mount it because it doesn't have a /dev location that I know of.
 
Old 10-25-2002, 04:32 PM   #8
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
hub.c: USB new device connect on bus2/2, assigned device number 3
usb.c: USB device 3 (vend/prod 0x4ce/0x2) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
usb.c: USB disconnect on device 3
Unable to handle kernel paging request at virtual address 01100112
printing eip:
f0866001
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0010:[<f0866001>] Not tainted
EFLAGS: 00010282
eax: 00000004 ebx: 01100112 ecx: 00000004 edx: 00000004
esi: ed779cbc edi: 01100112 ebp: e2c67f64 esp: e2c67f50
ds: 0018 es: 0018 ss: 0018
Process scsi_eh_1 (pid: 2298, stackpage=e2c67000)
Stack: 00000001 01100112 00000282 ed779e00 ed779c00 e2c67f84 f6b3f2c9 ed779c00
ed779eac ed779f44 00000282 ed779a00 00000000 e2c67f98 f0805aa1 ed779a00
00000000 ed779a00 e2c67fc4 f080646c ed779a00 ee699880 e2c67fd8 00000000
Call Trace: [<f6b3f2c9>] [<f0805aa1>] [<f080646c>] [<f0806976>] [<c0107526>]
[<f0806870>]

Code: f3 a6 0f 84 cb 00 00 00 53 e8 d1 c1 8c cf 8b 5d 08 53 e8 e8
<6>hub.c: USB new device connect on bus2/2, assigned device number 4
cdrom: This disc doesn't have any tracks I recognize!


Actually, I don't think the driver is loaded at all. Do you think I need to recompile the kernel?
 
Old 10-25-2002, 04:43 PM   #9
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Can you do a:

ls /dev/scsi

Also,

cat /proc/filesystems

This will tell you whether you're using devfs. If not, I'll need to think back
to the dark ages and try to remember if there is an easy way to figure out
what device names are used for which controllers.

That's a dump from the kernel, and while I don't actually know exactly
what it means, you can either do a lot of web hunting to find out (and in
the end probably submit a bug report to the SCSI or USB maintainer), or
first try recompiling your kernel, which will take a lot less time, but you
won't learn as much. . .

If you are going to recompile your kernel, read up on devfs, it's freakin' cool
and very useful, but also can be dangerous if you don't make sure you've
done everything correctly.
 
Old 10-25-2002, 04:44 PM   #10
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Also,
Post your /etc/fstab. There's something funky about it (from the error
message you posted above).
 
Old 10-25-2002, 04:54 PM   #11
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
Here is my /etc/fstab listing:

/dev/sda5 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb /mnt/cdrom auto user,iocharset=iso8859-1,codepage=850,noauto,ro 0 0
/dev/scd0 /mnt/cdrom2 auto user,iocharset=iso8859-1,codepage=850,noauto,ro 0 0
/dev/sdb1 /mnt/cheetah ext3 defaults 1 2
/dev/fd0 /mnt/floppy auto user,iocharset=iso8859-1,sync,codepage=850,noauto 0 0
none /proc proc defaults 0 0
/dev/sda1 swap swap defaults 0 0
192.168.0.199:/mnt/share /mnt/disk nfs user,exec,dev,suid,ro $/dev/scsi/host1/bus0/target0/lun0/disc /mnt/neo vfat defaults 1 2
 
Old 10-25-2002, 06:24 PM   #12
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
That last line looks bad.
I don't know if it's because of the way you posted it, but I suspect it's because
it's like that in the fstab (the error message above indicates that you have a
bad line in your fstab).
Try removing the reference to neo et al. ($/dev/. . . /mnt/neo. . . defaults. . .)
and mounting with the command:

mount /dev/scsi/host1/bus0/target0/lun0/disc /mnt/neo

(do this as root)

Though I suspect this won't work because you probably don't have
usb mass storage correctly installed in the kernel.
 
  


Reply



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
USB Mass Storage Daniboy Linux - Software 10 09-12-2005 08:30 AM
USB Mass storage. vexer Linux - Software 2 09-05-2004 09:00 PM
USB mass storage Roy-Svork Linux - Hardware 9 09-24-2003 04:34 PM
usb mass storage Erwan Linux - Hardware 6 07-08-2003 05:39 PM
usb mass storage mohapi Linux - Hardware 3 06-03-2003 12:44 AM

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

All times are GMT -5. The time now is 02:47 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