SliTaz GNU/Linux official and community documentation wiki.
.png
Translations of this page:

This is an old revision of the document!


LiveUSB media

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     # normally /dev/sdb1 

Then format and label your device (Warning: this will erase all data, make sure you specify the right device):

 # tazusb format /dev/sdb1 

And finally generate your LiveUSB media device:

 # tazusb gen-liveusb /dev/sdb1 

And that's all you need to do, you can now boot SliTaz from usb media (providing your computer bios supports this method).

Maintaining system settings

When you finish your LiveUSB session, make sure you maintain your installed packages, system settings, etc, by backing up the entire current filesystem with one the following commands:

  • fast compression, average filesize:
     # tazusb writefs gzip 
  • slow compression, smaller filesize:
     # tazusb writefs lzma 
  • no compression, larger filesize:
     # tazusb writefs none 

Each of these writes everything to a 'rootfs.gz' archive to be loaded the next time you boot.

If anything should go wrong when writing your filesystem, you can simply rollback to your previous filesystem by typing 'previous' at the 'boot:' prompt. Older backups are named 'rootfs.gz.unixtimestamp' and can be safely deleted from the /home folder to save disk space using tazusb clean.

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: - latest Slitaz from Get SliTaz. - the syslinux tool from syslinux-3.82.zip.

1. Extraire l'image sur la clé USB. L'image ISO peut être extraite avec des outils comme 7-Zip ou Winimage (shareware) par exemple. Normalement vous devriez obtenir l'arborescence suivante :

\boot
\boot\isolinux
\boot\grub
\boot\syslinux

2. Sur la clé USB, copier les fichiers du gestionnaire de démarrage dans le répertoire \boot\syslinux :

\boot\isolinux\*.txt 
\boot\isolinux\*.msg
\boot\isolinux\*.cfg
\boot\isolinux\*.lss

3. Toujours dans le répertoire \boot\syslinux, renommer isolinux.cfg en syslinux.cfg et isolinux.msg en syslinux.msg. Ce n'est pas indispensable pour isolinux.msg, mais c'est plus cohérent.

4. Extraire le fichier syslinux.exe de l'archive téléchargée sur kernel.org et le copier dans \boot\syslinux sur la clé.

5. Modifiez le fichier syslinux.cfg pour qu'il corresponde à vos besoins. Exemple :

display syslinux.msg
default slitaz
label slitaz
	kernel /boot/bzImage
	append initrd=/boot/rootfs.gz rw root=/dev/null lang=fr kmap=fr vga=normal
implicit 0	
prompt 1	
timeout 80
F1 help.txt
F2 options.txt
F3 isolinux.msg
F4 display.txt

Note : Par rapport au fichier d'origine la ligne display isolinux.msg a été remplacée par display syslinux.cfg. Et les paramètres lang=fr kmap=fr ont été rajoutés sur la ligne append.

6. Il ne reste plus qu'à exécuter syslinux.exe pour installer le bootloader. Exemple dans le cas où la clé est désignée par la lettre K :

K:
cd \boot\syslinux
syslinux -ma -d \boot\syslinux K:

Version rapide

  1. Téléchargez l'archive syslinux.zip.
  2. Extrayez le répertoire syslinux et copiez-le dans le répertoire boot de la clé USB.
  3. Exécutez le script \boot\syslinux\bootusb.bat.
 
en/handbook/liveusb.1362555505.txt.gz · Last modified: 2013/03/06 08:38 by totoetsasoeur