Created
May 8, 2013 16:51
-
-
Save hgomez/5541819 to your computer and use it in GitHub Desktop.
cant mount QEMU file
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
| > qemu-img create -f raw hda.img 2G | |
| > qemu-system-arm -m 256 -M versatilepb -kernel vmlinuz-3.2.0-4-versatile -initrd initrd.gz -hda hda.img -append “root=/dev/ram” | |
| > qemu-img info hda.img | |
| image: hda.img | |
| file format: raw | |
| virtual size: 2.0G (2147483648 bytes) | |
| disk size: 1.3G | |
| > mkdir mount | |
| > sudo mount -o loop,offset=32256 hda.img mount | |
| mount: you must specify the filesystem type | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fix using @skherzi suggestion
losetup usage for QEMU found here also :
http://alexeytorkhov.blogspot.fr/2009/09/mounting-raw-and-qcow2-vm-disk-images.html