loopback devices based on files in shared folder
Posted: 4. Dec 2013, 22:07
I tried to make a loopback device based on a file in a shared folder. The loopback device
doesn't work, it doesn't provide block device access to more than a bit of the beginning of the file.
Has anyone tried this?
For example, in a shared directory on the guest I tried the following
Is 'losetup' supposed to be supported for files in shared folders?
Guest: linux, debina wheezy. Host OS X.
doesn't work, it doesn't provide block device access to more than a bit of the beginning of the file.
Has anyone tried this?
For example, in a shared directory on the guest I tried the following
Code: Select all
truncate -s 1M test1m.img
losetup -f --show test1m.img
# /dev/loop0
hexdump -C test1m.img | less
# Only shows a line or two before getting to an apparent end. Attempts to use
# this as a block device have failed for me so far
Guest: linux, debina wheezy. Host OS X.