What makes me tick.

Thursday, August 27, 2009

  Using QEMU on XP to generate a bootable puppy linux USB drive


Download QEMU from http://homepage3.nifty.com/takeda-toshiya/.  The one that I downloaded is http://homepage3.nifty.com/takeda-toshiya/qemu/qemu-0.9.1-windows.zip   (note that many
later versions did NOT work for me).

Optionally from http://www.h7.dion.ne.jp/~qemu-win/index.html download and run
http://www.h6.dion.ne.jp/~kazuw/qemu-win/Kqemu-1.3.0pre11-install.exe

Download the latest Puppy  from http://www.puppylinux.org/downloads/official-releases/latest-production-release.   I happened to get this one:  ftp://ibiblio.org/pub/linux/distributions/puppylinux/puppy-4.2.1-k2.6.25.16-
seamonkey.iso
  • unzip qemu-0.9.1–windows.zip 
  • cd qemu-0.9.1–windows 
If you have 1 harddisk, you need to use PhysicalDrive1 in the following command, if you
have 2 hard disks, you need to use PhysicalDrive2 and so on.  There are checks later on to make sure,  I have only one hard disk:
  • qemu.exe -L . -m 512 -localtime -boot d -cdrom ../puppy-4.2.1-k2.6.25.16-seamonkey.iso //./PhysicalDrive1 
Hit return at the boot: prompt.  Pick your kbd and mouse.  At X Prompt, pick Xvesa.  Stick
with default resolution and depth (takes time after X starts).  I have to click, Alt-Tab, Alt-tab,
click to get the mouse to work.  Wait for the menus to show up.

  • Menu (bottom Left) > Setup > Puppy Universal Installer.
  • Pick Internal IDE/SATA Flash Drive (…)  
  • Pick the drive and check the size. 

You'll get a dialog box saying "Here's what Puppy ......".   Check that the size matches the size of your USB drive.   Then click on the puppy next to "Install puppy to your-chosen-drive".

You'll get another dialog box saying "You have chosen … " Click OK.

Then it'll ask you " Where are the Puppy Files .. ".  Pick CD

Please Insert ….   . Just Click OK, because the file we used is the CD.

"The MBR in the USB Drive ....".   Pick mbr.bin Syslinux, Click OK

Please accept default … pick default, Click OK.

Absolute final sanity check – hit enter.

 Press alphanumeric + ENTER to wipe all files – type x, then ENTER
 Press alphanumeric + ENTER for copy then exec.  Hit enter.  I don’t want to copy, you
might
 Finished – hit enter. Shutdown puppy, Do not save user area.

Change: append initrd=initrd.gz ide=nodma pmedia=ataflash nosmp

To         : append initrd=initrd.gz ide=nodma pmedia=usbflash acpi=off loglevel=7 nosmp

Then test with

 qemu.exe -L . -m 512 -localtime //./PhysicalDrive1

Followers