Why doesn't Ubuntu 9.10 detect my USB devices?
"Computer" nor "Palimpest Disk Utility" showed anything about the attached devices. However, the command:
Code:
lsusb Code:
Bus 002 Device 004: ID 05a4:9866 Ortek Technology, Inc. Do you think upgrading will fix this? What else might I do? |
what does dmesg display?
|
Code:
[ 0.193932] ACPI: PCI Interrupt Link [LNK2] (IRQs 5 7 9 10 11 14 15) *0, disabled. |
sorry, plug usb device in and then
dmesg or dmesg > dump.msg and tail dump.msg |
Quote:
I'm not sure what is Quote:
|
the idea is to see what the kernel logs as the usb device is plugged in. therefore do the dmesg shortly after plugging the usb device in.
the dmesg > dump.msg writes the contents to a file "dump.msg". the tail dump.msg shows the last part of the file and hopefully the usb event. do a rm -i dump.msg when done. |
Code:
dmesg > dump.msg However: Quote:
Code:
[13163.748028] usb 2-3: new low speed USB device using ohci_hcd and address 5 |
What this shows is that your kernel did detect the usb device. If the kernel has a suitable driver and what it does with it is another story.
The dmesg > dump.msg redirects the standard terminal to the file "dump.msg". That is why you saw nothing on the screen. The tail dump.msg shows the last part of the dump.msg file, and the kernel response to you plugging in the usb device. You can always "man <keyword>" to understand what a command does. You may want to a) ls -la /sys/dev/block and b) ls -la /sys/dev/char to see if your usb device is a block or character device. |
Code:
ls -la /sys/dev/block Code:
total 0 Code:
ls -la /sys/dev/char Code:
total 0 |
so you can see the changes in one of the above files with the usb device in and out.
to see if the kernel mounts the device do the following: with usb device out and in your user directory: cat /proc/self/mountstats > file1.dmp with the usb device in and in your user directory: cat /proc/self/mountstats > file2.dmp see how the device was mounted: diff file1.dmp file2.dmp remove the temp files: rm -i file?.dmp if there was no difference(diff command) then the device was not mounted by the kernel you can mount it with mknod and mount |
Pardon my misunderstanding, but the command cat /proc/self/mountstats > file1.dmp is supposed to write to a file called file1.dmp.
My keyboard & mouse are usb and here is the output of cat /proc/self/mountstats which is the same with the devices plugged in and not: Code:
device rootfs mounted on / with fstype rootfs |
As I was researching what mknod is, I read this from The Linux System Administrator's Guide:
Quote:
|
1)The files, file1.dmp and file2.dmp, would be in your current directory that you issued the cat /proc/self/mountstats > file1.dmp from. That is why i suggested your home directory i.e. cd ~.
2)From the dmesg earlier, it became apparent that the kernel was aware of the usb device being plugged in. We want to know if it was mounted in the file system. Therefore we store what was mounted, in file1.dmp, before the usb device was plugged in, and file2.dmp, after the usb device was plugged in. 3)Yes the rm -i would remove them and you would run the rm -i command after the diff command. We just want to see if the usb device was mounted. 4)Use the diff command as suggested in your home directory i.e. diff file1.dmp file2.dmp The differences between the two files would then be printed on the console. A simple way to detect a change in the mounting status on your filesystem. 5)If the kernel did not mount the usb device you could mount it manually by using the mknod and mount command. You need to know if it is a character or block device and it requires major and minor numbers. How the major and minor numbers are assigned has changed in the kernel in the past few years. You can choose "experimental" major and minor numbers but you should not be going there. If your kernel did not mount the device I suggest you google for a suitable device driver for that particular usb device. |
Quote:
http://www.ubuntugeek.com/ubuntu-ver...e-details.html You will need to upgrade to (or preferably do a clean install of) Ubuntu 10.04 or 10.10 by then. |
I didn't understand this:
Quote:
|
sorry, i took this too far regarding the mknod, but for the sake of completeness.
(do NOT do it on your system) iff i had written a suitable block driver: sudo mknod /dev/example -b 250 0 ls -l /dev ( to check if it happened ) sudo mkdir /mnt/myexample sudo mount -t ext2 /dev/example /mnt/myexample summary,in response to your initial question: Why doesn't Ubuntu 9.10 detect my USB devices? the kernel did detect your usb device ( the "dmesg" exercise ) but did not mount it (the "diff file1.dmp file2.dmp" exercise) cat /etc/fstab provides a list of filesystems, partitions, and devices that MAY be automatically/manually mounted. cat /etc/mtab shows what is currently mounted. decide if you need to upgrade your OS or if you have an "odd" usb device |
I don't want to upgrade my OS. What are your instructions now? What does this output of cat /etc/mtab say:
Code:
/dev/sda1 / ext4 rw,errors=remount-ro 0 0 |
@Advise_Pro, you have not identified exactly what USB device is involved. You should state the exact brand, model, and expected function of the USB device.
|
|
We can see from your previous posts in this discussion that most of these USB devices are detected and identified correctly. Are you saying that none of them are working? You appear to be using them to post in this forum. Which, if any, of the USB devices are not working?
|
No they work, Sean pointed out that the kernel isn't recognising them and that they must be mouted.
|
Quote:
|
perhaps a bit more thought about the commands?: cat /proc/self/mountstats
|
Quote:
|
"No they work" : your words!
Why do you want to mount them, they are already? |
Quote:
Quote:
Quote:
Code:
# /etc/fstab: static file system information. Code:
/dev/sda1 / ext4 rw,errors=remount-ro 0 0 |
and what did the: diff file1.dmp file2.dmp display? please remember to generate file1 before plugging in the device and file2 after plugging in the device.
|
Code:
device rootfs mounted on / with fstype rootfs |
try this from your terminal:
echo '123' > file1.tmp echo '123' > file2.tmp diff file1.tmp file2.tmp echo '234' > file2.tmp diff file1.tmp file2.tmp does that help you? |
file1.tmp + file2.tmp are the same, both files consist of
Quote:
Code:
1c1 |
sorry, i can't help you.
|
I thought that this summed it up, from post #16:
Quote:
Quote:
|
I've found some tests that I can conduct to help find my problem this post.
The output of: Code:
lsmpod Code:
Module Size Used by Code:
dmesg | tail -n 20 Code:
[ 15.248027] zc3xx: probe 2wr ov vga 0x0000 Code:
modprobe usbcore Code:
modprobe usb_storage Code:
lspci -v Code:
00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1) Code:
Code:
sudo which lspci Code:
/usr/bin/lspci Quote:
Quote:
|
All times are GMT -5. The time now is 05:22 PM. |