It is currently Fri Oct 24, 2014 3:18 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Bugs in menu files of UBCD50b9 (USB version affected)
PostPosted: Sat Jan 17, 2009 12:29 pm 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
UBCD doesn't work on a USB stick.

Change in every file:
Code:
DEFAULT menu.c32

To:
Code:
DEFAULT /boot/isolinux/menu.c32


Change in every file:
Code:
KERNEL memdisk

To:
Code:
KERNEL /boot/isolinux/memdisk


Change in every file:
Code:
KERNEL reboot.c32

To:
Code:
KERNEL /boot/isolinux/reboot.c32


Change isolinux.cfg to (just for consistency with the syslinux.cfg file):
Code:
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:
Quote:
@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:
Quote:
@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).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 18, 2009 7:12 am 
Offline

Joined: Fri Jan 11, 2008 2:52 pm
Posts: 1278
As temporarily solution, you can copy memdisk, menu.c32 and reboot.c32 from /isolinux/ to /syslinux/


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 18, 2009 7:03 pm 
Offline

Joined: Mon Feb 21, 2005 10:59 pm
Posts: 1294
Here's the xdelta file (V5.0B10) with the above fixed.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 21, 2009 7:36 am 
Offline

Joined: Sun Mar 25, 2007 11:00 pm
Posts: 4
FYI I installed b10 on my kingston datatraveller 8G usb and it's working fine.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group