pressed for time questionForum: USB booting Topic: pressed for time question started by: Molos Posted by Molos on Mar. 28 2006,03:09
I'm planning on buying a laptop within the year and noticed the webpage associated with this forum and noticed the bootable USB device mentioned, so I thought I could try and make one myself with a Sandisk 512 MB device....especially since it seems better than just trying to ask whoever I buy one from and be told some possibly pro-Windows crap about "If we or you put an empty partition on your unit, then the unit can't be covered by warranty...." So I would want to try a way to boot into Hikarunix 0.2 and be able to save my settings and being able to boot into Hikarunix without having to leave Windows is a bonus too.So I'm having problems figuring out the whole Qemu thing, I tried several ways to do it so that I could boot Hikarunix up from the USB while Windows XP is still active, including copying directly from the Live CD and then installing Qemu but it wouldn't boot...tried the Qemu menu thing and tried figuring it out, starting to understand it but I couldn't do any image to boot from, it just won't do at all. I tried doing my own image, I even tried pointing to the boot image at F:\KNOPPIX\boot.img and the line that says ISO/CD specifies "(-cdrom "F:\KNOPPIX\boot.img" -boot d)" When I attempt to boot Qemu using boot.img I get.... qemu.exe -L "\Qemu\bios" -m 128 -hda "F:\Qemu\boot.img" -cdrom "F:\KNOPPIX\boot.img" -boot d -enable-audio -localtime qemu.exe: invalid option -- '-enable-audio' Posted by Molos on Mar. 30 2006,13:19
bump (taking a chance on if bumping a topic is allowed)
Posted by doobit on Mar. 30 2006,13:35
You may want to just start with a full DSL embedded install. That will put all of the files on the USB in the proper order to start with. The whole OS is only 50 MB anyway. Then you can remove what you don't need and rewrite the boot scripts for whatever else it is that you are trying to do.
Posted by desnotes on Mar. 30 2006,14:06
I have qemu installed on my Windows XP box and was able to run the Hikarunix iso image using the following command line:qemu.exe -L "\Program Files\Qemu\bios" -m 500 -hda hardisk.img -cdrom hikarunix-0.4.iso -boot d -enable-audio -localtime I created my own hardisk image using qemu and Qemu was installed at C:\Program Files\Qemu but it should be possible to move this over to a USB drive and call it up. The above command line was used with Qemu 0.7.2 so if you have a later version (0.8.0) you will need to replace "-enable-audio" with "-soundhw sb16" Hope this helps, desNotes Posted by Molos on April 03 2006,02:17
what changes do I need to make to that line to boot it off the USB? For some odd reason when I tried to move the install off the HD it said that my 512 MB stick isn't big enough but I was able to run the installer and install it straight on there and am going through the menu trying to configure the way you did that one line... but it looks like you're tellimg me not to run the Qemu menu program and just go to the command line and type that line in? Posted by desnotes on April 03 2006,03:17
Well, first...trying to install to a USB will take up much more space than the compressed iso version. To run hikarunix-0.4.iso from a USB drive you would need to copy hikarunix-0.4.iso to the USB. Also, you would need to copy qemu.exe and sdl.dll to the drive. Next you should create a directory entitled 'bios' and copy the files from the 'bios' directory in your Qemu installation to the 'bios' directory on your USB drive. If you are creating a virtual disk drive and want to use it, put that in your USB drive also I named it 'hardisk.img' in the example below).Then create a windows_qemu.bat file and put the following lines in it:
This should work. Keep us posted on your results. desNotes Posted by Molos on April 03 2006,04:06
should I type that the way it is or use.... START qemu.exe -L "\bios" -m 500 -sda1 hardisk.img -cdrom hikarunix-0.4.iso -boot f -enable-audio -localtime and change "-cdrom" to whatever the designation for the USB slot is? Posted by desnotes on April 03 2006,10:39
The designation for the distro must always be -cdrom, that is the way Qemu works. As for for the harddisk.img, that is designated if you want to save any data (like results, configurations, etc.). Qemu does not allow the USB drive by itself to be able to be written to. There is a command to access the USB drive (-hdb fat:/my_directory) but it allows read-only access.Copy it the way I sent it above and try it out. desNotes Posted by Molos on April 14 2006,22:47
sorry for taking so long...I've tried the suggestion on what to copy over from Qemu and where to put things and the batch file too, all I got is.... ata0master: QEMU HARDDISK ATA=2 HARD-DISK (150 MBytes) ata0 slave: unknown device ata1 master: QEMU CD-ROM ATAPI-4 CD-Rom/DVD-Rom ata1 slave: unknown device CDROM boot failure code: 0004 Boot from CD-ROM failed FATAL: could not read the boot disk ---------------------------------- (something is telling me to give up and just forfeit any hope for a warranty on my laptop purchase by having the company put a blank partition?) Posted by desnotes on April 15 2006,02:16
I will try to build one of my USB drives using the hikarunix-0.4.iso this weekend and see what happens and let you know.Just as a test have you tried burning the iso to a CD and then trying to boot from it? You won't be able to save anything but it would verify that your iso is not corrupt. desNotes Posted by Molos on April 15 2006,02:58
let me see if I remember this, I put a blank CDRW in and then double click the iso and it brings up the software and burns right? Posted by desnotes on April 15 2006,03:11
Not sure what app you have to burn CDs...there are many out there. If you have a CD burner and have done any burning before, just go though the steps but make sure you select the process that will create an iso. You can't just drag and drop the iso over to the CD to burn it.desNotes Posted by desnotes on April 16 2006,15:32
Here is what I did to create a USB drive that runs qemu and hikarunix-0.4.iso. You can get the files from a DSL embedded editionIn top USB directory: hikarunix-0.4.iso dsl-windows.bat Create qemu directory and place: bios.bin fmod.dll harddisk linux_boot.bin qemu.exe (version 0.8.0) sdl.dll vgabios.bin vgabios-cirrus.bin Contents of dsl-windows.bat REM Start qemu on windows. @ECHO OFF START qemu\qemu_080.exe -L "\qemu" -m 125 -boot d -soundhw sb16 -localtime -cdrom hikarunix-0.4.iso -hda qemu/harddisk -append "qemu sb=0x220,5,1,1" CLS EXIT Posted by Molos on April 16 2006,18:15
I forgot to ask... how big should I set the hardisk.img file? I go through the qemu menu thing to create it and I've always wondered the minimum and max sizes that the image should be.
Posted by desnotes on April 17 2006,00:08
the one I use is from DSL embedded and it is 60MB
|