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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-24-2002, 10:03 PM
|
#1
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Rep:
|
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.
|
|
|
10-24-2002, 10:09 PM
|
#2
|
Senior Member
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731
Rep:
|
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.
|
|
|
10-24-2002, 10:23 PM
|
#3
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Original Poster
Rep:
|
will it tell me which /dev it attaches to?
|
|
|
10-24-2002, 11:12 PM
|
#4
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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 11:15 PM.
|
|
|
10-24-2002, 11:24 PM
|
#5
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Original Poster
Rep:
|
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,
|
|
|
10-25-2002, 02:34 PM
|
#6
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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
|
|
|
10-25-2002, 05:30 PM
|
#7
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Original Poster
Rep:
|
[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.
|
|
|
10-25-2002, 05:32 PM
|
#8
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Original Poster
Rep:
|
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?
|
|
|
10-25-2002, 05:43 PM
|
#9
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
10-25-2002, 05:44 PM
|
#10
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
Also,
Post your /etc/fstab. There's something funky about it (from the error
message you posted above).
|
|
|
10-25-2002, 05:54 PM
|
#11
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Original Poster
Rep:
|
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
|
|
|
10-25-2002, 07:24 PM
|
#12
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:37 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|