Op 30-10-2011 22:55, Jim Michaels schreef:
> I know someone has answered this question before, but how do I make
> bootable freedos cd images I have mkisofs...?
> I think it had something to do with a hard disk image and ISOLINUX and a
> VM, if I am not mistaken. I have no specifics.

In Windows I tend to use IMGBURN and point it to isolinux.bin while 
creating an ISO out of a directory structure.

In DOS I use some batchfiles:
(basically, note the 1st mkisofs line in CDR.BAT)
(and no, this post doesn't mention isolinux.cfg file contents)

RDPREP3.BAT:
@echo off
for %%x in ( FD11ISO FD11ISO\CONTENTS FD11ISO\SHELL 
FD11ISO\SHELL\ISOLINUX ) do if not exist %RAMDRIVE%\%%x\NUL MD 
%RAMDRIVE%\%%x
for %%x in ( FD11ISO\CONTENTS\FREEDOS FD11ISO\CONTENTS\ISOLINUX TEMP ) 
do if not exist %RAMDRIVE%\%%x\NUL MD %RAMDRIVE%\%%x
COPY A:\COMMAND.COM %RAMDRIVE%\TEMP\COMMAND.COM > NUL
if not "%size%"=="0" COPY %CDDRIVE%\ISOLINUX\*.* 
%RAMDRIVE%\FD11ISO\SHELL\ISOLINUX\*.* > NUL
if not "%size%"=="0" COPY %CDDRIVE%\ISOLINUX\*.* 
%RAMDRIVE%\FD11ISO\CONTENTS\ISOLINUX\*.* > NUL
if not "%size%"=="0" COPY %CDDRIVE%\AUTORUN.INF 
%RAMDRIVE%\FD11ISO\CONTENTS\AUTORUN.INF > NUL
if not "%size%"=="0" COPY %CDDRIVE%\SETUP.BAT 
%RAMDRIVE%\FD11ISO\CONTENTS\SETUP.BAT > NUL
%CDDRIVE%\FREEDOS\SETUP\ODIN\attrib /s -r -s -h %RAMDRIVE%\*.* > NUL
SET TEMP=%RAMDRIVE%\TEMP
SET TMP=%TEMP%
SET COMSPEC=%TEMP%\COMMAND.COM
SET PATH=%PATH%;%CDDRIVE%\FREEDOS\SETUP\ODIN;%CDDRIVE%\FREEDOS\SETUP\BATCH
echo.
echo Type %cddrive%\SETUP to start installation of FreeDOS 1.1



CDR.BAT:
@echo off
cls
goto copyloop

:copyloop
if "%1"=="" goto makecd
if not exist %ramdrive%\FD11ISO\CONTENTS\%1\NUL MD 
%ramdrive%\FD11ISO\CONTENTS\%1
XCOPY /Q /Y /S %cddrive%\%1\*.* %ramdrive%\FD11ISO\CONTENTS\%1
ATTRIB -R -S -H /S %ramdrive%\FD11ISO\CONTENTS\%1\*.* > NUL
shift
goto copyloop

:makecd
xmssize -0 > nul
echo Currently there seems to be %errorlevel% MB of extended memory 
available.
mkisofs -boot-info-table -no-emul-boot -b isolinux/isolinux.bin -o 
%ramdrive%\FD11ISO\SHELL\ISOLINUX\FDBOOTCD.ISO %ramdrive%\FD11ISO\CONTENTS
if not "%errorlevel%"=="0" pause ERROR: MKISOFS generated return status 
code: %errorlevel%. Press a key to return
mkisofs -boot-info-table -no-emul-boot -b isolinux/isolinux.bin -o 
%ramdrive%\FD11ISO\FDBOOTCD.ISO %ramdrive%\FD11ISO\SHELL
if not "%errorlevel%"=="0" pause ERROR: MKISOFS generated return status 
code: %errorlevel%. Press a key to return
echo.
echo Done creating/updating ISO9660 CD-image filesystem.
echo If you want to keep any changes, please copy final image files to a 
location
echo with permanent storage using the following command:
echo.
echo     COPY /Y %ramdrive%\FD11ISO\SHELL\ISOLINUX\FDBOOTCD.ISO 
%usbdrive%\ISO\FDBOOTCD.ISO
echo.
goto end

rem actions:
rem * Create directory structure
rem * Copy files (XCOPY /S)
rem * Remove write-only attribute (especially ramdisk image and isolinux.*)


:isoerror
echo Unable to create ISO9660 file out of ramdisk contents due to
echo one or more of the following reasons:
echo * not enough free disk space on ramdisk to store created ISO file
echo * not enough memory to succesfully run MKISOFS! At least 1MB XMS 
required
echo * no floppy image found on ramdisk
if not "%1"=="" goto finish
goto end

:end


> getting files into some VM's like VirtualBox is nigh to impossible
> though, after freedos is loaded.
> SHSUCDX and eltorito drivers no longer work as usual!

Odd, they should work, IF you booted from CD in non-emulation mode.
I'm currently working on a A20 testing bootdisk that will also contain a 
tiny ISO just to demonstrate loading ISO files from Syslinux bootloader.

------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook 
in minutes. BlackBerry App World™ now supports Android™ Apps 
for the BlackBerry® PlayBook™. Discover just how easy and simple 
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to