Created
October 1, 2016 15:09
-
-
Save dungmanh88/6f58aa7164163a87899fb756c4355555 to your computer and use it in GitHub Desktop.
Create and use loop device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dd if=/dev/zero of=/virtual_drive bs=1G count=1 | |
mkfs -t ext4 /virtual_drive | |
mkdir -p /mnt/virtual_device | |
mount -t ext4 -o loop /virtual_drive /mnt/virtual_device | |
To view loop device list: | |
losetup -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment