O'Reilly logo

Linux in a Nutshell, 6th Edition by Robert Love, Stephen Figgins, Ellen Siever, Arnold Robbins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

losetup

Synopsis

losetup [options] loopdevice [file]

System administration command. Set up and control loop devices. Attach a loop device to a regular file or block device, detach a loop device, or query a loop device. A loop device can be used to mount an image file as if it were a normal device.

Options

-d

Detach specified loopdevice.

-e encryption, -Enumber

Use specified kernel encryption module when performing writes and reads. (Usually NONE, DES, and XOR.) You may also specify the encryption module by number. When using DES encryption, you will be prompted for an initialization passphrase.

-o offset

Start reading data at offset bytes from the beginning of file.

-p fd

Read the passphrase from file descriptor fd.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required