Difference between revisions of "Losetup"
Jump to navigation
Jump to search
↑ https://superuser.com/a/684707
(Created page with " losetup --partscan --find --show disk.img <ref>https://superuser.com/a/684707</ref> mount /dev/loop0p1 /mnt to free up loop0, use after umount: losetup -d /dev/loop0 =...") Tags: Mobile web edit, Mobile edit |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
losetup --partscan --find --show disk.img <ref>https://superuser.com/a/684707</ref> | losetup --partscan --find --show disk.img <ref>https://superuser.com/a/684707</ref> | ||
Line 6: | Line 7: | ||
losetup -d /dev/loop0 | losetup -d /dev/loop0 | ||
+ | |||
+ | |||
+ | # losetup --show -f -P test.img | ||
+ | /dev/loop0 | ||
+ | |||
+ | # ls /dev/loop0* | ||
+ | /dev/loop0 | ||
+ | /dev/loop0p1 | ||
+ | /dev/loop0p2 | ||
+ | |||
+ | # mount /dev/loop0p1 /mnt/tmp | ||
== See also == | == See also == | ||
* {{dd}} | * {{dd}} | ||
+ | * {{lsblk}} | ||
+ | |||
+ | [[Category:Linux]] |
Latest revision as of 06:13, 13 February 2023
losetup --partscan --find --show disk.img [1]
mount /dev/loop0p1 /mnt to free up loop0, use after umount:
losetup -d /dev/loop0
- losetup --show -f -P test.img
/dev/loop0
- ls /dev/loop0*
/dev/loop0 /dev/loop0p1 /dev/loop0p2
- mount /dev/loop0p1 /mnt/tmp
See also[edit]
Advertising: