1

Topic: Slax installed on usb drive want to add gparted and clonezilla

HI, I have already installed slax on a bootable USB drive, but I want to be able to install gparted and clonezilla onto the drive as well.  It would be nice if I could install a boot manager of some kind like grub and then from there choose which one of the three (slax, gparted, and clonezilla).  Any help would be much appreciated.

thanks
mike

2

Re: Slax installed on usb drive want to add gparted and clonezilla

Hello mjbjuno,

GRUB is a good idea. Look here for the script code in "menu.lst" ( the code for GRUB and GRUB4DOS is identical). The only problem, I see, is to get slax started by GRUB. It obviously has its own bootmanager. With a quick look at its documentation pages, I could not find enough informations on this issue. Perhaps you already know a solution. If it is booted by "syslinux/isolinux", there is no problem. The transscription of the code is very easy; have a closer look at the total thread, which is linked above.

Regards
cmdr

3

Re: Slax installed on usb drive want to add gparted and clonezilla

HI, thanks for the help.  I was able to get gparted working with the slax but clonzilla is still not working when I try and run it, it starts gparted.  Here is what I did to the slax.cfg file maybe someone can help me out.  All of the clonezilla functions work except for the main one which just start gparted.

PROMPT 0
TIMEOUT 90
DEFAULT /boot/vesamenu.c32
MENU BACKGROUND /boot/slax.png

MENU WIDTH 36
MENU MARGIN 0
MENU ROWS 7
MENU HELPMSGROW 14
MENU TIMEOUTROW 22
MENU TABMSGROW 24
MENU CMDLINEROW 24
MENU HSHIFT 40
MENU VSHIFT 2

    menu color screen    37;40      #00000000 #00000000 none
    menu color border    30;44      #00000000 #00000000 none
    menu color title    1;36;44    #00000000 #00000000 none
    menu color unsel    37;44      #ff60CA00 #00000000 none
    menu color hotkey    1;37;44    #ff60CA00 #00000000 none
    menu color sel        7;37;40    #ffffffff #ff60CA00 none
    menu color hotsel    1;7;37;40  #ff808080 #ff60CA00 none
    menu color scrollbar    30;44      #00000000 #00000000 none

    menu color tabmsg    31;40      #aaaaaaaa #00000000 none
    menu color cmdmark    1;36;40    #ffff0000 #00000000 none
    menu color cmdline    37;40      #aaaaaaaa #00000000 none
    menu color pwdborder    30;47      #ffff0000 #00000000 std
    menu color pwdheader    31;47      #ffff0000 #00000000 std
    menu color pwdentry    30;47      #ffff0000 #00000000 std
    menu color timeout_msg    37;40      #aaaaaaaa #00000000 none
    menu color timeout    1;37;40    #ffaaaaff #00000000 none
    menu color help        37;40      #aaaaaa00 #00000000 none
    menu color msg07    37;40      #90ffffff #00000000 std


LABEL xconf
MENU LABEL Slax Graphics mode (KDE)
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/slax/
TEXT HELP
                                          More about currently selected:

                                          Run Slax the best way we can.
                                          Try to autoconfigure graphics
                                          card and use the maximum
                                          allowed resolution
ENDTEXT


LABEL fresh
MENU LABEL Slax Always Fresh
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4
TEXT HELP
                                          More about currently selected:

                                          Normally Slax saves all changes
                                          to the /slax/changes/ directory
                                          on the boot media (if writable)
                                          and restores them next time.
                                          Use this option to start fresh
                                          system, no changes are neither
                                          read nor written anywhere
ENDTEXT

LABEL cp2ram
MENU LABEL Slax Copy To RAM
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=xconf;telinit~4
TEXT HELP
                                          More about currently selected:

                                          Run Slax the same like above,
                                          but first copy all data to RAM
                                          to get huge speed (needs >300MB)
ENDTEXT

LABEL startx
MENU LABEL Slax Graphics VESA mode
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw autoexec=telinit~4 changes=/slax/
TEXT HELP
                                          More about currently selected:

                                          Run Slax with KDE, but skip
                                          gfx-card config. Force 1024x768
                                          using standard VESA driver
ENDTEXT

