LiveUSB media¶
author: | jozee, linea, totoetsasoeur, ceel, mojo, brianperry |
---|
Tazusb — Live USB Tool¶
Tazusb is a tool that can create bootable USB media with a few simple commands. It can also compress and backup the entire current filesystem to the media, thus preserving all modifications for future use. Type tazusb usage for a full list of commands or read the TazUSB manual.
Generate your own LiveUSB media
To generate your own LiveUSB media, first you need to login as root with su and locate your USB storage device using the command:
# fdisk -l /dev/sdxx
Then format and label your device (Warning: this will erase all data, make sure you specify the right device):
# tazusb format /dev/sdxx
And finally generate your LiveUSB media device with either:
# tazusb gen-liveusb /dev/sdxx
(if you’re working with a LiveCD as the install source)
or
# tazusb gen-iso2usb slitaz.iso /dev/sdxx
(if you’re working with an ISO file as the install source)
Note that the /dev/sdxx
part of the command above specifies the location to where you need to write the ISO’s files to; it is not the source media where the ISO is on!
With the ISO file as install source option, you should hence specify the exact location where the slitaz ISO source file is located.
If it is located at /home/tux
(while running SliTaz from a non-live version), write
# tazusb gen-iso2usb /home/tux/slitaz.iso /dev/sdxx
If the source file is found on an external hard disk, mention the folder in which the media’s files are outputted to — check this with PCManFM (in practice the folder can be something like /media/disk
).
So, the command you’d need to write with the latter would be something like
# tazusb gen-iso2usb /media/disk/slitaz.iso /dev/sdxx
And that’s all you need to do, you can now boot SliTaz from USB media (providing your computer BIOS supports this method).
Tazusb Manual
The official Tazusb manual can be found in the SliTaz Web site documentation; this contains a lot more useful information. The manual is also available through the documentation menu on the LiveCD.
Install SliTaz on USB from Windows¶
SliTaz can be installed on USB media from windows. The following description has been tested on Windows XP and Vista. Before starting you need to download:
- the latest SliTaz iso from Get SliTaz.
- the syslinux tool for the SliTaz version you install:
- syslinux-4.05.zip for SliTaz 4.0
- syslinux-3.82.zip for SliTaz 3.0
- syslinux-3.73.zip for SliTaz 2.0
- syslinux-3.61.zip for SliTaz 1.0
Extract the SliTaz ISO file to the USB stick. For this, use a tool like 7-Zip or Winimage (shareware). Once extracted, you should get the following:
\boot \boot\isolinux \boot\grub
Note
Depending on the version of SliTaz you install, you can find on root other directories and files but they are not used by the LiveUSB.
On your USB stick, rename the
\boot\isolinux
directory to\boot\syslinux
.In the new directory
\boot\syslinux
, renameisolinux.cfg
file tosyslinux.cfg
andisolinux.msg
file tosyslinux.msg
. This is not mandatory but makes more sense.Now extract the syslinux archive previously downloaded and copy the
syslinux.exe
file from itswin32
directory into the\boot\syslinux
directory of the USB stick.Modify the
\boot\syslinux\syslinux.cfg
: replace allisolinux.*
appellations withsyslinux.*
.
example for SliTaz 4.0:
... kernel /boot/isolinux/ifmem.c32 ...to
... kernel /boot/syslinux/ifmem.c32 ...example for SliTaz 3.0 and previous versions:
display syslinux.msg label slitaz kernel /boot/bzImage append initrd=/boot/rootfs.gz rw root=/dev/null lang=C kmap=uk vga=normal autologin include common.cfgNote
In the example above, compared to the original file, the line
display isolinux.msg
has been replaced bydisplay syslinux.cfg
and the parameterslang=C kmap=uk
have been added to the lineappend
so that, lang and keyboard are automatically selected at boot.In file
\boot\syslinux\common.cfg
, modify... F3 isolinux.msg ...to
... F3 syslinux.msg ...
- Now, from the terminal in Windows, run syslinux.exe to install the bootloader. For example, here the USB stick is shown as letter K, type:
k: cd \boot\syslinux syslinux -ma -d \boot\syslinux k:
- You can now restart your computer. Change option in BIOS to boot first from USB.