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:installation [2010/07/08 17:14]
127.0.0.1 external edit
en:handbook:installation [2015/04/16 16:22]
bellard multi rootfs
Line 3: Line 3:
 ===== Introduction ===== ===== Introduction =====
  
-This document gives information and necessary instructions on how to install SliTaz on a hard disk. This should take about 10 minutes, SliTaz core LiveCD expands to 80 Mb, so we suggest a minimum of 120 Mb of free space. This way you will be able to install a few more packages. If you can use the LiveCD, you should be able to install SliTaz.+This document gives information and necessary instructions on how to install SliTaz on a hard disk. This should take about 10 minutes, SliTaz core LiveCD expands to 80 MB, so we suggest a minimum of 120 MB of free space. This way you will be able to install a few more packages. If you can use the LiveCD, you should be able to install SliTaz
 +You may also do a [[http://​doc.slitaz.org/​en:​guides:​frugal|frugal]] or [[http://​doc.slitaz.org/​en:​guides:​uncommoninst|unusual]] install.
  
 ===== SliTaz Installer ===== ===== SliTaz Installer =====
  
-SliTaz provides a simple to use Installer which can be launched from the "​System Tools" ​menu. SliTaz ​3.0 Installer messages are in English and can be used with these complimentary instructions.+SliTaz provides a simple to use Installer which can be launched from the menu on Tazpanel. SliTaz Installer messages are in English and can be used with these complimentary instructions.
  
 === Install Type === === Install Type ===
Line 16: Line 17:
  
 <​code>​ # mount -o loop slitaz-3.0.iso /​media/​cdrom </​code>​ <​code>​ # mount -o loop slitaz-3.0.iso /​media/​cdrom </​code>​
 +
 +=== Source media ===
 +
 +Here you can choose the type of media to install SliTaz from. Either from a LiveCD, LiveUSB, a downloaded ISO file or directly from the web. 
  
 === Target Partition === === Target Partition ===
  
-The second step is the partition configuration. You will need to have a partition ready; the installer does not set-up your disk for you. If you already have a free partition you can use it; if not you will have to create one graphically using GParted, or from the command line using fdisk.+Next is the partition configuration. You will need to have a partition ready; the installer does not set-up your disk for you. If you already have a free partition you can use it; if not you will have to create one graphically using GParted, or from the command line using fdisk.
  
 For example, if you want to install SliTaz on the second partition of the first disk recognized as hda: For example, if you want to install SliTaz on the second partition of the first disk recognized as hda:
  
-<code> /dev/hda2 </code>+<file> /dev/hda2 </file>
  
 === Formatting === === Formatting ===
Line 29: Line 34:
 <note warning> Formatting a partition **permanently** removes all data from it. Be sure you choose your intended partition carefully as //this action is irreversible//​.</​note>​ <note warning> Formatting a partition **permanently** removes all data from it. Be sure you choose your intended partition carefully as //this action is irreversible//​.</​note>​
  
-The next step lets you format the target partition ​into ext3. Ext3 is a robust, stable and journalled file-system. If the partition is already formatted you can skip this step, if not just accept.+The next step lets you format the target partition. Ext3 is a robust, stable and journalled file-system. If the partition is already formatted you can skip this step, if not just accept
 + 
 +=== Home partition === 
 + 
 +A separate home partition can be created and also formatted
  
 === Hostname === === Hostname ===
  
 Hostname configuration lets you set the machine name. The hostname is used internally and to identify the computer on a network. This can be changed after the system is installed. It cannot be longer than 64 characters and can only contain letters, numbers, and dashes. Hostname configuration lets you set the machine name. The hostname is used internally and to identify the computer on a network. This can be changed after the system is installed. It cannot be longer than 64 characters and can only contain letters, numbers, and dashes.
 +
 +=== Root ===
 +
 +The root password can be configured here. 
 +
 +=== User ===
 +
 +This allows you to configure a user name and password. ​
  
 === Boot-Loader (GRUB) === === Boot-Loader (GRUB) ===
  
-When the installation process is finished ​you have the option to install the GRUB boot-loader. GRUB is capable of booting almost any kind of operating system and can be configured through a human-readable text file; changes to this file are instant and do not require ​an additional commands to take effect.+With the next step you have the option to install the GRUB boot-loader ​and enable a Windows dual-boot. GRUB is capable of booting almost any kind of operating system and can be configured through a human-readable text file; changes to this file are instant and do not require ​any additional commands to take effect. ​
  
 If you want to use an existing GRUB installation,​ skip this step and add the correct lines to your GRUB configuration file (menu.lst); [[installation#​grub-boot-loader | see below]] for more information. Note that the SliTaz Installer creates a configuration file on the target which can be used as an example (///​mnt/​target/​boot/​grub/​menu.lst//​). If you want to use an existing GRUB installation,​ skip this step and add the correct lines to your GRUB configuration file (menu.lst); [[installation#​grub-boot-loader | see below]] for more information. Note that the SliTaz Installer creates a configuration file on the target which can be used as an example (///​mnt/​target/​boot/​grub/​menu.lst//​).
Line 43: Line 60:
 === Finishing the Installation === === Finishing the Installation ===
  
-When the Installer has finally done its job you have the option to exit or directly reboot your new SliTaz GNU/Linux operating system. First boot is like the LiveCD, you will be prompted for locale, keyboard, sound card and screen selection. Future reboots will not prompt you anymore for configuration details, but all the values can be changed either manually or with the project tools such as //​tazlocale//​ or //tazx//.+When the Installer has finally done its job you have the option to exit or directly reboot your new SliTaz GNU/Linux operating system. First boot is like the LiveCD, you will be prompted for options. Future reboots will not prompt you anymore for configuration details, but all the values can be changed either manually or with the project tools such as //​tazlocale//​ or //tazx//.
  
 ===== Manual ('By Hand') Installation ===== ===== Manual ('By Hand') Installation =====
Line 80: Line 97:
  
 <​code>​ # cp /​media/​cdrom/​boot/​rootfs.gz /mnt/target </​code>​ <​code>​ # cp /​media/​cdrom/​boot/​rootfs.gz /mnt/target </​code>​
 +<​note>​
 +Since SliTaz 4.0, multiple rootfs should be copied.
 +<​code>​ # cp /​media/​cdrom/​boot/​rootfs* /mnt/target </​code>​
 +You can also copy rootfs4.gz only to get minimum the text mode installation
 +</​note>​
  
 Now the necessary files are present, change (//cd//) to the target directory and decompress the file-system. This is done with the //lzma// and //cpio// utilities: Now the necessary files are present, change (//cd//) to the target directory and decompress the file-system. This is done with the //lzma// and //cpio// utilities:
Line 85: Line 107:
 <​code>​ <​code>​
  # cd /mnt/target  # cd /mnt/target
- # ​lzma d rootfs.gz ​-so | cpio -id + # ​unlzma < rootfs.gz | cpio -id 
  # rm rootfs.gz init  # rm rootfs.gz init
 </​code>​ </​code>​
 +<​note>​
 +For SliTaz 4.0 and newer:
 +<​code>​
 + # cd /mnt/target
 + # unlzma < rootfs4.gz | cpio -id 
 + # unlzma < rootfs3.gz | cpio -id 
 + # unlzma < rootfs2.gz | cpio -id 
 + # unlzma < rootfs1.gz | cpio -id 
 + # rm rootfs* init
 +</​code>​
 +</​note>​
  
 That's it; SliTaz is installed! Before rebooting to start your new SliTaz GNU/Linux installation,​ please check that you have a boot-loader (GRUB or Lilo) installed and add the necessary lines (see below) to boot SliTaz. That's it; SliTaz is installed! Before rebooting to start your new SliTaz GNU/Linux installation,​ please check that you have a boot-loader (GRUB or Lilo) installed and add the necessary lines (see below) to boot SliTaz.
Line 105: Line 138:
 <​code>​ # leafpad /​mnt/​target/​boot/​grub/​menu.lst </​code>​ <​code>​ # leafpad /​mnt/​target/​boot/​grub/​menu.lst </​code>​
  
-=== Example /​boot/​grub/​menu.lst ===+=== Example /​boot/​grub/​menu.lst ===
  
-<code>+<file>
 title  SliTaz GNU/Linux 3.0 (Kernel 2.6.34-slitaz) title  SliTaz GNU/Linux 3.0 (Kernel 2.6.34-slitaz)
        ​root(hd0,​0)        ​root(hd0,​0)
        ​kernel /​boot/​vmlinuz-2.6.34-slitaz root=/​dev/​hda1 vga=normal        ​kernel /​boot/​vmlinuz-2.6.34-slitaz root=/​dev/​hda1 vga=normal
-</code>+</file>
  
-Verify ​(twice!) ​that everything is in place before rebooting with the //reboot// command:+Verify ​again that everything is in place before rebooting with the //reboot// command:
  
 <​code>​ <​code>​
Line 125: Line 158:
 A common query asked on the [[http://​forum.slitaz.org/​|Community Forum]] is how to dual-boot SliTaz and Windows. This is a straight-forward task that just needs the following lines appended to the ///​boot/​grub/​menu.lst//​ file: A common query asked on the [[http://​forum.slitaz.org/​|Community Forum]] is how to dual-boot SliTaz and Windows. This is a straight-forward task that just needs the following lines appended to the ///​boot/​grub/​menu.lst//​ file:
  
-<code>+<file>
 title   ​Microsoft Windows title   ​Microsoft Windows
         rootnoverify (hd0,0)         rootnoverify (hd0,0)
         chainloader +1         chainloader +1
-</code>+</file>
  
 In this example, the Windows installation resides on the first hard disk (hd0) and the first partition (the second 0) within it. This may need modification to reflect individual cases. If it were the other way around and SliTaz proceeded Windows for instance, the line would read: In this example, the Windows installation resides on the first hard disk (hd0) and the first partition (the second 0) within it. This may need modification to reflect individual cases. If it were the other way around and SliTaz proceeded Windows for instance, the line would read:
  
-<code>​rootnoverify (hd0,​1)</​code>+<file>​rootnoverify (hd0,​1)</​file>
  
 Most operating systems will either contain a boot-loader of their own (in the case of Windows and *BSD) or can be booted directly with GRUB. Most operating systems will either contain a boot-loader of their own (in the case of Windows and *BSD) or can be booted directly with GRUB.
  
-===== Installing SliTaz on USB Device =====+===== Installing SliTaz on an USB Device =====
  
 If you want to install SliTaz on an USB device, you must give a little "​rootdelay"​ to allow time for the Linux kernel to detect it. If you want to install SliTaz on an USB device, you must give a little "​rootdelay"​ to allow time for the Linux kernel to detect it.
Line 143: Line 176:
 To include this option, edit your menu.lst to include the argument To include this option, edit your menu.lst to include the argument
 : :
-<code>+<file>
 title  SliTaz GNU/Linux 3.0 (Kernel 2.6.34-slitaz) title  SliTaz GNU/Linux 3.0 (Kernel 2.6.34-slitaz)
        ​root(hd0,​0)        ​root(hd0,​0)
        ​kernel /​boot/​vmlinuz-2.6.34-slitaz root=/​dev/​sda1 vga=normal rootdelay=10        ​kernel /​boot/​vmlinuz-2.6.34-slitaz root=/​dev/​sda1 vga=normal rootdelay=10
-</code>+</file> 
 + 
 +===== Sharing a partition =====
  
 +It is not always necessary to format a partition.
 +You can share a partition with another OS and install SliTaz into a
 +[[http://​doc.slitaz.org/​en:​guides:​uncommoninst#​loop-install|loop file]] or in a [[http://​doc.slitaz.org/​en:​guides:​uncommoninst#​subdirectory-install-in-a-posix-filesystem|subdirectory]].
 
en/handbook/installation.txt · Last modified: 2015/04/16 16:22 by bellard