losetup: change order (#3839)
This commit is contained in:
@@ -10,14 +10,6 @@
|
|||||||
|
|
||||||
`sudo losetup /dev/{{loop}} /{{path/to/file}}`
|
`sudo losetup /dev/{{loop}} /{{path/to/file}}`
|
||||||
|
|
||||||
- Detach all loop devices:
|
|
||||||
|
|
||||||
`sudo losetup -D`
|
|
||||||
|
|
||||||
- Detach a given loop device:
|
|
||||||
|
|
||||||
`sudo losetup -d /dev/{{loop}}`
|
|
||||||
|
|
||||||
- Attach a file to a new free loop device and scan the device for partitions:
|
- Attach a file to a new free loop device and scan the device for partitions:
|
||||||
|
|
||||||
`sudo losetup --show --partscan -f /{{path/to/file}}`
|
`sudo losetup --show --partscan -f /{{path/to/file}}`
|
||||||
@@ -25,3 +17,11 @@
|
|||||||
- Attach a file to a read-only loop device:
|
- Attach a file to a read-only loop device:
|
||||||
|
|
||||||
`sudo losetup --read-only /dev/{{loop}} /{{path/to/file}}`
|
`sudo losetup --read-only /dev/{{loop}} /{{path/to/file}}`
|
||||||
|
|
||||||
|
- Detach all loop devices:
|
||||||
|
|
||||||
|
`sudo losetup -D`
|
||||||
|
|
||||||
|
- Detach a given loop device:
|
||||||
|
|
||||||
|
`sudo losetup -d /dev/{{loop}}`
|
||||||
|
Reference in New Issue
Block a user