How to add Slax Live CD to UBCD?

If you have a tutorial or tip related to the UBCD, why not share it with other users here?

Moderators:Icecube, StopSpazzing

Locked
Message
Author
darelphilip
Posts:5
Joined:Thu Jun 12, 2008 11:24 am
Contact:
How to add Slax Live CD to UBCD?

#1 Post by darelphilip » Thu Jun 12, 2008 11:42 am

can anyone tell me the proceture to add the slax live cd to UBCD?i want the slax option to be present in the user-defined tools so that i can easily boot slax from within UBCD.I havae slax version 6 and UBCD version 4.i tried the method posted by deedot under How to add slax 5.1.8.1 to UBCDv4
but it didn't work for me and it sez checksum error




thanx in advance :P

hoohooslax
Posts:19
Joined:Fri Jun 13, 2008 11:06 am

#2 Post by hoohooslax » Fri Jun 13, 2008 11:16 am

My confg file is as follows:

MENU INCLUDE /menus/defaults.cfg
LABEL back
MENU LABEL ..
KERNEL menu.c32
APPEND /menus/main.cfg
LABEL Slax
MENU LABEL Slax
KERNEL /slax/boot/vmlinuz
APPEND vga=769 changes=slaxsave.dat max_loop=255 initrd=/slax/boot/initrd.gz init=linuxrc load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=20000 root=/dev/ram0 rw

What I have changed is to request a larger ramdisk_size and I put the boot folder in SLAX cd under slax folder. And of course the KERNEL and initrd directories. It works on my SLAX 6. Try it!

darelphilip
Posts:5
Joined:Thu Jun 12, 2008 11:24 am
Contact:

#3 Post by darelphilip » Fri Jun 13, 2008 4:19 pm

finally got it after experimenting
1.First extract the content of both Slax and UBCD to your harddisk. I am assuming the content of slax is in c:\slax, while the content of UBCD is in c:\ubcd.
2.from the c:\slax\boot folder copy vmlinuz to c:\ubcd\boot\slax

then copy c:\slax\boot\initrd.gz to c:\ubcd\boot\slax.gz

3.Edit "c:\ubcd\custom\custom.cfg" with a text editor:
LABEL Slax
MENU LABEL Slax
KERNEL /boot/slax
APPEND initrd=/boot/slax.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/slax/

if u want to run slax off the RAM

LABEL Slax2RAM
MENU LABEL Slax2RAM (loads slax to ram)
KERNEL /boot/slax
APPEND initrd=/boot/slax.gz ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=xconf;telinit~4

4.that's it.now just recompile the iso image and you are done :lol:

coin
Posts:21
Joined:Thu Sep 18, 2008 5:27 pm
Location:CA, US

#4 Post by coin » Mon Sep 22, 2008 5:45 pm

@darelphilip
Thanks for the above.
Of concern is trying to use the Startup Menu and CheatCodes when Slax v6.0.7 starts up using the Ultimate Boot CD.
The contents of the Slax-6.0.7 ISO are:

Code: Select all

/slax/boot/dos
/slax/boot/isolinux
/slax/boot/syslinux
/slax/boot/bootinst.bat
/slax/boot/bootinst.sh
/slax/boot/chain.c32
/slax/boot/initrd.gz
/slax/boot/liloinst.sh
/slax/boot/mt86p
/slax/boot/slax.cfg
/slax/boot/slax.png
/slax/boot/vesamenu.c32
/slax/boot/vmlinuz

/slax/slax/modules
/slax/slax/optional
/slax/slax/rootcopy
/slax/slax/tools
/slax/slax/changelog.txt
/slax/slax/cheatcodes.txt
/slax/slax/GNU_GPL
/slax/slax/LICENSE
/slax/slax/livecd.sgn
/slax/slax/make_iso.bat
/slax/slax/make_iso.sh
/slax/slax/requirements.txt
/slax/slax/slaxsave.zip
Note that besides the dos, isolinux, and syslinux directories, there are also the slax.cfg and the cheatcodes.txt file further refining Slax's boot options.
The /slax/boot/slax.cfg contains additional Menu items (LABELS) besides the Slax and Slax2RAM listed in the "c:\ubcd\custom\custom.cfg", e.g.:

Code: Select all

...
LABEL xconf
MENU LABEL Slax Graphics mode (KDE)
...
LABEL startx
MENU LABEL Slax Graphics VESA mode
...
LABEL slax
MENU LABEL Slax Text mode
...
LABEL memtest86
MENU LABEL Run Memtest utility
...
,
memtest86 could be used as a replacement for the UBCD411 /boot/memtest

Would Icecube's bottom post 'Tutorial for systemrescue 0.4.1' at thread viewtopic.php?t=901 maybe help out here with Slax :?: :?:

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

#5 Post by Icecube » Mon Sep 29, 2008 12:01 am

To use the Startup Menu and CheatCodes when Slax v6.0.7 starts up when integrated in Ultimate Boot CD, do the following:

Extract the contents of UBCD to c:\ubcd-extract\.
Extract the slax iso to c:\slax-extract\.

The contents of the Slax-6.0.7 ISO are:
/slax/boot/dos/ ==> Delete this directory
/slax/boot/isolinux/ ==> Delete this directory
/slax/boot/syslinux/ ==> Delete this directory
/slax/boot/bootinst.bat ==> Delete this file
/slax/boot/bootinst.sh ==> Delete this file
/slax/boot/chain.c32 ==> Delete this file (not used in the slax.cfg)
/slax/boot/initrd.gz
/slax/boot/liloinst.sh ==> Delete this file
/slax/boot/mt86p
/slax/boot/slax.cfg
/slax/boot/slax.png
/slax/boot/vesamenu.c32
/slax/boot/vmlinuz

/slax/slax/modules/
/slax/slax/optional/
/slax/slax/rootcopy/

/slax/slax/tools/
/slax/slax/tools/WIN/ ==> Delete this directory

/slax/slax/changelog.txt
/slax/slax/cheatcodes.txt
/slax/slax/GNU_GPL
/slax/slax/LICENSE
/slax/slax/livecd.sgn
/slax/slax/make_iso.bat
==> Delete this file
/slax/slax/make_iso.sh ==> Delete this file
/slax/slax/requirements.txt
/slax/slax/slaxsave.zip
It isn't necessary to delete those files, but it look cleaner.

Copy the directory slax from c:\slax-extract\ to c:\ubcd-extract\.

Edit "c:\ubcd\custom\custom.cfg" with a text editor:

Code: Select all

MENU INCLUDE /menus/defaults.cfg
LABEL back
   MENU LABEL ..
   KERNEL menu.c32
   APPEND /menus/main.cfg
LABEL slax
   MENU LABEL Slax V6.07
   CONFIG /slax/boot/slax.cfg
The CONFIG command loads the slax config file for Slax, with all options as the normal Slax cd, but it requires a new version of isolinux.
Download syslinux from http://www.kernel.org/pub/linux/utils/boot/syslinux/.

Extract the syslinux archive to "c:\syslinux\".

To update isolinux for the CD version
- Copy "c:\syslinux\core\isolinux.bin" to "c:\ubcd-extract\isolinux\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd-extract\isolinux\".
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd-extract\isolinux\"
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd-extract\isolinux\"

To update syslinux for the bootable USB key
- Copy "c:\syslinux\core\ldlinux.sys" to "c:\ubcd-extract\syslinux\".
- Copy "c:\syslinux\mbr\mbr.bin" and "c:\syslinux\ldloader.bss" to "c:\ubcd-extract\tools\ubcd2usb\".
- Copy "c:\syslinux\com32\menu\menu.c32" to "c:\ubcd-extract\syslinux\"
- Copy "c:\syslinux\com32\modules\chain.c32" to "c:\ubcd-extract\syslinux\"
- Copy "c:\syslinux\memdisk\memdisk" to "c:\ubcd-extract\syslinux\"

You can also update the vesamenu.cfg of slax.
- Copy "c:\syslinux\com32\menu\vesamenu.c32" to "c:\slax\boot\vesamenu.c32"

Remaster the iso:
If you don't know how to do it, see viewtopic.php?t=1343.

Locked