SliTaz GNU/Linux official and community documentation wiki.
.png

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:handbook:liveusb [2013/03/06 08:38]
totoetsasoeur
en:handbook:liveusb [2014/11/16 10:35]
brianperry removed double link
Line 8: Line 8:
 To generate your own LiveUSB media, first you need to login as //root// with //su// and locate your usb storage device using the command: To generate your own LiveUSB media, first you need to login as //root// with //su// and locate your usb storage device using the command:
  
-<​code>#​ fdisk -l     # normally ​/dev/sdb1 </​code>​+<​code>#​ fdisk -l /dev/sdxx </​code>​
  
 Then format and label your device (Warning: this will erase all data, make sure you specify the right device): Then format and label your device (Warning: this will erase all data, make sure you specify the right device):
  
-<​code>​ # tazusb format /dev/sdb1 </​code> ​+<​code>​ # tazusb format /dev/sdxx </​code> ​
  
-And finally generate your LiveUSB media device:+And finally generate your LiveUSB media device ​with either:
  
-<​code>​ # tazusb gen-liveusb /dev/sdb1 </​code>​+<​code>​ # tazusb gen-liveusb /dev/sdxx </​code>​ 
 +(if you're working with a LiveCD as the install source) ​
  
-And that's all you need to do, you can now boot SliTaz from usb media (providing your computer bios supports this method).+OR
  
-=== Maintaining system settings ===+<​code>​ # tazusb gen-iso2usb slitaz.iso /dev/sdxx </​code>​ 
 +(if you're working with an iso file as the install source)
  
-When you finish your LiveUSB sessionmake sure you maintain your installed packagessystem settingsetcby backing up the entire current filesystem ​with one the following commands:+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 diskmention 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"​
  
-    * fast compression,​ average filesize: <​code>​ # tazusb writefs gzip </​code>​ +And that's all you need to do, you can now boot SliTaz ​from usb media (providing your computer bios supports this method).
-    * slow compression,​ smaller filesize: <​code>​ # tazusb writefs lzma </​code>​ +
-    * no compression,​ larger filesize: <​code>​ # tazusb writefs none </​code>​ +
- +
-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 === === Tazusb Manual ===
Line 37: Line 33:
  
 ===== Install SliTaz on USB from Windows ===== ===== 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. 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: Before starting you need to download:
-- latest ​Slitaz ​from [[http://​www.slitaz.org/​get/​|Get SliTaz]]. +  ​the latest ​SliTaz iso from [[http://​www.slitaz.org/en/get/#stable|Get SliTaz]]. 
-- the syslinux tool from [[http://www.eu.kernel.org/​pub/​linux/​boot/​syslinux/​3.xx/​syslinux-3.82.zip|syslinux-3.82.zip]].+  - the syslinux tool for the SliTaz version you install: 
 +  * [[https://www.kernel.org/​pub/​linux/​utils/​boot/​syslinux/​4.xx/​syslinux-4.05.zip|syslinux-4.05.zip]] for SliTaz 4.0 
 +  * [[https://​www.kernel.org/​pub/​linux/utils/​boot/​syslinux/​3.xx/​syslinux-3.82.zip|syslinux-3.82.zip]] ​for SliTaz 3.0 
 +  * [[https://​www.kernel.org/​pub/​linux/​utils/​boot/​syslinux/​3.xx/​syslinux-3.73.zip|syslinux-3.73.zip]] for SliTaz 2.0 
 +  * [[https://​www.kernel.org/​pub/​linux/​utils/​boot/​syslinux/​3.xx/​syslinux-3.61.zip|syslinux-3.61.zip]] for SliTaz 1.0
  
-**1.** ​Extraire l'​image sur la clé USB. L'​image ISO peut être extraite avec des outils comme [[http://​www.7-zip.org/​|7-Zip]] ​ou Winimage (shareware) ​par exempleNormalement vous devriez obtenir l'​arborescence suivante ​+**1.** ​Extract the SliTaz ISO file to the USB stickFor this, use a tool like [[http://​www.7-zip.org/​|7-Zip]] ​or Winimage (shareware). ​Once extracted, you should get the following
 <​code>​ <​code>​
 \boot \boot
 \boot\isolinux \boot\isolinux
 \boot\grub \boot\grub
-\boot\syslinux 
 </​code>​ </​code>​
-**2.** Sur la clé USB, copier les fichiers du gestionnaire de démarrage dans le répertoire //​\boot\syslinux//​ :  
-<​code>​ 
-\boot\isolinux\*.txt ​ 
-\boot\isolinux\*.msg 
-\boot\isolinux\*.cfg 
-\boot\isolinux\*.lss 
-</​code>​ 
-**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é.+<​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. 
 +</note>
  
-**5.** ​Modifiez le fichier ​//​syslinux.cfg// ​pour qu'il corresponde à vos besoinsExemple ​+**2.** On your USB stick, rename the //​\boot\isolinux//​ directory to //​\boot\syslinux//​. 
 + 
 +**3.** In the new directory //​\boot\syslinux//,​ rename //​isolinux.cfg//​ file to //​syslinux.cfg//​ and //​isolinux.msg//​ file to //​syslinux.msg//​. This is not mandatory but makes more sense. 
 + 
 +**4.** Now extract the syslinux archive previously downloaded and copy the //​syslinux.exe//​ file from its //win32// directory into the //​\boot\syslinux//​ directory of the USB stick. 
 + 
 +**5.** ​Modify the //\boot\syslinux\syslinux.cfg//​: replace all //​isolinux.*//​ appellations with //​syslinux.*//​. 
 + 
 +===example for SliTaz 4.0:=== 
 +<​file>​... 
 +kernel /​boot/​isolinux/​ifmem.c32 
 +... 
 +</​file>​ 
 +to 
 +<​file>​... 
 +kernel /​boot/​syslinux/​ifmem.c32 
 +... 
 +</​file>​ 
 + 
 +===example for SliTaz 3.0 and previous versions:===
 <​file>​ <​file>​
 display syslinux.msg display syslinux.msg
-default slitaz 
 label slitaz label slitaz
  kernel /​boot/​bzImage  kernel /​boot/​bzImage
- append initrd=/​boot/​rootfs.gz rw root=/​dev/​null lang=fr kmap=fr vga=normal + append initrd=/​boot/​rootfs.gz rw root=/​dev/​null lang=kmap=uk vga=normal ​autologin 
-implicit 0  + 
-prompt 1  +include common.cfg
-timeout 80 +
-F1 help.txt +
-F2 options.txt +
-F3 isolinux.msg +
-F4 display.txt+
 </​file>​ </​file>​
-**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//​. ​+**Note : ** In the example above, compared to the original file, the line //display isolinux.msg// ​has been replaced by //display syslinux.cfg// ​and the parameters ​//lang=kmap=uk// have been added to the line //​append// ​so that, lang and keyboard are automatically selected at boot.
  
-**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 : +In file //​\boot\syslinux\common.cfg//,​ modify  
 +<​file>​... 
 +F3 isolinux.msg 
 +...</​file>​ 
 +to 
 +<​file>​... 
 +F3 syslinux.msg 
 +...</​file>​ 
 + 
 +**6.** ​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:
 <​code>​ <​code>​
-K:+k:
 cd \boot\syslinux cd \boot\syslinux
-syslinux -ma -d \boot\syslinux ​K:+syslinux -ma -d \boot\syslinux ​k:
 </​code>​ </​code>​
  
-==== Version rapide ​==== +**7.** You can now restart your computer. Change option in BIOS to boot first from USB. 
-  - Téléchargez l'​archive ​[[http://files.openomy.com/public/​Erjo/​syslinux.zip|syslinux.zip]]+ 
-  - Extrayez le répertoire syslinux et copiez-le dans le répertoire boot de la clé USB. +==== See also ==== 
-  - Exécutez le script //​\boot\syslinux\bootusb.bat//​.+[[http://doc.slitaz.org/en:​guides:​liveusb]]
 
en/handbook/liveusb.txt · Last modified: 2014/11/16 10:35 by brianperry