summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hurd/running/qemu.mdwn16
1 files changed, 15 insertions, 1 deletions
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