How to Run "tomsrtbt"
Root Boot Disk under
The Bochs Emulator
(with DLX-Linux)


Copyright©2003, 2012 by Daniel B. Sedory


Although the Bochs Emulator has versions for different OS Platforms (Linux included), the following will describe how MS-Windows users can set up and run tomsrtbt under the Bochs Emulator (and get another Linux install to test it on). First, you need to download the latest 32-bit Bochs executable. Go to the following page, find a site near you and click on the binary ( ) icon:

http://prdownloads.sourceforge.net/bochs/Bochs-2.5.1.exe?download

My copy of the Bochs-2.5.1.exe download file is 4,001,273 bytes (3.81 MiB; which can also be opened by the 7-Zip program for inspection) and is easy on the Registry when installed (it just places an uninstall and recognition for its ".bxrc" Configuration files which then have a little 'box' icon next to them). The default install location is: C:\Program Files\Bochs-2.5.1\ with subdirs for 'dlxlinux' (make sure you install this! You need to click a check box for it, part way through the install process), 'docs' (comes with what could end up being very confusing HTML documentation for some of you; only parts of the one titled, "User Guide" are helpful at this time) and 'keymaps'. You can read more about bochs here: http://bochs.sourceforge.net/.

 

Here's a detailed email I sent to my friend "Tigger" about how to do this:


When you install BOCHS, part way through the installation, it will show what it's going to install and allow you to check a box for DLXlinux to be installed. MAKE SURE TO CHECK this box, or the DLX Linux OS will not be installed to a 10mb file.

You can try reading a bit about BOCHS by looking at the HTML file here:
C:\Program Files\Bochs-2.5.1\docs\index.html (after it's installed) and then on the choice of "User Guide" (the other two choices aren't much help to most users!) and even their 'User Manual' is still 'under construction' in places. The page:
C:\Program Files\Bochs-2.5.1\docs\user\x1069.html has some further explanations about the choices for the Boch's .bxrc configuration files, but might be a waste of your time... not much is of practical help here to those who are unfamiliar with emulation!

HOW TO GET "tomsrtbt" 2880-kb
image file Running in Bochs :


OK, download the 2880 kb file from here:

http://www.ibiblio.org/pub/Linux/system/recovery/tomsrtbt-2.0.103.ElTorito.288.img.bz2

or from here:

http://www.tux.org/pub/distributions/tinylinux/tomsrtbt/tomsrtbt-2.0.103.ElTorito.288.img.bz2

or pick another site by going to Tom's downlaod page first, and then look for the "tomsrtbt-2.0.103.ElTorito.288.img.bz2" file once you're there.

If you don't have WinRAR (i think you said you do), then I'll have to send you a "bz2" unzipper program... let me know if you need one.

NOTE: You can find a bunzip2 program for MS-Windows based OSs here: http://sources.redhat.com/bzip2/; by clicking on:
PC, Windows 95/98/ME/NT/2000/XP to download the program. This web page was written by Julian Seward, the creator of BZIP2, so it should work for you. Once you have downloaded the program, I'd change the filename to "bzip2.exe" for ease of use. Then, at a DOS-box prompt open to the same folder as the tomsrtbt "*.bz2" file, simply enter this command:

bzip2 -v -d *.bz2

and you should see something similar to this:

      tomsrtbt-2.0.103.ElTorito.288.img.bz2:
      [1: huff+mtf rt+rld]
      [2: huff+mtf rt+rld]
      done


If you want to keep a copy of the *.bz2 version of the file, make sure you save it elsewhere first, since this bzip2 program will overwrite it with the new file!

After getting the file "tomsrtbt-2.0.103.ElTorito.288.img" out of the archive, simply place a copy into this directory (after you install BOCHS; which creates the directory):

C:\Program Files\Bochs-2.5.1\dlxlinux\

and then change its filename to just "288.img" (the word ElTorito in the filename might confuse some people into thinking this is an ISO image; it's not... it's really just a 2880-kb floppy diskette image! Tom mentions this in his tomsrtbt.FAQ file on the disk).

I'm attaching another bochsrc.bxrc file which will already have the necessary changes that allow you to run "tomsrtbt" 288.img file as the boot diskette for the DLXlinux hard drive under the Bochs emulator! [download the file here as "bochsrc.zip"] and then simply click on the "run.bat" file already there; which is nothing more than these two lines:

    cd "C:\Program Files\Bochs-2.5.1\dlxlinux"
    ..\bochs -q -f bochsrc.bxrc

The "-q" in the line above means to start bochs 'quick' without using its usual 'menu system' (you can remove it if you want to see what the menus look like). The "-f " must precede the filename of the Bochs Configuration file for your emulation to work!

The BOCHS .bxrc configuration files can be complex and hard to understand at first, which is why I've edited this one for you! It's just a TEXT file that you can look at in NOTEPAD if you want to see what's in it. Click here: bochsrc.bxrc to see an online copy (in HTML) with a few comments on how to change this file if necessary.

To start the emulation of Tom's Root Boot Disk booting up in a computer inside of a Bochs window, just double-click on either the run.bat file or the bochsrc.bxrc file (which should have a little 'box' icon next to it). It will take some time, many minutes perhaps, for the uncompressing parts of the boot up..... So, WHILE it's running, you can always review my web pages about using tomsrtbt disk in another window here:

http://<web site>/linux/index.html etc.

Your friend, The Starman.


After you have Bochs installed and you start running the "dlxlinux" emulation, you should see a window like this one on your screen:

    Quick Guide to Using Bochs (beginning with 'dlx linux'):

Note: It's perfectly normal for the 'dlx linux' emulation screen to go completely 'blank' (all black) after a short time... unless you keep typing data into it. (Pressing the BACKSPACE key will cause it to reappear; the ENTER and other keys will also do this.)

The "mouse" has not been enabled, since it's not used by this 'dlx linux' install. The "Copy" button will place all text from inside the Emulator screen onto your Windows Clipboard, and the "snapshot" button will save it to a text file of your choice and location (default name: 'snapshot.txt'). This could obviously be very useful to you. The "Paste" button will emulate the keystroke entery of whatever characters are on the Clipboard; do not use this button on a Command Line without first being sure of what's in the Clipboard! If you try the "CONFIG" button, do not click the "Quit" button under "Simulation" or you will power-off the Bochs emulator! Instead use the "Continue" button. Clicking on the "Reset" button does the same as a PC: Powers-off the BOCHS Emulator and then turns it back ON again! Don't use this unless you're running a rather simple emulation . The "Power" button will, of course, immediately turn off power to the emulated computer... so do not use this until after you have tried entering the halt or the poweroff commands under a more complex Linux or Windows install.

Have fun... The Starman.


 

Back to: Linux/UNIX Commands Page

 

Revised: 28 JAN 2003.