mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 13:53:52 +02:00
losetup: added example for --read-only and --partscan (#3792)
This commit is contained in:
parent
04ed3b2f18
commit
b80fdb65d8
1 changed files with 8 additions and 0 deletions
|
@ -17,3 +17,11 @@
|
|||
- 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:
|
||||
|
||||
`sudo losetup --show --partscan -f /{{path/to/file}}`
|
||||
|
||||
- Attach a file to a read-only loop device:
|
||||
|
||||
`sudo losetup --read-only /dev/{{loop}} /{{path/to/file}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue