How to automatically mount memory sticks (and other usb-storage stuff)?

How to automatically mount memory sticks (and other usb-storage stuff)?

Post by Michael Janic » Sun, 18 May 2003 13:13:49



How do I automatically mount memorysticks and other usb-storage stuff?

I run kernel 2.4.20 and RH9 - It should really do that automatically!

Thanks

         Michael

 
 
 

How to automatically mount memory sticks (and other usb-storage stuff)?

Post by Sybren Stuve » Sun, 18 May 2003 21:24:56


Michael Janich enlightened us with:

Quote:> How do I automatically mount memorysticks and other usb-storage stuff?

man hotplug
http://www.linux-usb.org/

Quote:> I run kernel 2.4.20 and RH9 - It should really do that automatically!

Indeed, it should - once you set it up right.

Sybren
--
| Somebody ought to cross ball point pens with coat hangers so that |
| the pens will multiply instead of disappear.                      |
\-------------------------------------------------------------------/
If you have to use Outlook, fix it: http://flash.to/oe-quotefix/

 
 
 

How to automatically mount memory sticks (and other usb-storage stuff)?

Post by Michael Janic » Mon, 19 May 2003 01:09:45



> Michael Janich enlightened us with:

>>How do I automatically mount memorysticks and other usb-storage stuff?

> man hotplug
> http://www.linux-usb.org/

Thanks for the RTFM. But I've read the manual and I'm still not clear
what to do.

This is what I know:

    * Add entries like "/dev/sda1 /memorystick1 auto noauto,user,kudzu 0
0" into /etc/fstab (who is ALWAYS removing these entries????)
    * Add a "mount" command somewhere in /etc/hotplug/usb.agent - but where?

Thanks again!!

       Michael

 
 
 

How to automatically mount memory sticks (and other usb-storage stuff)?

Post by Sybren Stuve » Mon, 19 May 2003 01:52:54


Michael Janich enlightened us with:

Quote:> Thanks for the RTFM.

Michael also emailed me. This is what I mailed back:

Quote:> * Add entries like "/dev/sda1 /memorystick1 auto noauto,user,kudzu 0
>  0" into /etc/fstab (who is ALWAYS removing these entries????)

I don't know who's removing the entries, but maybe 'kudzu' has something
to do with it. Remove that keyword just to be sure.

Quote:> * Add a "mount" command somewhere in /etc/hotplug/usb.agent - but where?

I've attached my usb.agent. It brings up the usb0 network device, and a
few seconds later starts synchronizing my Zaurus' filesystem with my PC
every time I plug in my Zaurus. I think you'll be able to alter it for
your needs. Just search for 'sybren' in the file.

Sybren

PS: Michael: please don't email and post at the same time. Keep your
replies here on usenet, because I'll read them anyway.
--
| Somebody ought to cross ball point pens with coat hangers so that |
| the pens will multiply instead of disappear.                      |
\-------------------------------------------------------------------/
If you have to use Outlook, fix it: http://flash.to/oe-quotefix/