All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Iragne <florian.iragne@labri.fr>
To: linux-hotplug@vger.kernel.org
Subject: Re: add/remove actions for usb devices
Date: Tue, 30 Mar 2004 07:22:25 +0000	[thread overview]
Message-ID: <40692031.70803@labri.fr> (raw)
In-Reply-To: <40648838.2040703@labri.fr>

Patrick Mansfield wrote:
> On Mon, Mar 29, 2004 at 06:21:00PM +0200, Florian Iragne wrote:
> 
> 
>>on device add, it is correctly mounted. on device removal, the system 
>>freeze and i have to use magic keys to reboot the machine. I've enabled 
>>kernel verbose debug messgaes and other stuffs like this, but can't get 
>>any error message.
>>
>>does anyboddy have an idea to solve this problem? (unfortunately, i 
>>can't install udev from sources currently, so i can't activate its debug 
>>mode, or maybe it's possible through a configuration file?)
> 
> 
> The umount is likely hanging. This is probably a file system feature.
> 
> Try without your udev rule - unplug the device and then umount it.
> 
> -- Patrick Mansfield
ok, it's a file system failure, but why?

unplugging the device and then umount it "by hand", or umount the device 
  automatically when it's unplugged, what is the difference? if i make 
umount /dev/myDevice, i believe mount will told me there is a problem, 
but i make "umount /path/to/the/montpoint", which is perfectly right and 
works "by hand" but not automatically with the udev remove event.

I just can't says to users : well, ok, when you unplug your usb stick, 
type umount /home/yourUser/usbStick. I have a working script that does 
just what i want, but it's heavy and not so clean regarding the logical 
behaviour of the system. udev and hotplug have the possibilities i'm 
looking for, so i want to use them.

thanks for helping!

Florian


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&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

  parent reply	other threads:[~2004-03-30  7:22 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-26 19:44 add/remove actions for usb devices Florian Iragne
2004-03-26 19:51 ` Greg KH
2004-03-26 21:13 ` Florian Iragne
2004-03-26 21:22 ` Florian Iragne
2004-03-26 22:59 ` Greg KH
2004-03-28 12:05 ` Florian Iragne
2004-03-28 13:45 ` Florian Iragne
2004-03-28 13:52 ` Kay Sievers
2004-03-28 14:08 ` Martin Lohmeier
2004-03-28 14:35 ` jjluza
2004-03-28 14:58 ` Kay Sievers
2004-03-28 16:16 ` jjluza
2004-03-28 18:02 ` Florian Iragne
2004-03-28 18:19 ` Kay Sievers
2004-03-29 16:21 ` Florian Iragne
2004-03-29 16:36 ` Florian Iragne
2004-03-29 18:51 ` Patrick Mansfield
2004-03-29 19:11 ` Martin Lohmeier
2004-03-29 23:26 ` jjluza
2004-03-30  7:22 ` Florian Iragne [this message]
2004-03-30  7:25 ` Florian Iragne
2004-03-30  8:35 ` jjluza
2004-03-30  8:49 ` Florian Iragne
2004-03-30  9:48 ` jjluza

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=40692031.70803@labri.fr \
    --to=florian.iragne@labri.fr \
    --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.