You are not logged in.

#1 2010-01-27 21:46:34

deepix
Member
Registered: 2010-01-27
Posts: 14

USB devices doesn't appear

Hi

I've installed arch in the last few days, everything is almost fine.
The only problem is about the usb devices (like my pen and mobile modem). The system finds them, but they doesn't appear in /dev/sdX

lsusb shows me that the usb is there, but nothing else happens.

dmesg shows me this:

usb 2-2: new high speed USB device using ehci_hcd and address 2
usb 2-2: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: deregistering interface driver usb-storage

lsmod | grep usb

btusb                   9768  0
bluetooth              44621  1 btusb
usbserial              27170  0
usbcore               118921  6 uvcvideo,btusb,uhci_hcd,ehci_hcd,usbserial

My user is in storage group.

And i can mount CD and DVD.

If anything else is needed i will post here.

Can anyone help me?

thnaks

Offline

#2 2010-01-27 21:52:55

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: USB devices doesn't appear

What wm are you using?

Did you install hal?

EDIT: Maybe I should read the post more careful before replying smile Didn't notice about you being able to mount dvds.

Last edited by madeye (2010-01-27 21:53:55)


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#3 2010-01-27 21:57:38

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

madeye wrote:

What wm are you using?

I'm using Openbox and hal is rc.conf'loading roll

Offline

#4 2010-01-27 21:58:54

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: USB devices doesn't appear

Welcome to the forums deepix.

How are you starting Openbox?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2010-01-27 22:06:50

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

jasonwryan wrote:

Welcome to the forums deepix.

How are you starting Openbox?

Thanks smile

~/.xinitrc

exec ck-launch-session openbox-session

Offline

#6 2010-01-27 22:44:02

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: USB devices doesn't appear

if you run

udevadm info

in a terminal and then insert a usb drive, what is displayed?

I just tried on my computer, and I got the following:

[rene@ArchLounge ~]$ udevadm monitor
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1264631862.534890] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1 (usb)
KERNEL[1264631862.535070] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0 (usb)
KERNEL[1264631862.535281] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10 (scsi)
KERNEL[1264631862.535306] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/scsi_host/host10 (scsi_host)
UDEV  [1264631862.545583] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1 (usb)
UDEV  [1264631862.545810] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0 (usb)
UDEV  [1264631862.545897] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10 (scsi)
UDEV  [1264631862.546004] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/scsi_host/host10 (scsi_host)
KERNEL[1264631867.534455] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0 (scsi)
KERNEL[1264631867.534481] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0 (scsi)
KERNEL[1264631867.534492] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/scsi_disk/10:0:0:0 (scsi_disk)
KERNEL[1264631867.534502] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/scsi_device/10:0:0:0 (scsi_device)
KERNEL[1264631867.534655] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/scsi_generic/sg5 (scsi_generic)
KERNEL[1264631867.534680] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/bsg/10:0:0:0 (bsg)
UDEV  [1264631867.534920] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0 (scsi)
UDEV  [1264631867.536591] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0 (scsi)
UDEV  [1264631867.536612] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/scsi_disk/10:0:0:0 (scsi_disk)
UDEV  [1264631867.536623] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/scsi_device/10:0:0:0 (scsi_device)
KERNEL[1264631867.537005] change   /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0 (scsi)
UDEV  [1264631867.538299] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/scsi_generic/sg5 (scsi_generic)
UDEV  [1264631867.538721] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/bsg/10:0:0:0 (bsg)
UDEV  [1264631867.538933] change   /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0 (scsi)
KERNEL[1264631867.540308] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/block/sdd (block)
KERNEL[1264631867.540365] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/block/sdd/sdd1 (block)
KERNEL[1264631867.540578] add      /devices/virtual/bdi/8:48 (bdi)
UDEV  [1264631867.540589] add      /devices/virtual/bdi/8:48 (bdi)
UDEV  [1264631867.628087] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/block/sdd (block)
UDEV  [1264631867.668981] add      /devices/pci0000:00/0000:00:02.1/usb1/1-1/1-1:1.0/host10/target10:0:0/10:0:0:0/block/sdd/sdd1 (block)

MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#7 2010-01-27 22:44:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: USB devices doesn't appear

That all looks good. Have you followed the fix in the HAL wiki entry?
http://wiki.archlinux.org/index.php/HAL … _correctly


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2010-01-27 22:52:18

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

udevadm monitor

