Mailinglist Archive: opensuse (1956 mails)
| < Previous | Next > |
Re: [opensuse] Safely remove USB
- From: "Greg Freemyer" <greg.freemyer@xxxxxxxxx>
- Date: Wed, 1 Aug 2007 15:14:01 -0400
- Message-id: <87f94c370708011214k2105d35fqc55902b9cf13079f@xxxxxxxxxxxxxx>
On 8/1/07, Kai Ponte <kai@xxxxxxxxxxxxxxxx> wrote:
> On Wed, August 1, 2007 8:56 am, Patrick Shanahan wrote:
> > * Kai Ponte <kai@xxxxxxxxxxxxxxxx> [08-01-07 11:42]:
> >> That would be useful. How would it be done? Does the kernel (or
> >> something else) track which apps are being used by various hardware
> >> items?
> >
> > lsof <dev/name>
>
> Thx!
>
> ...learn something new every day. :)
Kai,
lsof is nice, but if you want to kill all the apps using your
thumbdrive, check out "fuser -m -k </mnt-point>" as well.
Note that this is much more dangerous, so treat with care.
Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
> On Wed, August 1, 2007 8:56 am, Patrick Shanahan wrote:
> > * Kai Ponte <kai@xxxxxxxxxxxxxxxx> [08-01-07 11:42]:
> >> That would be useful. How would it be done? Does the kernel (or
> >> something else) track which apps are being used by various hardware
> >> items?
> >
> > lsof <dev/name>
>
> Thx!
>
> ...learn something new every day. :)
Kai,
lsof is nice, but if you want to kill all the apps using your
thumbdrive, check out "fuser -m -k </mnt-point>" as well.
Note that this is much more dangerous, so treat with care.
Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |