website view en/doc/manuals/tazusb.en.html @ rev 542

tazusb*: add hooks
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 17 11:34:52 2009 +0200 (2009-09-17)
parents 0a622b3cbe2e
children
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>TazUSB - SliTaz Live utility English manual</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz bootable media LiveUSB key hd SD card" />
8 <meta name="expires" content="never" />
9 <meta name="modified" content="2008-07-18 20:00:00" />
10 <style type="text/css"><!--
11 body { font: 90% sans-serif, vernada, arial; margin: 0; }
12 #header { background: #f0ba08; color: black; height: 50px;
13 border-top: 1px solid black; border-bottom: 1px solid black; }
14 #content { margin: 0px 50px 26px 50px; }
15 h1 { margin: 14px 0px 0px 16px; }
16 li { line-height: 1.4em; }
17 pre { padding: 5px; color: black; background: #e1e0b0; }
18 pre.script { padding: 10px; color: black; background: #e8e8e8;
19 border: 1px inset #333333; }
20 code { font-size: 100%; color: #669900; background: transparent; }
21 hr { color: white; background: white; height: 1px; border: 0; }
22 --></style>
23 </head>
24 <body bgcolor="#ffffff">
25 <div id="header">
26 <h1><font color="#3e1220">TazUSB Manual</font></h1>
27 </div>
28 <hr />
29 <!-- Start content -->
30 <div id="content">
32 <h2>NAME</h2>
33 <p>
34 TazUSB - SliTaz LiveUSB utility
35 </p>
37 <h2>SYNTAX</h2>
38 <pre>
39 tazusb [command] [compression|device|file]
40 </pre>
42 <h2>DESCRIPTION</h2>
43 <p>
44 TazUSB is a utility designed for installing SliTaz to a USB drive. Unlike a hard drive install, the filesystem is kept in a compressed "rootfs.gz" file. The filesystem is loaded entirely into memory upon boot. This should increase responsiveness, protect the filesystem against accidental corruption and reduce read/writes to the USB drive. Once setup, this utility can also rewrite the root filesystem with any changes you have made since booting up, giving the effective benefits of a hard drive install.
45 </p>
46 <p>
47 TazUSB supports both FAT32/EXT3 formatted drives using SYSLINUX and EXTLINUX respectively. "/home" is mounted on boot using the UUID of your particular flash drive. Unlike a device name, the UUID has the benefit of never changing from machine to machine.
48 </p>
50 <h2>COMMANDS</h2>
51 <a name="usage"></a>
52 <h3><font color="#6c0023">usage</font></h3>
53 <p>
54 The command 'usage' will display a short summary of all available commands.
55 </p>
56 <pre>
57 # tazusb usage
58 </pre>
60 <a name="writefs"></a>
61 <h3><font color="#6c0023">writefs</font></h3>
62 <p>
63 The command 'writefs' will take the current memory resident filesystem and create a "rootfs.gz" file. If your flash drive is mounted as /home (as it should be), the new filesystem will be copied to the drive for you, otherwise it is left on the root of the drive. Your previous filesystem will be renamed to "previous.gz" and can be accessed on bootup by typing "previous" at the "boot:" prompt. All previous filesystems are renamed to rootfs.gz.unixtimestamp. These are not removed automatically, so you should periodically delete these to keep disk usage down.
64 </p>
65 <p>
66 Filesystem compression is supported in the form of lzma, gzip or none. Using no compression is very quick (under 5 seconds) and useful if you are experimenting with a lot of changes. By comparison, using lzma or gzip takes a few minutes but will dramatically reduce file size. This is recommended when committing permanent changes to the filesystem.
67 </p>
68 <pre>
69 # tazusb writefs compression
70 </pre>
71 Example:
72 <pre>
73 # tazusb writefs lzma
74 </pre>
76 <a name="format"></a>
77 <h3><font color="#6c0023">format</font></h3>
78 <p>
79 The command 'format' is used for formatting a device for use as a LiveUSB device. Currently, it only supports formatting as EXT3.
80 </p>
81 <pre>
82 # tazusb format /dev/name
83 </pre>
84 Example:
85 <pre>
86 # tazusb format /dev/sda1
87 </pre>
89 <a name="gen-liveusb"></a>
90 <h3><font color="#6c0023">gen-liveusb</font></h3>
91 <p>
92 "gen-liveusb" will install a fresh MBR, set your partition as bootable and install syslinux/extlinux depending on the detected filesystem. It will then copy the kernel and filesystem from the CDROM drive, and place this on the target USB drive. This will leave you with a bootable USB copy of SliTaz.
93 </p>
94 <pre>
95 # tazusb gen-liveusb /dev/name
96 </pre>
97 Example:
98 <pre>
99 # tazusb gen-liveusb /dev/sda1
100 </pre>
102 <a name="gen-swap"></a>
103 <h3><font color="#6c0023">gen-swap</font></h3>
104 <p>
105 The 'gen-swap' command re/creates a virtual swap file and places
106 it in the /home directory to be activated on each boot. This is useful
107 for old systems with low memory.
108 </p>
109 <pre> # tazusb gen-swap
110 </pre>
112 <a name="gen-iso2usb"></a>
113 <h3><font color="#6c0023">gen-iso2usb</font></h3>
114 <p>
115 This command performs the same task as gen-liveusb, only copying the Kernel
116 and filesystem from a downloaded ISO image instead of the CDROM drive.
117 </p>
118 <pre> # tazusb gen-iso2usb /path/to/iso
119 </pre>
120 Example:
121 <pre> # tazusb gen-iso2usb /home/tux/slitaz.iso
122 </pre>
124 <a name="clean"></a>
125 <h3><font color="#6c0023">clean</font></h3>
126 <p>
127 "clean" removes old rootfs.gz.unixtimestamp filesystems (see writefs)
128 to keep disk usage down.
129 </p>
130 <pre> # tazusb clean
131 </pre>
133 <h2>MAINTAINER</h2>
134 <p>
135 Eric Joseph-Alexandre &lt;erjo at slitaz.org&gt;
136 </p>
138 <!-- End content -->
139 </div>
140 </body>
141 </html>