10/11/2013

How to boot slax7 from USB


Slax 7 is a very tiny, highly portable and Slackware based live Linux operating system.





# INDEX #
#1. Why use SLAX.
#2. how slax is highly portable.
#3. how to boot SLAX from USB.
#4. Introduction to Slax tree structure.
#5. Boot slax7 as a live CD media from ISO file.
-->> use map command of grub4dos
-->> use --mem option for fast booting as well as for fast working with map command.


#1. Why Use SLAX.
SLAX is highly potable, small Linux operating system with nice GUI. As SLAX 7.08 is only 220 MB, but this comes with a wide collection of pre-installed software for daily use.

#2. How SLAX is highly Portable.
Slax gives you the power of thousands of modules which you can download from the official website of SLAX, if you are going to use slax modules than you can install any software into live mode of slax also you do not need to configure and make it install.

You just need to copy and paste the module file into the module folder of SLAX LIve USB or EDIT the live ISO of slax using any ISO editor program and add as much modules as you wish into your live SALX CD Media.

#3. How to boot SLAX from USB.
Booting slax from a USB is good choice because it gives you more power if you are running it from a CD Media.
There are many software available on internet so that you can make a live boot-able USB for slax or any other Linux OS.
but I am going to revise the default way which comes with the live ISO of slax, means in case of slax you do not need to download any of software to make a live USB for SLAX.

~1. Extract the content of SLAX Live ISO to root of your USB Media.
~2. change the working directory to-
/slax/boot

#4. Introduction to Slax Root directory tree structure.
~ take a look of tree structure of SLAX LIVE CD.


\---slax            
    |   01-core.sb       # file  required for proper functioning of slax operating system #
    |   02-xorg.sb
    |   03-kdeps.sb
    |   04-kde.sb
    |   05-kapps.sb
    |   06-devel.sb
    |   07-ffox.sb
    |
    +---boot
    |       CHANGELOG
    |       bootinst.bat  # run this file into windows with admin rights, to make That USB boot-able from you run this script.
    |       bootinst.sh    # run this file into Linux with root user permission, to make That USB boot-able from you run this script.
    |       bootlogo.png     # Default logo of SLAX which will you see when we run SLAX.
    |       extlinux.exe      # this is useful if you plan to boot slax from EXT/2/3/4 file-system, slax works very fast if you use one of these Linux live file-system.
    |       help.txt
    |       initrfs.img       # Initial RAM Disk for SLAX.
    |       isolinux.bin
    |       isolinux.boot
    |       makeiso.sh       # Linux executable to make a ISO file-system from files or directory.
    |       mbr.bin
    |       memtest         # kernel executable for RAM testing.
    |       pxelinux.0      # for PXE booting ( Run slax from INTERNET/LAN ) .
    |       runadmin.vbs
    |       samedisk.vbs
    |       syslinux.cfg     # SLAX boot configuration file.
    |       syslinux.com
    |       syslinux.exe      # syslinux boot-loader installer executable. works fine with FAT/NTFS/...
    |       vesamenu.c32      # syslinux kernel image.
    |       vmlinuz         # SLAX kernel file.
    |       zblack.png
    |
    +---changes        # you can monitor all changes made to slax live system in this directory.
+                   if you run slax from a non-Linux file-system than there will be a file, named "changes.dat"
+ or if you are a Linux user than all changes will be into this directory, no loop device.
    +---modules        # place your all modules in this directory so that they will automatically installed into slax live mode.
    \---rootcopy

#5. Boot slax7 as a live CD media from ISO file.
-->> use map command of grub4dos



~ Add this Grub4DOS configuration script into the menu.lst file.

title Run SLAX as Live CD
find --set-root /identity--slax.txt
map /slax/slax7.iso (hd32)
map --hook
root (hd32)
kernel ()/slax/boot/vmlinuz prompt_ramdisk=0 rw printk.time=0 from=/slax/slax7.iso slax.flags=xmode
initrd ()/slax/boot/initrfs.img

# Here I am using a file named "identity--slax.txt" which is a blank text file and help us to find the perticular partition of USB where SLAX files resides.
# One more thing that i want to tell you is that here I am not running slax from the root of USB, here I am running Slax from a given folder named "slax" so you have to tell this to SLAX kernel so that it forget about the default SLAX boot-parameters and works with the new one that are defined by you.

# "changes=/slax/slax"



#kernel ()/slax/boot/vmlinuz prompt_ramdisk=0 rw printk.time=0 vga=773 from=/slax/slax7.iso slax.flags=xmode,perch

# Perch , enable the feature of live filesystem monitoring so that any changes made to SLAX Live file-system will be saved in the "/slax/changes" folder, if you run slax from USB.


-->> use --mem option for fast booting as well as for fast working with map command.

title Run SLAX as Live CD (RAM MODE)
find --set-root /identity--slax.txt
map --mem /slax/slax7.iso (hd32)
map --hook
root (hd32)
kernel ()/slax/boot/vmlinuz prompt_ramdisk=0 rw printk.time=0 vga=773 from=/slax/slax7.iso slax.flags=xmode changes=/slax/slax
initrd ()/slax/boot/initrfs.img



That's all about, Slax booting from USB (Basics).....

No comments :