Index: tools/ew.py
===================================================================
--- tools/ew.py	(revision 5fdad2217fc645bdfcf1918a43c8686a3ec9fb46)
+++ tools/ew.py	(revision 129b92c6e78ce334eab6b68ae1ed0098e471069e)
@@ -93,11 +93,14 @@
 		return 'system-sparc64', ''
 
+def hdisk_mk():
+	if not os.path.exists('hdisk.img'):
+		subprocess.call('tools/mkfat.py 1048576 uspace/dist/data hdisk.img', shell = True)
+
 def qemu_bd_options():
 	if is_override('nohdd'):
 		return ''
-
-	if not os.path.exists('hdisk.img'):
-		subprocess.call('tools/mkfat.py 1048576 uspace/dist/data hdisk.img', shell = True)
-
+	
+	hdisk_mk()
+	
 	return ' -drive file=hdisk.img,index=0,media=disk,format=raw'
 
@@ -178,4 +181,5 @@
 
 def msim_run(platform, machine):
+	hdisk_mk()
 	run_in_console('msim -c contrib/conf/msim.conf', 'HelenOS/mips32 on msim')
 
