---
name: "disk_allocator"
section: "1"
platform: "linux"
package: "coop-computing-tools"
version: "1:7.14.5-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/disk_allocator"
---

# disk\_allocator(1)

tool for creating and deleting loop device allocations of a given size.

## NAME

**disk\_allocator** - tool for creating and deleting loop device allocations of a given size.

## SYNOPSIS

FCdisk\_allocator \[options\] *\<create\|delete\>* *\<target directory\>* *\<size\>* *\<filesystem\>*FT

## DESCRIPTION

**disk\_allcator** is a tool for creating and deleting loop device allocations of a given size in order to sandbox an application. For creating an allocation, it accepts a desired location for the device, the size for the sandbox, and the filesystem to mount. For deleting an allocation, **disk\_allocator** needs only the directory of the mounted loop device which is to be removed.

You will need superuser priveleges to run **disk\_allocator** on your local machine.

## OPTIONS

- **-h,--help**

  Show this help screen.

- **-v,--version**

  Show version string.

## EXIT STATUS

On success, returns zero.  On failure, returns non-zero.

## EXAMPLES

Create a disk allocation:

```

```

-

  disk\_allocator create /tmp/test 100MB ext2

Delete a disk allocation:

```

```

-

  disk\_allocator delete /tmp/test

## COPYRIGHT

The Cooperative Computing Tools are Copyright (C) 2022 The University of Notre Dame.  This software is distributed under the GNU General Public License.  See the file COPYING for details.
