All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev and dev.d scripts
Date: Fri, 25 Feb 2005 13:55:01 +0000	[thread overview]
Message-ID: <1109339701.7242.48.camel@localhost.localdomain> (raw)
In-Reply-To: <1109278659.10222.11.camel@X40.blinkeye.ch>

On Thu, 2005-02-24 at 21:57 +0100, BlinkEye wrote:
>hello, 
>
>(i still don't know how to subscribe to this list so please mail back
>directly. thanks!).

https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

>i wrote a (bash) script which is being executed as soon as i plug in my
>external usb harddisk. the problem is that this script is executed AGAIN
>when i unplug the harddisk. how may i prevent that from happening?

Check for the ACTION in the environment.

>another question i do have is one i couldn't answer with manuals i've
>read: obviously i don't need to actually mount a device to cp files on
>it with udev anymore - first i don't see how this is possible

udev has nothing to do with storage access, it just creates the device
node for you. How would you access the filesystem without mounting it?!

> and second
>i'm not sure how i should umount the usb device - simply unplug it? is
>this safe?

No, it isn't safe. But you may mount the volume with the "sync" option
and it may not happen something bad if you just remove the device.

Kay





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      reply	other threads:[~2005-02-25 13:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-24 20:57 udev and dev.d scripts BlinkEye
2005-02-25 13:55 ` Kay Sievers [this message]

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=1109339701.7242.48.camel@localhost.localdomain \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@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.