Re: How to find disk is in use?



phil-news-nospam@xxxxxxxx wrote:

On Wed, 18 Oct 2006 17:25:43 +0100 Iwo Mergler
<Iwo.Mergler@xxxxxxxxxxxxxxxxxxxx> wrote:
| fdisk does not memmap the drive. Try "fuser /dev/sdc" and it
| should give you fdisk's PID.

fuser's -m option refers to mounted filesystems, not memory mapping.

-m name specifies a file on a mounted file system or a block device
that is mounted. All processes accessing files on that file sys-
tem are listed. If a directory file is specified, it is auto-
matically changed to name/. to use any file system that might be
mounted on that directory.


Yes, you are right. I looked at the access
type section. Sorry.

Using "fuser /dev/sdc" works anyway, even for
the wrong reasons. Read "fdisk doesn't *mount* the drive..." :-)

Kind regards,

Iwo

.



Relevant Pages

  • Re: Which function can hide a partiton in WinCE 4.2?
    ... Specifies that the file system may contain the system registry. ... see Mounting an Installable File System as the Root ...
    (microsoft.public.windowsce.platbuilder)
  • SUMMARY: -tl and autofs
    ... John Lanier and Eric Werme to the rescue. ... Specifies the duration that a file system is to remain ...
    (Tru64-UNIX-Managers)
  • Re: mkfsing wrong patition
    ... file system on a partition of NTFS type. ... Specifies the type of file system to be built. ...
    (comp.os.linux.misc)