---
name: "Gnome2::VFS::VolumeMonitor"
section: "3pm"
platform: "linux"
package: "libgnome2-vfs-perl"
version: "1.082-1+b3"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Gnome2::VFS::VolumeMonitor"
---

# Gnome2::VFS::VolumeMonitor(3pm)

Monitors volume mounts and unmounts

## NAME

Gnome2::VFS::VolumeMonitor - Monitors volume mounts and unmounts

## HIERARCHY

```
  Glib::Object
  +----Gnome2::VFS::VolumeMonitor
```

## METHODS

### list = $volume\_monitor-\>get\_connected\_drives

### drive = $volume\_monitor-\>get\_drive\_by\_id ($id)

- •

  `$id` (unsigned)

### list = $volume\_monitor-\>get\_mounted\_volumes

### volume = $volume\_monitor-\>get\_volume\_by\_id ($id)

- •

  `$id` (unsigned)

### volume = $volume\_monitor-\>get\_volume\_for\_path ($path)

- •

  `$path` (string)

### volumemonitor = Gnome2::VFS-\>get\_volume\_monitor

## SIGNALS

- **drive-connected** (Gnome2::VFS::VolumeMonitor, Gnome2::VFS::Drive)

  - **drive-disconnected** (Gnome2::VFS::VolumeMonitor, Gnome2::VFS::Drive)

  - **volume-mounted** (Gnome2::VFS::VolumeMonitor, Gnome2::VFS::Volume)

  - **volume-pre-unmount** (Gnome2::VFS::VolumeMonitor, Gnome2::VFS::Volume)

  - **volume-unmounted** (Gnome2::VFS::VolumeMonitor, Gnome2::VFS::Volume)

  ## SEE ALSO

Gnome2::VFS, Glib::Object

## COPYRIGHT

Copyright (C) 2003-2007, 2013 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gnome2::VFS for a full notice.
