差異處
這裏顯示兩個版本的差異處。
— |
loopback [2023/06/11 01:16] (目前版本) jz 建立 |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== Loopback ====== | ||
+ | Create a file and set it as a loopback device | ||
+ | <code> | ||
+ | dd if=/dev/zero of=/root/cryfile bs=1M count=10 | ||
+ | losetup /dev/loop0 /root/cryfile | ||
+ | </code> | ||
+ | Delete (unmount) a loopback device | ||
+ | <code> | ||
+ | losetup -d /dev/loop0 | ||
+ | </code> |