From: Robert <kerplop@sbcglobal.net>
To: linux-kernel@vger.kernel.org
Cc: fedora-list@redhat.com
Subject: Re: A little script help please .... USB Keychain Drives
Date: Wed, 27 Sep 2006 07:55:26 -0500 [thread overview]
Message-ID: <efdsbv$t5l$1@sea.gmane.org> (raw)
In-Reply-To: <14CFC56C96D8554AA0B8969DB825FEA001C397FA@chicken.machinevisionproducts.com>
Brian D. McGrew wrote:
> Can someone who is a little better at scripting than I give me some help
> here on Fedora Core 3.
>
> Using the 2.6.9 kernel I would put in a USB Keychain drive of a CD-ROM
> and it would automount it without a problem.
>
> We upgrade to 2.6.16.16 and this is now broken and thanks to the list,
> we've narrowed it to the haldaemon but because of production cycles I
> can't upgrade anything. I'm stuck with what I've got.
>
> Can someone share a script that I can run with a setuid bit to find and
> mount the CD-ROM _and_ the USB Keychain drive after they're inserted? I
> can't see to get anything to work properly.
>
> Thanks,
>
> :b!
>
> Brian D. McGrew { brian@visionpro.com || brian@doubledimension.com }
> --
>> This is a test. This is only a test!
> Had this been an actual emergency, you would have been
> told to cancel this test and seek professional assistance!
>
>
ASSUMING a mount point gets created when you plug in that USB drive, you
might do something similar to what I did in my backup script:
# Set the output mount (UD is USB DRIVE mount point)
export UD=/media/OTOT
#
#
# Check for drive mounted
if [ -z $(mount | grep $UD | awk '{ print $3 }') ]; then
mount $UD
fi
#
#
The key is having the mount point automatically created. Check
/etc/fstab with the drive plugged in and go from there.
parent reply other threads:[~2006-09-27 13:05 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <14CFC56C96D8554AA0B8969DB825FEA001C397FA@chicken.machinevisionproducts.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='efdsbv$t5l$1@sea.gmane.org' \
--to=kerplop@sbcglobal.net \
--cc=fedora-list@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.