and after plug the usb

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[1264632397.678121] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2 (usb)
KERNEL[1264632397.678458] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0 (usb)
UDEV  [1264632397.697581] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2 (usb)
KERNEL[1264632397.778810] add      /module/usb_storage (module)
KERNEL[1264632397.781130] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5 (scsi)
KERNEL[1264632397.781212] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/scsi_host/host5 (scsi_host)
KERNEL[1264632397.781861] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [1264632397.787403] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0 (usb)
KERNEL[1264632397.802614] remove   /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/scsi_host/host5 (scsi_host)
KERNEL[1264632397.802967] remove   /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5 (scsi)
KERNEL[1264632397.803765] remove   /bus/usb/drivers/usb-storage (drivers)
KERNEL[1264632397.805032] remove   /module/usb_storage (module)
UDEV  [1264632397.809548] add      /bus/usb/drivers/usb-storage (drivers)
UDEV  [1264632397.816665] remove   /bus/usb/drivers/usb-storage (drivers)
UDEV  [1264632397.820996] add      /module/usb_storage (module)
UDEV  [1264632397.825050] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5 (scsi)
UDEV  [1264632397.827385] remove   /module/usb_storage (module)
UDEV  [1264632397.834963] add      /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/scsi_host/host5 (scsi_host)
UDEV  [1264632397.850719] remove   /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5/scsi_host/host5 (scsi_host)
UDEV  [1264632397.859826] remove   /devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host5 (scsi)

Here says that
http://wiki.archlinux.org/index.php/HAL … _correctly

, and if you are able to manually mount the USB device in question,

I can't. But i will try anyway.

EDIT: doesn't work

Last edited by deepix (2010-01-27 23:04:29)

Offline

#9 2010-01-27 23:10:47

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: USB devices doesn't appear

Just checked my lsmod, and I have the following modules loaded

usbcore    140421  8 usb_storage,usbhid,uvcvideo,snd_usb_audio,snd_usb_lib,ohci_hcd,ehci_hcd
scsi_mod    92676  5 usb_storage,sg,sr_mod,sd_mod,libata

Don't know if that could make the difference.

Did you check the hal policy like suggested in the wiki?

Last edited by madeye (2010-01-27 23:12:27)


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#10 2010-01-27 23:31:08

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

madeye wrote:

Just checked my lsmod, and I have the following modules loaded

usbcore    140421  8 usb_storage,usbhid,uvcvideo,snd_usb_audio,snd_usb_lib,ohci_hcd,ehci_hcd
scsi_mod    92676  5 usb_storage,sg,sr_mod,sd_mod,libata

Don't know if that could make the difference.

Did you check the hal policy like suggested in the wiki?

Yes i check the wiki link you post, but nothing changed sad

usbserial              27170  0 
usbcore               118921  6 uvcvideo,btusb,uhci_hcd,ehci_hcd,usbserial
scsi_mod               78933  4 sg,sr_mod,sd_mod,libata

