Difference between revisions of "Losetup"

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
 
  losetup -d /dev/loop0
 
  losetup -d /dev/loop0
  
losetup -a
 
  
== Related commands ==
+
 
* [[fdisk]]
+
# 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 ==  

Revision as of 10:36, 21 September 2020

losetup --partscan --find --show disk.img [1]
mount /dev/loop0p1 /mnt
to free up loop0, use after umount:
losetup -d /dev/loop0


  1. losetup --show -f -P test.img

/dev/loop0

  1. ls /dev/loop0*

/dev/loop0 /dev/loop0p1 /dev/loop0p2

  1. mount /dev/loop0p1 /mnt/tmp

See also

  • https://superuser.com/a/684707
  • Advertising: