Tiny Core Base > TCB Q&A Forum
help...step by step to make tcl persistent on USB/Quemu
edmenje:
I downloaded Quemu for my usb to run TCL iso within windows. Being a complete newbie, if someone could give me step by step process to set persistence so that I can boot up within Windows with all my apps, settings and files intact. I have searched the wiki and forums for the info but most assume booting from USB rather than booting in a virtual machine. Hope someone can help.
edmenje
roberts:
Here is my tinycore.bat file to start Qemu Tiny Core on Windows with a Qemu created virtual harddisk
--- Code: ---REM Start qemu on windows.
@ECHO OFF
START qemu\qemu.exe -L qemu/ -no-kqemu -m 128 -localtime -soundhw es1370 -kernel bzImage -initrd tinycore.gz -hda qemu\harddisk -append "vga=791 quiet noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce tce=hda restore=hda"
CLS
EXIT
--- End code ---
To create a Qemu Virtual Hard Drive use the qemu-img.exe Windows program.
edmenje:
Roberts, thanks for the code, but it doesn't work for me. When I run the .bat file, terminal windows open and then immediately close. I studied the .bats that I use to run DSL which I got from the DSL forums, and the one from PenDrive Linux to open any .iso and did some modifications. With the beginning code from the PDL.bat file it opens a terminal which stays, but then when I hit enter to continue, the Qemu terminal closes immediately. I've tried a few changes to the code but to no avail.
Here is what I've got so far:
REM This file was produced by PDLA © 2007 http://pendrivelinux.com
REM This file will start Linux from Windows using Qemu.
@echo OFF
cls
echo.
echo Press any key to continue or close to exit...
pause >nul
cls
START .\qemu\qemu.exe -L qemu/ -no-kqemu -m 128 -soundhw es1370 -localtime -kernel bzImage -initrd tinycore.gz -hda qemu/hda -append "vga=791 quiet restore=hda modules=hda noscsi nousb nofirewire atapicd noideraid noacpi acpi=off noapm noagp ide1=noprobe ide2=noprobe nomce tce=hda"
I hope you can help me here, I really want to start learning to work with linux and a persistent qemu/tinycore on my usb will allow me to use it on computers at work and maintain what I've done with it. I've been using DSL for a little while, but then I found out about tinycore. I've gotten pretty good with Windows, and hope to get as good with linux, but at the moment I'm a total novice. I've only been trying out various distros from liveCD for a few weeks now. Most of the info I've come across presupposes a certain level of competency, and to me this is learning a whole new language.
edmenje
roberts:
Sorry, I don't have time to study someone else's bat files when mine works fine.
I wrote all the DSL Qemu stuff so TC is not much different. You likely have some files not in the directories specifed by the .bat file. On level 1, the files bzImage, tinycore.gz and tinycore.bat
qemu is self contained in its own directory qemu/ and the harddisk image is also under the qemu directory. There is not much else to it. If you have run DSL/Qemu then should be simple to add the three Tiny Core files, bzImage, tinycore.gz and tinycore.bat to the main directory of your pendrive.
HTH
edmenje:
Did what you suggested, placed tinycore.gz, and bzImage along with the tinycore.bat file in the home directory. I also made sure that I had a clean harddisk and hda file in the qemu folder. I started your tinycore.bat without any changes, and this time it started until the qemu terminal screen got to this:
ESI: c0434334 EDI: fffffff4 EBP: c046bf9c ESP: c046bf20
DS: 007b ES: 007b FS: 00dB GS: 0000 SS: 0068
Process swapper (pid: 0, ti=c046a000 task=c0434334 task.ti=c046a000)
Stack: c0119fc8 c046bf9c 00000000 00B00b00 00000046 c011bd03 00000046 00000000
00B00b00 00000000 c046bf9c c011ae2d 00000000 00000000 00000000 00000000
00000000 00000000 c011f3ed 00000027 c7c024a0 00000000 00B00b00 c046bfdc
Call Trace:
[<c0119fcB>] copy_process+0x5d/0xda2
[<c011bd03>] release_console_sem+0x166/0x17f
[<c011ae2d>] do_fork+0xab/0x1dc
[<c011f3ed>] on_each_cpu+0x17/0x1f
[<c0101B47>] kernel_thread+0x77/0x7f
[<c04702fc>] kernel_init+0x0/0x24a
[<c04702fc>] kernel_init+0x0/0x24a
[<c0103da0>] kernel_thread_helper+0x0/0x10
[<c03465d5>] rest_init+0x11/0x4b
[<c04707d0>] start_kernel+0x273/0x276
========================
Code: ff 05 ac b8 4b c0 c3 ff 0d ac b8 4b c0 c3 89 c2 8b 40 04 f6 40 0c 01 74 30
8b 82 58 02 00 00 0f ae 00 0f ba 60 02 07 73 02 db e2 <0f> 1f 00 90 8d b4 26 00
00 00 00 89 f6 8b 42 04 83 60 0c fe 0f
EIP: [<c01013c5>] prepare_to_copy+0x1d/0x43 SS:ESP 0068:c046bf20
———[ end trace 4eaa2a86a8e2da22 ]———
kernel panic — not syncing: Attempted to kill the idle task!
some improvement, but if you think you can figure out from this what else I might be missing here I'd appreciate it. I understand you don't have much time to be checking through all the code and such, but maybe some solution might be just a couple of seconds for you to figure out whereas I'm bashing my head against it as a total newbie.
edmenje
Navigation
[0] Message Index
[#] Next page
Go to full version