Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Weirdness
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Sun Sep 07, 2003 5:28 pm    Post subject: USB Weirdness Reply with quote

I have a Neuros, which is a 20 GB MP3/Ogg player. It connects to the computer using USB 1.1 (fine for me, because that's all I have), and acts as a Mass Storage Device, and a program in portage, called Positron, can build a database that the Neuros can read.

I'm having trouble keeping my Neuros mounted though. I can mount it once, but if I unmount it at all, I must reboot before I can remount it. Yesterday I didn't have this problem, and I don't know what changed to cause this problem.

If I try to mount the Neuros now, it will tell me that /dev/sda does not exist, which is the same error I get if I try to mount it and it is not plugged into the USB port. I have no idea where to even start, but this is a very annoying problem, if I must restart just to load new music onto my Neuros.

Lastly, I'm 99.9% sure it is not the Neuros, because it switches to it's sync screen, and is ready to accept any connection, but the computer isn't recognizing it, or something. Any ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Sun Sep 07, 2003 6:29 pm    Post subject: Reply with quote

Ian,

As Gentoo uses devfs, /dev/sda, which is where your Neuros appears, is made and deleted when the device is detected as added or removed.

It takes a few seconds for 'hotplug' to do its thing though.

You can beat the system by plugging in the Neuros and issuing the mount command before hotplug has made /dev/sda.

Before you remove the device be sure to wait for umount to return, as the data to be written may well be in buffers in main memory until then.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Z?
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 118
Location: Waterloo, Ontario, Canada

PostPosted: Sun Sep 07, 2003 8:33 pm    Post subject: Reply with quote

You might just need to remove the usb-storage driver, and reload it. I've got a similar problem with a USB ZIP drive, and that usually solves the problem for me.

I've got a script that backs up my MySQL databases daily to the ZIP drive, and one of the first things I do is unload the sg, sd_mod, and usb-storage modules, and then reload them. Dunno why, but it works. &shrug&
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Sun Sep 07, 2003 10:24 pm    Post subject: Reply with quote

Neddy:

That isn't the case, as I'm not using any hotplug software, it's just the simple USB mass storage driver. From what I've seen, the system detects a mass storage device, creates /dev/sda, and then I can mount it. As to remaining data in the memory, I use the "sync" option, which writes everything to disk before, not hold it in memory until unmounting. Plus, I can tell by gkrellm2 and the Neuros unit when data has stopped going.

Z?:

I made a monolithic kernel because I'm a lazy bum. It's about time I upgraded it though, to the latest mm sources, so I'll try that later if I can. Thanks :).
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Mon Sep 08, 2003 1:06 am    Post subject: Reply with quote

Ok, upgraded to 2.6.0-mm6, and now USB is mounted read-only. This is not only annoying, but shouldn't happen at all based on /etc/fstab.

Any ideas?

<EDIT>
This may be due to the Neuros crashing, and my not noticing.

In other news, what modules do I need to make, and what steps must I take to load and unload them? I'm still getting this same stupid error, and it makes absolutely no sense and is beginning to piss me off greatly, but since I've never needed to use modules before, I have no idea where to start (besides going and hitting M instead of Y).
</EDIT>
Back to top
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Mon Sep 08, 2003 1:55 am    Post subject: Reply with quote

Me, once again.

Ok, after a weekend of me tearing out my hair and throwing my keyboard into the wall, all the evidence points to the kernel, specifically the usb/scsi drivers, just seemingly randomly dying on me, and not undying until I reboot.

I have no idea what I did to make this happen, nor how to fix it, except possibly go back to 2.4 for the time being, which i'd rather not do.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54421
Location: 56N 3W

PostPosted: Mon Sep 08, 2003 8:28 am    Post subject: Reply with quote

Ian,

to make a kernel to play with, do the following:-

Save a copy of /usr/src/linux/.config somewhere, so you can get back to your old configuration whenever you like. (Really you should copy the who;e source tree to ~ and make the changes there.)

run make xconfig - it much nicer than make menuconfig.
configure to your liking. Don't go overboard with modules, since everything you need to boot, like the filesystem drivers must be compiled in.

Edit /usr/src/linux/Makefile and change EXTRAVERSION at the top of the file. This will ensure that the modules for this kernel get their own directory in /lib/modules

Do the make dep ... make modules
Do make modules_install
Mount /boot, when you copy the bzImage across, rename it.

Put a new setion in /boot/grub/grub.conf (or /etc/lilo.conf) to point to the new kernel. Now you will have a choice to boot. If your new kernel won't start, you can always go back to the old one.

To load modules on startup, put the module names in /etc/modules.autoload
To load or unload modules manually use /sbin/modprobe
See also lsmod, insmod and rmmod.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
toojays
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 150
Location: Adelaide, Australia

PostPosted: Mon Oct 20, 2003 10:43 pm    Post subject: Reply with quote

Ian,

I just wanted to update this post to say I'm experiencing a similar problem to you with my Neuros, but it's perhaps more intermittent than you (doesn't happen every time to me). I think it's a conflict between the Neuros and some USB driver, as in the Neuros is probably broken, but I consider the software to be broken as well if it can be hung by the hardware.

Hopefully between the two of us fiddling with kernel options we can find something that works.

For reference I have: K7S5A motherboard, kernel 2.4.20-gentoo-r7, using the usb-ohci driver.
Back to top
View user's profile Send private message
rbeagle
n00b
n00b


Joined: 22 Jul 2002
Posts: 12
Location: Texas

PostPosted: Fri Nov 14, 2003 3:55 am    Post subject: Reply with quote

I just got a Neuros the other day, and I was experiencing the exact same problem. Whenever I'd unmount the Neuros, there would be a kernel OOPS and the block device would disappear from /dev. I haven't tracked down the exact reason that's causing this, but I do know that this problem would happen on EVERY version of the 2.6 kernel I tried. Switching to my old 2.4.20 vanilla kernel solved the problem for me. I guess that's why it's still called beta. It's a shame, I liked 2.6.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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