From 3c4a1c6f0101dbff9c2788101935faf27b1ab000 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 10 Dec 2007 15:29:20 +0100 Subject: hurd/running/qemu: Add information from , by Thomas Schwinge. --- hurd/running/qemu.mdwn | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'hurd') diff --git a/hurd/running/qemu.mdwn b/hurd/running/qemu.mdwn index 971074bf..f289ec59 100644 --- a/hurd/running/qemu.mdwn +++ b/hurd/running/qemu.mdwn @@ -40,7 +40,9 @@ Also see another text about how to [[gnu/create_an_image]] for the [[GNU_system|gnu]]. -# Mounting Disk Image on Host +# Transferring Files + +## Mounting Disk Image on Host You may wish to mount your disk image on your host system to transfer files. To do this you will first need to find the offset of the partition you wish to mount. @@ -57,6 +59,18 @@ Now take the number of sectors for the beginning of the partition and multiply i # mount -o loop,offset=32256 hd0.img /mnt/diskimage +## Having QEMU crete *virtual FAT disk images* + +[Manual](http://fabrice.bellard.free.fr/qemu/qemu-doc.html#SEC24). + +QEMU has a facility to create FAT file systems on-the-fly: + + qemu [...] -hdc fat:[somewhere] + +The Hurd [[`fatfs`_translator|translator/fatfs]] currently is read-only, but +for testing executables (etc.) that is enough. And it is much easier than +loop-mounting the file systems images. (Also you don't need `root' rights.) + # Networking in QEMU -- cgit v1.2.3