dmsetup
storageLinux/Unix
The dmsetup command is one of the most frequently used commands in Linux/Unix-like operating systems. dmsetup Low-level logical volume management tool for Device Mapper
Quick Reference
Command Name:
dmsetup
Category:
storage
Platform:
Linux/Unix
Basic Usage:
dmsetup [options] [arguments]
Common Use Cases
Syntax
dmsetup [options] [command] [command_args]
Options
Option | Description |
---|---|
--addnodeoncreate |
Add device node on create |
--checks |
Perform additional checks on the table |
--noudevsync |
Disable udev synchronization |
--readahead [+]sectors|auto|none |
Set device read ahead |
--table table |
Specify table directly on the command line |
--uuid uuid |
Specify UUID directly on the command line |
--verifyudev |
Verify udev operations |
-v, --verbose |
Verbose output |
Examples
How to Use These Examples
The examples below show common ways to use the dmsetup
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
dmsetup info