Several people contacted me with respect to my earlier post
advocating Linux using DOS FAT filesystem.
Here is how I implement a windows procedure that will
fire-up linux without a need to reboot, just a double-click
on a progman icon. Very handy, IMHO:
1. Ingredients:
- Linux using umsdos, on the same DOS partition.
- PC Magzines wincmd windows batch language (available at your
nearset cica mirror, as wincmd.zip or similar.).
- exitw.exe - a program that exits windows immediately,
no questions asked. Available at above.
2. Procedure:
2.1 in your root directory, make a tiny file, called dummy.flg. It
can be just a single byte, its presense is important, not its contents.
2.2 in your multi-config autoexec have the following:
...
:wfw
cd \wfw
win
if exist c:\rununix.flg goto linux
goto done
:linux
if exist c:\rununix.flg del c:\rununix.flg
c:\loadlinx c:\linux\vmlinuz root=c: rw
:done
cls
Rem end of autoexec
2.3 make a wincmd file consisting of the following (I call it rununix.wcm):
copy c:\dummy.flg c:\rununix.flg
"c:\windows\exitw.exe"
2.4 make an icon in progman that will run "wincmd.exe rununix.wcm"
3. Principle of operation:
Very simple: when you click on the above icon, wincmd copies dummy.flg to
rununix.flg and then exits windows, into the next statement of autoexec.bat
(I also have a wfw.bat with the same structure). Whats the next statement
of autoexec.bat? Its testing for the existance of rununix.flg. If it exists,
then it goes to the linux portion. If not, it goes to the end of autoexect and
exits as usual. The 'linux:' section checks if rununix.flg exists and deletes it if
so, and fires up linux. The check is necessary since if I run linux directly
from autoexec (at bootup) then rununix.flg won't be there, and del would be
inappropriate.
--
my address index card and PGP public key.