LABEL slax
MENU LABEL Slax Text mode
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.gz ramdisk_size=6666 root=/dev/ram0 rw changes=/slax/
TEXT HELP
                                          More about currently selected:

                                          Run Slax in textmode and start
                                          command prompt only
  ENDTEXT


LABEL GParted
MENU LABEL GParted
  # MENU DEFAULT
  # MENU HIDE
  # MENU PASSWD
  kernel /gparted-live-0.3.9-4/live/vmlinuz1
  append initrd=/gparted-live-0.3.9-4/live/initrd1.img boot=live union=aufs    noswap noprompt vga=791 toram ip=frommedia nolocales
  TEXT HELP
  All the programs will be copied to RAM, so you can
  remove boot media (CD or USB flash drive) later
  ENDTEXT

LABEL Clonezilla
MENU LABEL Clonezilla
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live (To RAM. Boot media can be removed later)
  # MENU PASSWD
  kernel /clonezilla-live-1.2.1-17/live/vmlinuz1
  append initrd=/clonezilla-live-1.2.1-17/live/initrd1.img boot=live union=aufs    noprompt ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=791 toram ip=frommedia nolocales
  TEXT HELP
  All the programs will be copied to RAM, so you can
  remove boot media (CD or USB flash drive) later
  ENDTEXT


label local
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Local operating system in harddrive (if available)
  # MENU PASSWD
  # 2 method to boot local device:
  # (1) For localboot 0, it is decided by boot order in BIOS, so uncomment the follow 1 line if you want this method:
  # localboot 0

  # (2) For chain.c32, you can assign the boot device.
  # Ref: extlinux.doc from syslinux
  # Syntax: APPEND [hd|fd]<number> [<partition>]
  # [<partition>] is optional.
  # Ex:
  # Second partition (2) on the first hard disk (hd0);
  # Linux would *typically* call this /dev/hda2 or /dev/sda2, then it's "APPEND hd0 2"
  #
  kernel chain.c32
  append hd0
  TEXT HELP
  Boot local OS from first hard disk if it's available
  ENDTEXT

# Note! *.bin is specially purpose for syslinux,
# Do NOT use memtest.bin, use memtest instead of memtest.bin
label memtest
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Memory test using Memtest86+
  # MENU PASSWD
  kernel /clonezilla-live-1.2.1-17/live/memtest
  TEXT HELP
  Run memory test using Memtest86+
  ENDTEXT

label FreeDOS
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL FreeDOS
  # MENU PASSWD
  kernel clonezilla-live-1.2.1-17/memdisk
  append initrd=/live/freedos.img
  TEXT HELP
  Run FreeDOS
  ENDTEXT

label etherboot
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Network boot via etherboot
  # MENU PASSWD
  kernel /clonezilla-live-1.2.1-17/live/eb.zli
  TEXT HELP
  Run Etherbot to enable network (PXE) boot
  ENDTEXT

label gPXE
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Network boot via gPXE
  # MENU PASSWD
  kernel /clonezilla-live-1.2.1-17/live/gpxe.lkn
  TEXT HELP
  Run gPXE to enable network (PXE) boot
  ENDTEXT

  ENDTEXT

4

Re: Slax installed on usb drive want to add gparted and clonezilla

Hello mike,

try this :

.
.
MENU LABEL GParted
  # MENU DEFAULT
  # MENU HIDE
  # MENU PASSWD
  kernel /gparted-live-0.3.9-4/live/vmlinuz1
  append initrd=/gparted-live-0.3.9-4/live/initrd1.img live-media-path=gparted-live-0.3.9-4/live boot=live union=aufs    noswap noprompt vga=791 toram ip=frommedia nolocales
.
.
LABEL Clonezilla
MENU LABEL Clonezilla
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL Clonezilla live (To RAM. Boot media can be removed later)
  # MENU PASSWD
  kernel /clonezilla-live-1.2.1-17/live/vmlinuz1
  append initrd=/clonezilla-live-1.2.1-17/live/initrd1.img live-media-path=clonezilla-live-1.2.1-17/live boot=live union=aufs    noprompt ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_keymap="" ocs_live_batch="no" ocs_lang="" vga=791 toram ip=frommedia nolocales
.
.

Regards
cmdr

5

Re: Slax installed on usb drive want to add gparted and clonezilla

Thank you so much that did it I am now able to boot into both gparted, clonezilla, and slax.  Thanks a Bunch.
mike