Re: [gentoo-user] Card reader weirdness

2006-05-07 Thread Walter Dnes
On Sat, May 06, 2006 at 12:57:57PM +0200, Thierry de Coulon wrote

 Since using Gentoo the reader apparently is not seen on boot (if no
 card is plugged in). When I plug a card in and try to mount it I get
 an error message (no such device).

 So my guess is that I am missing a small something in my setup but
 I can't find what.
 
 Note that this is annoying, not much more :)

  I have *EXACTLY* the same situation, and I figured out what was
causing it, and I came up with with a workaround; I wouldn't call it a
perfect solution.

  - My old, emergency backup machine is a 1999 Dell PIII, 450 mhz, with
128 megs of RAM, and USB 1.1 hardware.  According to dmesg, the
ehci_hcd code aborts at bootup, and only the ohci_hcd code runs.
All my USB1 and USB2 devices run OK.  Mind you, at USB 1.1 speeds,
maybe I should say they *CRAWL* OK.  The auto option for filesystem
type works OK in both the mount command and in /etc/fstab.  I
could get away with an fstab entry like...
/dev/sdb1  /mnt/external  auto  noauto,user,noatime,notail  0 0
and simply mount /mnt/external, regardless of what I hooked up to
the USB port.

  - My relatively new AMD64 (in 32-bit mode) has USB2 hardware.  I built
both ohci_ocd ehci_ocd into the kernel.  I experienced the following
symptoms...

- USB1 devices were totally flakey, sometimes they would show up as
  /dev/sdb1, and sometimes they wouldn't.  When it didn't show up...

 However, if I open a shell, fdisk the device, quit fdisk and close
 the shell, I can mount the card...

  would usually work, but not always.

- USB2 devices would show up OK, and run at USB2 speeds, but auto
  would *NOT* work as a filesystem type with either /etc/fstab or the
  mount command

  After a lot of screwing around I came up with the following workaround.
  - build ohci_hcd into the kernel
  - build ehci_hcd as a module.  Do *NOT* auto-load the ehci_hcd module.
  - write local udev rules to generate symlinks for my USB devices.
/etc/fstab has entries that mount the symlinks, and those entries
specify the filesystem type.  I use msdos for my camera's memory
cards, vfat for my mp3 player, and reiserfs for my backup drives.

  Run in USB1.1 mode most of the time.  When I'm backing up my hard
drive to a USB2 drive, and I want the extra speed, I run the commands
modprobe ehci_ocd
udevstart

...before I plug in the backup drive.  When I'm finished, and have removed
the backup drive, I run the commands
rmmod ehci_ocd
udevstart

...and I'm back to where I was before.  It's not perfect, but it works.

-- 
Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Card reader weirdness

2006-05-07 Thread Thierry de Coulon
On Sunday 07 May 2006 09.32, Walter Dnes wrote:
   I have *EXACTLY* the same situation, and I figured out what was
 causing it, and I came up with with a workaround; I wouldn't call it a
 perfect solution.
(...)

Thanks a lot for your report. I'll check what I did, I don't remember if I 
compiled the drivers as modules or not.

It's interresting that you also have an AMD64 board. I run a Tyan Tiger K8W. 
Maybe this has to do  with some chipset? Or is it Gentoo-based? I'll test the 
new SuSE when it is released and then I have some comparison.

Thierry

-- 
Stupidity is like a fractal; universal and infinitely repetitive.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Card reader weirdness

2006-05-07 Thread Ognjen Bezanov
'On Saturday 06 May 2006 11:57, Thierry de Coulon wrote:
 Hello,

 I've got an usb multi-card reader. The device does work, however since I
 run Gentoo it behaves a little different than before. Previously the reader
 would be indentified on boot (usually reserving /dev/sda to /dev/sdd). I
 set up those drives in /etc/fstab and created devices on the desktop to
 mount them as user.

 Since using Gentoo the reader apparently is not seen on boot (if no card is
 plugged in). When I plug a card in and try to mount it I get an error
 message (no such device). However, if I open a shell, fdisk the device,
 quit fdisk and close the shell, I can mount the card...

 So my guess is that I am missing a small something in my setup but I can't
 find what.

 Note that this is annoying, not much more :)

 Thierry

Sounds like you might be missing a module on startup , try adding 
usb-storage to the module autoloading script for your kernel.

 --
 Stupidity is like a fractal; universal and infinitely repetitive.

-- 
http://ziva-vatra.dnsalias.com/~ognen



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Card reader weirdness

2006-05-07 Thread Thierry de Coulon
On Sunday 07 May 2006 10.59, Ognjen Bezanov wrote:
 Sounds like you might be missing a module on startup , try adding
 usb-storage to the module autoloading script for your kernel.

Hello Ognjen and thanks for your suggestion. I'm ashamed it really was that 
simple. I just thought usb-storage was loaded, I was wrong.

i only did a few test just now but it looks like it did cure my problem.

Have a nice day,

Thierry

-- 
Stupidity is like a fractal; universal and infinitely repetitive.
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Card reader weirdness

2006-05-06 Thread Thierry de Coulon
Hello,

I've got an usb multi-card reader. The device does work, however since I run 
Gentoo it behaves a little different than before. Previously the reader would 
be indentified on boot (usually reserving /dev/sda to /dev/sdd). I set up 
those drives in /etc/fstab and created devices on the desktop to mount them 
as user.

Since using Gentoo the reader apparently is not seen on boot (if no card is 
plugged in). When I plug a card in and try to mount it I get an error message 
(no such device). However, if I open a shell, fdisk the device, quit fdisk 
and close the shell, I can mount the card...

So my guess is that I am missing a small something in my setup but I can't 
find what.

Note that this is annoying, not much more :)

Thierry

-- 
Stupidity is like a fractal; universal and infinitely repetitive.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Card reader weirdness

2006-05-06 Thread JimD

Thierry de Coulon wrote:

Hello,

I've got an usb multi-card reader. The device does work, however since I run 
Gentoo it behaves a little different than before. Previously the reader would 
be indentified on boot (usually reserving /dev/sda to /dev/sdd). I set up 
those drives in /etc/fstab and created devices on the desktop to mount them 
as user.


Since using Gentoo the reader apparently is not seen on boot (if no card is 
plugged in). When I plug a card in and try to mount it I get an error message 
(no such device). However, if I open a shell, fdisk the device, quit fdisk 
and close the shell, I can mount the card...


So my guess is that I am missing a small something in my setup but I can't 
find what.


Note that this is annoying, not much more :)

Thierry



Plug the card in and try to mount it and get the error then run:

lsmod | sort  /tmp/before

Then do the fdisk thing that gets it to work and run:

lsmod | sort  /tmp/after

Now you can use vimdiff (or another diff)

vimdiff /tmp/before /tmp/after

This will show you if any module gets loaded that makes it work.  If you 
find a module in after but not in before, add it to 
/etc/modules.autoload.d/kernel-2.6


Jim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
There's no place like 127.0.0.1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
JimD
Central FL, USA, Earth, Sol
--
gentoo-user@gentoo.org mailing list