what a did as test. Create the smaller possible vb disk (4Mo) - fixed size.
attach it to an other virtual machine running openSUSE. on this machine issue fdisk -l. see the new disk is exactly 4,194,304 bytes. go to the host, see the file is 4,202,496 bytes. The offset is 8,192 bytes... format the disk from the guest (mkfs.msdos /dev/sdb -I). mount it mount /dev/sdb /mnt create a file: touch /mnt/essai on the host (the disk was on the "machine folder) mkdir mnt-test mount -o loop,offset=8192 test2.vdi mnt-test/ ls mnt-test/ essai notice you can't fail with loop because the loop driver wont mount an incorrect drive (try with 8191 or 8193) thus if you create a drive the exact same size as you original, you must have the same offset and can calculate it with the same way. don't know if this works with a variable size disk, may be if there are no snapshots jdd -- http://www.dodin.net http://www.youtube.com/user/jdddodinorg http://jdd.blip.tv/ ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community
