You are not logged in.
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
What wm are you using?
Did you install hal?
EDIT: Maybe I should read the post more careful before replying 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
What wm are you using?
I'm using Openbox and hal is rc.conf'loading
Offline
Welcome to the forums deepix.
How are you starting Openbox?
Offline
Welcome to the forums deepix.
How are you starting Openbox?
Thanks
~/.xinitrc
exec ck-launch-session openbox-session
Offline
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
That all looks good. Have you followed the fix in the HAL wiki entry?
http://wiki.archlinux.org/index.php/HAL … _correctly
Offline
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
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
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
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
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...
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
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
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
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
The output is the same
The module is not loading because "lsmod" doesn't change too.
Offline
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
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
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
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
Offline
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
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
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
I've tried with ntfs, and now with ext3. Nothing changes.
Offline
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
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
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
Offline