How can i have "more" modules loaded? i've put them in the rc.conf, but they don't load (i think i don't have them).

Offline

#11 2010-01-27 23:37:36

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: USB devices doesn't appear

Do you have the possibility to check the USB drive in another computer? Just to make sure there are partitions defined?
I know. A pretty long shot, but I am running out of ideas... smile

EDIT: It looks like udev is loading the usb_storage module when needed on you setup.

Last edited by madeye (2010-01-27 23:38:44)


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#12 2010-01-27 23:51:11

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

madeye wrote:

Do you have the possibility to check the USB drive in another computer?

I have Mint 8 and Windows 7, and works just fine.

You have more modules loading

usbcore    140421  8 usb_storage,usbhid,uvcvideo,snd_usb_audio,snd_usb_lib,ohci_hcd,ehci_hcd
scsi_mod    92676  5 usb_storage,sg,sr_mod,sd_mod,libata
usbcore               118921  6 uvcvideo,btusb,uhci_hcd,ehci_hcd,usbserial
scsi_mod               78933  4 sg,sr_mod,sd_mod,libata

I don't have the "usb_storage","usbhid"...

Last edited by deepix (2010-01-27 23:53:29)

Offline

#13 2010-01-28 00:18:52

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: USB devices doesn't appear

This from your first post looks wrong:

usbcore: deregistering interface driver usb-storage

Try 'modprobe usb-storage' and then insert the memory stick again, checking dmesg.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#14 2010-01-28 00:28:53

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

grey wrote:

This from your first post looks wrong:

usbcore: deregistering interface driver usb-storage

Try 'modprobe usb-storage' and then insert the memory stick again, checking dmesg.

Doesn't change anything sad

The output is the same

The module is not loading because "lsmod" doesn't change too.

Offline

#15 2010-01-28 02:15:06

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: USB devices doesn't appear

Can you run with verbose mode? E.g.

[root]# modprobe -r -v usb-storage
rmmod /lib/modules/2.6.32-ARCH/kernel/drivers/usb/storage/usb-storage.ko
[root]# modprobe -v usb-storage
insmod /lib/modules/2.6.32-ARCH/kernel/drivers/usb/storage/usb-storage.ko

Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#16 2010-01-28 09:37:41

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

Thr first one doesn't return anything

[root@arch-book ~]# modprobe -r -v usb-storage
[root@arch-book ~]# modprobe -v usb-storage
insmod /lib/modules/2.6.32-ARCH/kernel/drivers/usb/storage/usb-storage.ko

Offline

#17 2010-01-28 09:46:35

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: USB devices doesn't appear


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#18 2010-01-28 10:15:59

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

In my case neither the root has access to removable disks

but only root can access removable media that is inserted

I've changed the hal.conf, but no luck so far.
I've tried to login as root after booting up the computer, then i pulg the usb but /dev/sdX doesn't appear.

That's not a problem of mounting devices, i think it's related with modules loading hmm

Offline

#19 2010-01-28 10:25:55

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: USB devices doesn't appear

Shoot me if I'm wrong, but I fixed that problem on my machine with udev rules http://wiki.archlinux.org/index.php/Ude … SB_devices a while back.

However, the wiki says, that it's outdated, so therefore: maybe my advice is too!

Offline

#20 2010-01-28 12:02:32

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

I think the problem isn't related with mounting, because for monting i need to have a "file" in dev folder.

My HDD is sda, and partitions are sda1, sda2 ...
And this files appear in the /dev folder (for example /dev/sda1)

But when i plug the usb stick, it doesn't even appear a "file" (probably it would be "sdb") in the /dev folder.
(no file)=(no mounting)

I'm a noob at linux, and if i'm saying anything wrong sorry


EDIT: I've installed USBView, and when i open it as root (or normal user) returns me an error:

Can not open the file /proc/bus/usb/devices

Verify that you have USB compiled into your kernel, have the USB core modules loaded, and have the usbdevfs filesystem mounted.

Last edited by deepix (2010-01-28 12:07:28)

Offline

#21 2010-01-28 12:10:36

Nixxx
Member
From: Poland
Registered: 2009-08-01
Posts: 85

Re: USB devices doesn't appear

What kind of file-system does have the partition on your pendrive? Try to format it on ext2/ext3 and see if it works.

Last edited by Nixxx (2010-01-28 13:24:44)

Offline

#22 2010-01-28 12:24:35

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

I've tried with ntfs, and now with ext3. Nothing changes.

Offline

#23 2010-01-28 15:11:22

madeye
Member
From: Denmark
Registered: 2006-07-19
Posts: 331
Website

Re: USB devices doesn't appear

deepix wrote:
Can not open the file /proc/bus/usb/devices

Verify that you have USB compiled into your kernel, have the USB core modules loaded, and have the usbdevfs filesystem mounted.

I get the same error with usbview. I don't think your problem lies here. I think you're right that a module is not loaded correctly.

If I run dmesg | grep usb after inserting a USB drive, I get the following

usb 1-1: new high speed USB device using ehci_hcd and address 5
usb 1-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usb-storage
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
usb-storage: device scan complete

Compared to what you wrote in the first post it seems like the drive is never scanned. And that's probably why you have no /dev entry.
The usb_storage driver is loaded and unloaded automatically in your setup (the line usbcore: registered new interface driver usb-storage). But somehow it is unloaded only moments later. (the line usbcore: deregistering interface driver usb-storage.

Does lsmod | grep usb before and after you insert a usb drive look the same?
Mine changes the last number on the usb_storage  line from 0 to 1.


MadEye | Registered Linux user #167944 since 2000-02-28 | Homepage

Offline

#24 2010-01-28 16:10:03

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: USB devices doesn't appear

If you do lsmod immediately after inserting the usb-storage module via modprobe, is it listed?


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#25 2010-01-28 20:34:12

deepix
Member
Registered: 2010-01-27
Posts: 14

Re: USB devices doesn't appear

madeye wrote:

before and after you insert a usb drive look the same?
Mine changes the last number on the usb_storage  line from 0 to 1.

I don't have the module usb_storage (this module has never loaded)

But nothing has changed before and after i plug the usb-stick, the lsmod is the same.


--------

I do

[root@arch-book ~]# modprobe -v usb-storage
insmod /lib/modules/2.6.32-ARCH/kernel/drivers/usb/storage/usb-storage.ko

but

[root@arch-book ~]# lsmod | grep usb
btusb                   9768  0 
bluetooth              44621  1 btusb
usbserial              27170  0 
usbcore               118921  6 uvcvideo,btusb,uhci_hcd,ehci_hcd,usbserial

usb-storage never loads sad

Offline

Board footer

Powered by FluxBB