losetup
Set up and control loop devices. More information: <https://manned.org/losetup>.
Install
- All systems
-
curl cmd.cat/losetup.sh
- Debian
-
apt-get install mount
- Ubuntu
-
apt-get install mount
- Alpine
-
apk add util-linux
- Arch Linux
-
pacman -S util-linux
- Kali Linux
-
apt-get install mount
- CentOS
-
yum install util-linux
- Fedora
-
dnf install util-linux
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install mount
- OS X
-
brew install util-linux
- Raspbian
-
apt-get install loop-aes-utils
- Dockerfile
- dockerfile.run/losetup
- Docker
-
docker run cmd.cat/losetup losetup
powered by Commando
Set up and control loop devices. More information: <https://manned.org/losetup>.
-
List loop devices with detailed info:
losetup -a
-
Attach a file to a given loop device:
sudo losetup /dev/loop /path/to/file
-
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
-
Detach all loop devices:
sudo losetup -D
-
Detach a given loop device:
sudo losetup -d /dev/loop
© tl;dr; authors and contributors