Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usbstick on /dev/ub/b/part1[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Sat Dec 11, 2004 1:45 pm    Post subject: usbstick on /dev/ub/b/part1[solved] Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Sat Dec 11, 2004 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Sun Dec 12, 2004 1:09 pm    Post subject: Reply with quote

Ah, and which one is better? Not the one I use probably, because there would be more info on the forum?
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Sun Dec 12, 2004 2:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sun Dec 12, 2004 5:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Sun Dec 12, 2004 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Sun Dec 12, 2004 6:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Mon Dec 13, 2004 9:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Mon Dec 13, 2004 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Mon Dec 13, 2004 3:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Mon Dec 13, 2004 4:00 pm    Post subject: Reply with quote

Sounds like you still don't have the scsi disk module loaded (or compiled in).
Back to top
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Mon Dec 13, 2004 4:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Mon Dec 13, 2004 4:21 pm    Post subject: Reply with quote

Looks like scsi is there. What does dmesg say when you plug in the stick?
Back to top
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Mon Dec 13, 2004 6:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Mon Dec 13, 2004 8:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Tue Dec 14, 2004 6:02 pm    Post subject: Reply with quote

Yes, disableing ACPI fixed it. Thank you
Any idea's where my dvd has gone?
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Tue Dec 14, 2004 8:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
curantil
Tux's lil' helper
Tux's lil' helper


Joined: 28 Feb 2004
Posts: 102

PostPosted: Tue Dec 14, 2004 10:35 pm    Post subject: Reply with quote

Ok, modprobing ide-scsi brought back my dvd-drive.

Thank you very much
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum