Bugs in menu files of UBCD50b9 (USB version affected)

Discussion/announcements about test/beta releases of UBCD will be posted here.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

Bugs in menu files of UBCD50b9 (USB version affected)

#1 Post by Icecube » Sat Jan 17, 2009 12:29 pm

UBCD doesn't work on a USB stick.

Change in every file:

Code: Select all

DEFAULT menu.c32
To:

Code: Select all

DEFAULT /boot/isolinux/menu.c32
Change in every file:

Code: Select all

KERNEL memdisk
To:

Code: Select all

KERNEL /boot/isolinux/memdisk
Change in every file:

Code: Select all

KERNEL reboot.c32
To:

Code: Select all

KERNEL /boot/isolinux/reboot.c32
Change isolinux.cfg to (just for consistency with the syslinux.cfg file):

Code: Select all

DISPLAY /boot/isolinux/startup.msg
PROMPT 1
TIMEOUT 100
TOTALTIMEOUT 100
DEFAULT main
ONTIMEOUT boot

LABEL boot
LOCALBOOT -1

LABEL main
KERNEL /boot/isolinux/menu.c32
APPEND /ubcd/menus/isolinux/main.cfg
Some errors in ubcd2iso.cmd:
@echo off

rem * Create a bootable UBCD ISO image
rem *
rem * Ultimate Boot CD (UBCD): http://www.ultimatebootcd.com/
rem * syslinux: http://syslinux.zytor.com/

@echo on
@if "%debug%"=="" echo off

SET VOLUME_ID=UBCD50B9

SET a1=%1
SET a1=###%a1%###
SET a1=%a1:"###=%
SET a1=%a1:###"=%
SET a1=%a1:###=%

SET a2=%2
SET a2=###%a2%###
SET a2=%a2:"###=%
SET a2=%a2:###"=%
SET a2=%a2:###=%

if "%a1%"==":" if not "%a2%"=="" goto %a2%
if "%a1%"=="" goto _help
if "%a2%"=="" goto _help

echo UBCD2ISO: Creating bootable UBCD ISO image ...

if not exist "%~p0\mkisofs.exe" %0 : _error Missing file '%~p0\mkisofs.exe'
if not exist "%a1%\boot\isolinux\isolinux.bin" %0 : _error Missing file '%a1%\boot\isolinux\isolinux.bin'

del "%a1%\boot\isolinux\boot.catalog" 2> NUL

pushd "%a1%"
"%~p0\mkisofs.exe" -N -J -joliet-long -D -V %VOLUME_ID% -o "%a2%" -b "boot/isolinux/isolinux.bin" -c "boot/isolinux/boot.catalog" -hide "boot/isolinux/boot.catalog" -no-emul-boot -boot-load-size 4 -boot-info-table .
popd
if errorlevel 0 goto _success
%0 : _error 'mkisofs.exe' failed

:_success
echo UBCD2ISO: Bootable UBCD ISO image has been created
goto _end

:_help
echo.
echo UBCD2ISO: Create bootable UBCD ISO image
echo.
echo Usage: UBCD2ISO (UBCD-path) (output-image) [params]
echo.
echo Example: UBCD2ISO "c:\ubcd" "c:\ubcd.iso"
echo (UBCD extracted in dir 'c:\ubcd', ISO image written to 'c:\ubcd.iso')
echo.
echo Required: W2K/XP/W2K3/Vista and UBCD extracted to local storage
cmd.exe /k cd "%~p0"
goto _end

:_error
shift
shift
echo (ERROR) %1 %2 %3 %4 %5 %6 %7 %8
goto _end

:_end
Some errors in ubcd2usb.cmd:
@echo off

rem * Create a bootable UBCD memory stick
rem *
rem * UBCD port to USB pioneered by Reblu
rem * viewtopic.php?t=155
rem *
rem * UBCD2USB batch helper authored by Erwin Veermans
rem * Modified by Victor Chew for inclusion in UBCD main distro
rem *
rem * Ultimate Boot CD (UBCD): http://www.ultimatebootcd.com/
rem * syslinux: http://syslinux.zytor.com/

@echo on
@if "%debug%"=="" echo off

SET VOLUME_ID=UBCD50B9

SET a1=%1
SET a1=###%a1%###
SET a1=%a1:"###=%
SET a1=%a1:###"=%
SET a1=%a1:###=%

SET a2=%2
SET a2=###%a2%###
SET a2=%a2:"###=%
SET a2=%a2:###"=%
SET a2=%a2:###=%

if "%a1%"==":" if not "%a2%"=="" goto %a2%
if "%a1%"=="" goto _help
if "%a2%"=="" goto _help

setlocal

:_startops
echo.
echo UBCD2USB: Creating bootable UBCD memory stick ...

:_mkbtft
echo UBCD2USB: *WARNING* YOUR USB KEY IS ABOUT TO BE REFORMATTED!
echo UBCD2USB: *WARNING* YOUR USB KEY CONTENTS WILL BE LOST!
echo Press any key to continue, press 'Ctrl+C' to abort.
pause > nul

:_gomkbt
echo UBCD2USB: Formatting USB KEY...
format "%a2%" /v:%VOLUME_ID% /x /q
if errorlevel 0 goto _gomkbt2
%0 : _error 'format.exe' failed
:_gomkbt2
echo UBCD2USB: Making USB KEY bootable...
"%~dp0\syslinux" -ma -d boot\syslinux %a2%
if errorlevel 0 goto _gomkbt3
%0 : _error 'syslinux.exe' failed
:_gomkbt3
echo UBCD2USB: Copying files to USB KEY...
xcopy "%a1%\*" %a2% /s /h /q
if errorlevel 0 goto _gomkbt4
%0 : _error 'xcopy.exe' failed
:_gomkbt4
if not exist "%a2%\ubcd\tools\ubcd2usb\ubcd2usb.cmd" %0 : _error Missing '%a2%\ubcd\tools\ubcd2usb\ubcd2usb.cmd' (script did not run successfully)
echo UBCD2USB: Bootable UBCD memory stick has been created
goto _end

:_help
echo.
echo UBCD2USB: Create a bootable UBCD memory stick
echo.
echo Usage: UBCD2USB (UBCD-path) (USB-drive)
echo.
echo Examples: UBCD2USB e: f:
echo (UBCD-CDROM in 'E:', USB-key in 'F:')
echo.
echo UBCD2USB "d:\ubcd" f:
echo (UBCD extracted in dir 'D:\ubcd', USB-key in 'F:')
echo.
echo Requires: W2K/XP/W2K3/Vista and an (optionally extracted) UBCD
cmd.exe /k cd "%~p0"
goto _end

:_error
shift
shift
echo (ERROR) %1 %2 %3 %4 %5 %6 %7 %8
goto _end

:_end
/boot/isolinux/chain.c32 is never used in the config files. Maybe let it stay, so it is easy to add a chain.c32 command for PCs that don't support the 'LOCALBOOT -1' option.

Maybe you can best release a xdelta patch file for it (with instructions).

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#2 Post by Icecube » Sun Jan 18, 2009 7:12 am

As temporarily solution, you can copy memdisk, menu.c32 and reboot.c32 from /isolinux/ to /syslinux/

Victor Chew
Posts: 1368
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#3 Post by Victor Chew » Sun Jan 18, 2009 7:03 pm

Here's the xdelta file (V5.0B10) with the above fixed.

Seanster
Posts: 4
Joined: Sun Mar 25, 2007 11:00 pm

#4 Post by Seanster » Wed Jan 21, 2009 7:36 am

FYI I installed b10 on my kingston datatraveller 8G usb and it's working fine.

Post Reply