View previous topic :: View next topic |
Author |
Message |
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Sat Dec 11, 2004 1:45 pm Post subject: usbstick on /dev/ub/b/part1[solved] |
|
|
Some time ago I lost the access to my usb-sticks (along with some other things) by emerging something wrong. The most I got fixed, but not my usb-stick.
My usb-stick used to be on /dev/sda1 or /dev/sdb1, but that device dissapeared.
Now, after trying to do the howto's for usb-memory-sticks I still couldn't find an /dev/sda or /dev/sdb, but when looking in dmesg I noticed a /dev/ub/b. I mounted it and it seems to be my usb-stick. Any idea's how this comes?
It works, but I couldn't find anything on the forum about it. (Though I'm not shure the searchfunction likes "/"-signs)
Last edited by curantil on Tue Dec 14, 2004 10:35 pm; edited 1 time in total |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Sat Dec 11, 2004 11:59 pm Post subject: |
|
|
You selected the "Low Performance USB Block driver" in your kernel config. That uses the /dev/ub stuff. That driver does not require scsi. If you don't select the driver, the older scsi emulating usb storage module will take over. |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Sun Dec 12, 2004 1:09 pm Post subject: |
|
|
Ah, and which one is better? Not the one I use probably, because there would be more info on the forum? |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Sun Dec 12, 2004 2:45 pm Post subject: |
|
|
I have not figured that out yet. I use both of them and I have not seen a huge amount of difference. The UB driver's main goal is stability. Speed is not even considered in the code (according to the kernel lists). |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sun Dec 12, 2004 5:57 pm Post subject: |
|
|
ub is really slow and has some fairly fundamental problems in 2.6.9. i'd at least recommend switching back to usb-storage for now. _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Sun Dec 12, 2004 6:25 pm Post subject: |
|
|
I can't find anywhere "Low Performance USB Block driver" in the config. I browsed through the make menuconfig and in the .config-file itself. Where should I look? |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Sun Dec 12, 2004 6:36 pm Post subject: |
|
|
It's not in the USB section. Look under the block device section. In the .config file it is called CONFIG_BLK_DEV_UB. |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Mon Dec 13, 2004 9:19 am Post subject: |
|
|
I disabled it, but now I don't have any way to access my usb-stick. (No /dev/sda) What could I have done wrong? I didn't find plain UHCI or OHCI, but UHCI HCD support (the module is called uchi_hcd, ohci_hcd and ehci_hcd.
I also noticed that my dvd-drive doesn't work anymore. (I think it didn't work even before I disabled the low performance drivers, but it worked before I tried to enabled the usb-stick)
Should I post my .config? Or is the slution clear?
Thank you, |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Mon Dec 13, 2004 2:11 pm Post subject: |
|
|
If you are not using the UB driver, you need to compile scsi disk into the kernel (or as a module) and select the mas storage option under the usb drivers. |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Mon Dec 13, 2004 3:50 pm Post subject: |
|
|
That module was compiled, but not loaded. Now I added it to the modules.autolad, and it gets loaded, but there doesn't show a /dev/sd*. and my dvd-drive still doesn't work.
The usb-drive gets detected though. Dmesg says Code: | usb 1-3: new full speed USB device using address 4 | when inserting the stick. |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Mon Dec 13, 2004 4:00 pm Post subject: |
|
|
Sounds like you still don't have the scsi disk module loaded (or compiled in). |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Mon Dec 13, 2004 4:08 pm Post subject: |
|
|
This is my lsmod:
Code: | snd_mixer_oss 17792 1
sg 29728 0
w83781d 33968 0
i2c_sensor 3328 1 w83781d
i2c_amd756 5124 0
i2c_core 19216 3 w83781d,i2c_sensor,i2c_amd756
parport_pc 27968 1
lp 8744 0
parport 34632 2 parport_pc,lp
joydev 8128 0
evdev 7680 0
fglrx 228028 14
usbhid 39744 0
usb_storage 64576 0
ohci_hcd 18564 0
usbcore 105060 5 usbhid,usb_storage,ohci_hcd
sbp2 21640 0
ieee1394 96052 1 sbp2
sd_mod 13584 0
8139too 20608 0
mii 4096 1 8139too
snd_intel8x0 29900 3
snd_ac97_codec 68816 1 snd_intel8x0
snd_pcm 84872 2 snd_intel8x0
snd_timer 21380 1 snd_pcm
snd_page_alloc 7688 2 snd_intel8x0,snd_pcm
gameport 3712 1 snd_intel8x0
snd_mpu401_uart 6272 1 snd_intel8x0
snd_rawmidi 20260 1 snd_mpu401_uart
snd_seq_device 6536 1 snd_rawmidi
snd 47716 11 snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
nvidia_agp 6044 1
agpgart 27944 2 nvidia_agp
st 35228 0
scsi_mod 70080 5 sg,usb_storage,sbp2,sd_mod,st
|
This scsi_mod is the scsi module, not? |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Mon Dec 13, 2004 4:21 pm Post subject: |
|
|
Looks like scsi is there. What does dmesg say when you plug in the stick? |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Mon Dec 13, 2004 6:29 pm Post subject: |
|
|
this (first line = disconnect, second line = connect)
Code: | usb 1-3: USB disconnect, address 4
usb 1-3: new full speed USB device using address 5 |
The address keeps increasing every time I connect it an other time. |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Mon Dec 13, 2004 8:52 pm Post subject: |
|
|
Does it keep repeating that (only with the numbers chaning)? If so, do you have ACPI activated? Some kernels/mboards don't do well with USB sticks and ACPI. |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Tue Dec 14, 2004 6:02 pm Post subject: |
|
|
Yes, disableing ACPI fixed it. Thank you
Any idea's where my dvd has gone? |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Tue Dec 14, 2004 8:08 pm Post subject: |
|
|
A dvd should either show up as an ide device or a scsi device depending on if you loaded the ide-cd or ide-scsi module (or compiled one or the other into your kernel). I don't see either in your lsmod output, so check to see how you have your kernel compiled. |
|
Back to top |
|
|
curantil Tux's lil' helper
Joined: 28 Feb 2004 Posts: 102
|
Posted: Tue Dec 14, 2004 10:35 pm Post subject: |
|
|
Ok, modprobing ide-scsi brought back my dvd-drive.
Thank you very much |
|
Back to top |
|
|
|