LOSETUP(8) MAINTENANCE COMMANDS LOSETUP(8) NAME losetup - SYNOPSIS losetup [ -e encryption ] [ -o offset ] loop_device file losetup [ -d ] loop_device losetup loop device block device . loop device , loop_device . loop device . OPTIONS -d loop -e encryption . : . : NONE ( ) . XOR XOR DES DES . DES kernel DES . DES . -o offset (offset) bytes RETURN VALUE losetup returns 0 on success, nonzero on failure. When losetup displays the status of a loop device, it returns 1 if the device is not configured and 2 if an error occurred which prevented losetup from determining the status of the device. FILES /dev/loop0,/dev/loop1,... loop devices (major=7) EXAMPLE , . # insmod loop.o loop . dd if=/dev/zero of=/file bs=1k count=100 losetup -e des /dev/loop0 /file Password: Init (up to 16 hex digits): mkfs -t ext2 /dev/loop0 100 mount -t ext2 /dev/loop0 /mnt ... umount /dev/loop0 losetup -d /dev/loop0 , loop . # rmmod loop RESTRICTION DES , XOR . AUTHOR S Original version: Theodore Ts'o Original DES by: Eric Young [] Linux Man [] 1989.01.01 linuxman: http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh Linux Nov 24 1993 LOSETUP(8)