mirror of https://github.com/CrimsonTome/tldr.git
20 lines
301 B
Markdown
20 lines
301 B
Markdown
# losetup
|
|
|
|
> Set up and control loop devices.
|
|
|
|
- List loop devices with detailed info:
|
|
|
|
`losetup -a`
|
|
|
|
- Attach a file to a given loop device:
|
|
|
|
`sudo losetup /dev/{{loop}} /{{path/to/file}}`
|
|
|
|
- Detach all loop devices:
|
|
|
|
`sudo losetup -D`
|
|
|
|
- Detach a given loop device:
|
|
|
|
`sudo losetup -d /dev/{{loop}}`
|