mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 19:26:00 +02:00
losetup: change order (#3839)
This commit is contained in:
parent
6dbae63b16
commit
a4d4c805dd
1 changed files with 8 additions and 8 deletions
|
@ -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}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue