Click to See Complete Forum and Search --> : Mounting Nokia N-Gage via USB with udev


janne_oksanen
01-12-2005, 12:06 PM
I bought one of those original Nokia N-Gages that come with an UBS cable. Now I have trouble mounting it in my Gentoo system. It should be just like mounting a memory card reader or a digital camera. Knoppix finds it automatically, but I suppose knoppix uses devfs (well at least this copy I have)

Problem is I can't find /dev/sda1 (which I was told would be the n-gage) after I connect it. It could me I'm missing something in the kernel or somewhere else down the line. I afraid I don't know jack about these things so I have to be pretty much spoon fed here :/

This is what I have:
-Vanilla 2.6.10-r1 kernel (with all the obviously relevant USB thingies)
-hotplug and coldplug installed with default gentoo configuration
-udev with default gentoo configuration

So the question is: how do I mount it?

viperlin
01-12-2005, 01:20 PM
Ok First Why the hell did you buy an n-gage, it looks like a bloody kebab! they are horrible.

with the phone switched off connect the USB cable to a known working USB port

on your system run "tail -f /var/log/messages" which should be the file where most log output goes to (with syslog-ng this is true)

power up your Kebab and watch the output, it should give at least some information as to how to mount it, or whats going wrong.

dont forget that recently you have to add the USB host drivers to the /etc/modules.d/kernel-2.6 file as they are no longer mounted automatically

try posting output back here if its not imediately obvious whats going wrong with your kebab, at least you should have error messages to search for

janne_oksanen
01-12-2005, 01:31 PM
Heh, I remember I insulted your motorcycle in irc once when I was drunk, so I'll let those 'kebabl remarks slide this time ;)

Anyway, here's the outout on 'tail -f /var/log/messages':

Jan 12 19:25:52 Devastator usb 1-1: new full speed USB device using uhci_hcd and address 3
Jan 12 19:25:52 Devastator Initializing USB Mass Storage driver...
Jan 12 19:25:52 Devastator scsi0 : SCSI emulation for USB Mass Storage devices
Jan 12 19:25:52 Devastator usbcore: registered new driver usb-storage
Jan 12 19:25:52 Devastator USB Mass Storage support registered.
Jan 12 19:25:52 Devastator usb-storage: device found at 3
Jan 12 19:25:52 Devastator usb-storage: waiting for device to settle before scanning
Jan 12 19:25:57 Devastator Vendor: Nokia Model: N-Gage Rev: 0001
Jan 12 19:25:57 Devastator Type: Direct-Access ANSI SCSI revision: 00
Jan 12 19:25:57 Devastator usb-storage: device scan complete
Jan 12 19:25:57 Devastator scsi.agent[8626]: disk at /devices/pci0000:00/0000:00:07.2/usb1/1-1/1-1:1.0/host0/target0:0:0/0:0:0:0

Do I need SCSI support in my kernel to mount it because I'm pretty sure it's not there? I removed all the things I didn't need to finally learn something about what's in my kernel and what's not.

viperlin
01-12-2005, 01:44 PM
yes you will need SCSI device support, because /dev/sd* is basicly a scsi emulated device (i think)

that should be it

janne_oksanen
01-12-2005, 01:56 PM
It's working now =)

Thanks a lot viperlin. Next time we tour in GB I'll buy you a beer :)