55 - Boot Slax from a USB drive

Unique hits tumblr visitor stats

Slax booted within the QEMU emulator using RMPrepUSB.

Note: Easy2Boot will boot nearly all linux LiveCD ISOs - just copy over the .iso file and boot!

Booting from the ISO file directly using grub4dos

1. Download the ISO and copy it to the /ISO folder on your USB drive (note: if you copy it to a different folder be sure to change the from= entry too - beware - the path and filename are CASE SENSITIVE!)
2. Install grub4dos on the USB drive if you haven't already done so (use the RMPrepUSB - Install grub4dos button)
3. Add the following text to your menu.lst file (press F4 to load it in Notepad)

#The iso file must be in the /ISO folder on the USB drive (paths are case sensitive!)
title slax 6.1.2
map /ISO/slax-6.1.2.iso (0xff) || map --mem /ISO/slax-6.1.2.iso (0xff)
map --hook
root (0xff)
kernel  /boot/vmlinuz from=/ISO/slax-6.1.2.iso ramdisk_size=6666 root=/dev/ram0 rw
initrd /boot/initrd.gz

4. Press F11 to try it out under the QEMU emulator.

Using Syslinux

These instructions will create a new USB flash drive (or USB Hard drive) and install the Syslinux bootloader onto it.

1. Download the Slax ISO v6.1.2 from the Slax website
2. Download and install RMPrepUSB v2.1.630 or later
3. Slax requires syslinux version 3 - Run RMPrepUSB and press F3 to open Explorer at the RMPrepUSB folder - open the Syslinux - Syslinux_3.86 folder and copy the syslinux.exe file to the RMPrepUSB folder - this will overwrite the current syslinux.exe (which is version 4) with version 3.86. Now the Install Syslinux button on RMPrepUSB will install v3.86 instead of version 4 when it is used.
4. Set up RMPrepUSB to format and prepare your USB drive as in the picture below. Be sure to use FAT32 and to select the downloaded ISO file in section 5 - click 6 Prepare Drive.

Click on the Choose Folder/File button and say 'Yes' to extract files from the ISO - then select the ISO file.

5. Now click on Install Syslinux and choose option 1 (you can say no to the -r Raid option if you like).
6. Now press F11 or click on the Run QEMU button to test the USB drive - it should boot to Slax (type startx to run the Desktop):


Slax 7.0

If you boot from the ISO then persistence will not work. Slax looks for \xxx\*.sb  (where xxx is the 'from' directory). That folder is then set as the 'base' folder and Slax will then look for a 'changes' folder under it which is writeable and NOT NTFS. 

To get persistence to work you need a FAT32 USB bootable drive.

Extract the ISO /slax folder to your US12B drive and rename the \slax folder to something unique - e.g. slax708_32  for the 32-bit version of 7.0.8

\slax708_32
\slax708_32\boot
\slax708_32\changes   (changes.dat will be made for persistence changes)
\slax708_32\modules
\slax708_32\rootcopy
\slax708_32\01-core.sb, 02-xorg.sb etc. etc.

Menu.lst example

# /slax708_32/changes/    folder must exist for persistence to work (not NTFS!)
title SLAX 7 persistent \n Run Slax with persistent changes (NO PERSISTENCE IF NTFS)
kernel /slax708_32/boot/vmlinuz vga=773 rw slax.flags=perch,xmode  from=/slax708_32
initrd /slax708_32/boot/initrfs.img


set vga=normal for a different graphics mode.