Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| extlinux [Le 03/01/2014, 21:11] – [Cas où ma partition n'est pas bootable] albanmartel | extlinux [Le 19/08/2017, 18:33] (Version actuelle) – liens L'Africain | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | {{tag> | ||
| + | |||
| + | ====== Extlinux : Live-Usb sur une partition Ext2/ | ||
| + | |||
| + | **Extlinux transforme la clef Usb Ext2, Ext3, Ext4 en Usb-Live** | ||
| + | |||
| + | **Extlinux** est un paquet développé par H. Peter Anvin [[http:// | ||
| + | |||
| + | Il fait parti du projet [[http:// | ||
| + | |||
| + | < | ||
| + | | ||
| + | |||
| + | En mars 2013 il n'est plus capable de rendre une partition ext3 bootable ce qu'il parvenait à faire auparavant | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | Elle est déconseillée sur un __Disque dur interne__ : elle peut en corrompre le démarrage . </ | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | =====Installer extlinux===== | ||
| + | [[: | ||
| + | |||
| + | =====Préparation du DD Externe ou d'une Clef USB===== | ||
| + | Il est recommandé de partitionner son disque si ce n'est pas déjà fait. | ||
| + | |||
| + | Méthode graphique: [[gparted|gparted]] | ||
| + | |||
| + | Méthode en ligne de commande: | ||
| + | |||
| + | Tuto Ubuntu [[tutoriel: | ||
| + | |||
| + | |||
| + | |||
| + | =====Mettre le LiveCd sur USB Cible EXT ===== | ||
| + | [[tutoriel: | ||
| + | |||
| + | **Monter l'ISO obtenue dans le répertoire /tmp/cdrom :** | ||
| + | < | ||
| + | user@grUser-P5Q-E: | ||
| + | </ | ||
| + | |||
| + | **Monter la partition dans un répertoire :** | ||
| + | < | ||
| + | user@grUser-P5Q-E: | ||
| + | user@grUser-P5Q-E: | ||
| + | </ | ||
| + | |||
| + | **Copier le contenu du LiveCd dans la partition cible :** | ||
| + | < | ||
| + | user@grUser-P5Q-E: | ||
| + | </ | ||
| + | =====Installation du chargeur de démarrage===== | ||
| + | ==== Rendre la partition Disque bootable ==== | ||
| + | === copier MBR extlinux sur celui de la partition Ext === | ||
| + | < | ||
| + | ==== Installer extlinux sur le disque cible ==== | ||
| + | == Installer EXTLINUX dans le répertoire ou sera configurer le menu de boot == | ||
| + | < | ||
| + | user@grUser-P5Q-E: | ||
| + | user@grUser-P5Q-E: | ||
| + | </ | ||
| + | |||
| + | Si le répertoire ** / | ||
| + | |||
| + | |||
| + | =====Mettre un drapeau " | ||
| + | ====Vérification des drapeaux :==== | ||
| + | < | ||
| + | Dans la réponse, se sont les lignes suivantes qui nous intéressent : | ||
| + | < | ||
| + | Périphérique Amorce | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | **Si aucune * astérisque n’apparaît alors aucune des partitions ne contient de drapeau de boot .** | ||
| + | |||
| + | ====Ajouter un drapeau de boot ==== | ||
| + | === Fdisk === | ||
| + | < | ||
| + | **Entrer commande a ** | ||
| + | |||
| + | la machine demande le numéro de partition à marque comme bootable: | ||
| + | < | ||
| + | **Entrer commande w (pour finaliser) l' | ||
| + | |||
| + | |||
| + | === gparted (méthode graphique alternative)=== | ||
| + | |||
| + | ** Lancer ** [[:gparted |Gparted]] | ||
| + | |||
| + | Sélectionner la clef ou le DDExterne | ||
| + | Dans le menu se rendre à **Partitions** > **Gérer les drapeaux**. | ||
| + | |||
| + | **__Cocher la case en face de boot, comme l' | ||
| + | {{ : | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | =====Configurer le menu de démarrage extlinux.conf du Live-USB===== | ||
| + | ===Conditions de démarrage d' | ||
| + | | ||
| + | - Un menu de démarrage : // | ||
| + | - Un fichier // | ||
| + | ==Si ces conditions ne sont pas respectée votre Live-Usb ne démarrera pas ! == | ||
| + | |||
| + | |||
| + | |||
| + | ====Exemple Menu extlinux.conf d'une Live-USB personnalisée === | ||
| + | | ||
| + | < | ||
| + | prompt 0 | ||
| + | timeout 100 | ||
| + | |||
| + | menu title 2012maiUbuntu12.04 | ||
| + | menu background splash.png | ||
| + | menu color title 1;37;44 #c0ffffff #00000000 std | ||
| + | |||
| + | label persistent | ||
| + | menu label persistent - boot the Live System in Persistent Mode | ||
| + | kernel / | ||
| + | append | ||
| + | |||
| + | label live | ||
| + | menu label live - boot the Live System | ||
| + | kernel / | ||
| + | append | ||
| + | |||
| + | label xforcevesa | ||
| + | menu label xforcevesa - boot Live in safe graphics mode | ||
| + | kernel / | ||
| + | append | ||
| + | |||
| + | label install | ||
| + | menu label install - start the installer directly | ||
| + | kernel / | ||
| + | append | ||
| + | |||
| + | label memtest | ||
| + | menu label memtest - Run memtest | ||
| + | kernel / | ||
| + | append - | ||
| + | |||
| + | label hd | ||
| + | menu label hd - boot the first hard disk | ||
| + | localboot 0x80 | ||
| + | append - | ||
| + | </ | ||
| + | < | ||
| + | |||
| + | ====Exemple Menu extlinux.conf | ||
| + | < | ||
| + | label rescue64_bits direct Xorg | ||
| + | menu label rescue64_bits direct Xorg | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | label rescue32_bits direct Xorg | ||
| + | menu label rescue32_bits direct Xorg | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | label rescue64_bits Xorg RAM | ||
| + | menu label rescue64_bits Xorg RAM | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | label rescue32_bits Xorg RAM | ||
| + | menu label rescue32_bits Xorg RAM | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | label rescue64_bits direct altker Xorg | ||
| + | menu label rescue64_bits direct altker Xorg | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | label rescue32_bits direct altker Xorg | ||
| + | menu label rescue32_bits direct altker Xorg | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | label rescue64_bits console in high resolution | ||
| + | menu label SystemRescue-64bits console in high resolution | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | label rescue32_bits console in high resolution | ||
| + | menu label SystemRescue-32bits console in high resolution | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | MENU SEPARATOR | ||
| + | |||
| + | LABEL rescue64_6 | ||
| + | MENU LABEL Boot an exising Linux OS 64 bit installed on the disk | ||
| + | LINUX / | ||
| + | INITRD / | ||
| + | APPEND root=auto | ||
| + | TEXT HELP | ||
| + | Detect partition where linux is installed and boot from it. You can use | ||
| + | this to boot Linux if your boot loader (eg: Grub) is broken or has been | ||
| + | removed by another OS. | ||
| + | ENDTEXT | ||
| + | |||
| + | LABEL rescue32_6 | ||
| + | MENU LABEL Boot an exising Linux OS 32 bit installed on the disk | ||
| + | LINUX / | ||
| + | INITRD / | ||
| + | APPEND root=auto | ||
| + | TEXT HELP | ||
| + | Detect partition where linux is installed and boot from it. You can use | ||
| + | this to boot Linux if your boot loader (eg: Grub) is broken or has been | ||
| + | removed by another OS. | ||
| + | ENDTEXT | ||
| + | |||
| + | MENU SEPARATOR | ||
| + | |||
| + | LABEL Boot from first hard disk | ||
| + | MENU LABEL *) Boot from first hard disk | ||
| + | kernel | ||
| + | append hd0 | ||
| + | TEXT HELP | ||
| + | Boot local OS installed on first hard disk | ||
| + | ENDTEXT | ||
| + | |||
| + | LABEL Boot from second hard disk | ||
| + | MENU LABEL *) Boot from second hard disk | ||
| + | kernel | ||
| + | append hd1 | ||
| + | TEXT HELP | ||
| + | Boot local OS installed on second hard disk | ||
| + | ENDTEXT | ||
| + | |||
| + | MENU SEPARATOR | ||
| + | |||
| + | MENU TITLE A) Run system tools from floppy disk image... | ||
| + | |||
| + | LABEL memtest | ||
| + | MENU LABEL MEMTEST: Memory test using Memtest86+ | ||
| + | kernel / | ||
| + | append - | ||
| + | TEXT HELP | ||
| + | Use this tool if you suspect your RAM from being damaged. Damaged memory can | ||
| + | explain crashes or unexpected bahaviors on stable operating systems. | ||
| + | ENDTEXT | ||
| + | |||
| + | LABEL ntpass | ||
| + | MENU LABEL NTPASSWD: Reset or edit Windows passwords | ||
| + | kernel / | ||
| + | append rw vga=1 initrd=/ | ||
| + | TEXT HELP | ||
| + | This tool can be used to reset windows users accounts. It works with all | ||
| + | windows user accounts including the administrator. You can use this tool if | ||
| + | you forgot the administrator' | ||
| + | ENDTEXT | ||
| + | |||
| + | LABEL grubdisk | ||
| + | MENU LABEL SGD: Super Grub2 Disk | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | LABEL freedos | ||
| + | MENU LABEL FREEDOS: Clone of the MSDOS Operating System | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | TEXT HELP | ||
| + | FreeDOS can be used to execute DOS programs such as BIOS upgrade tools | ||
| + | ENDTEXT | ||
| + | |||
| + | LABEL netboot | ||
| + | MENU LABEL NETBOOT: Boot from the network | ||
| + | kernel / | ||
| + | append - | ||
| + | |||
| + | LABEL hdt | ||
| + | MENU LABEL HDT: recent hardware diagnostics tool | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | TEXT HELP | ||
| + | This diagnostic tool will give you information about your hardware | ||
| + | ENDTEXT | ||
| + | |||
| + | LABEL aida | ||
| + | MENU LABEL AIDA: old hardware diagnostics tool | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | LABEL gag | ||
| + | MENU LABEL GAG: Graphical Boot Manager | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | LABEL dban | ||
| + | MENU LABEL DBAN: erase all data from the disk | ||
| + | kernel / | ||
| + | append nuke=" | ||
| + | |||
| + | LABEL mhdd | ||
| + | MENU LABEL MHDD: Low-level Hard Drive diagnostic tool | ||
| + | kernel / | ||
| + | append initrd=/ | ||
| + | |||
| + | ====Exemple Menu extlinux.conf permettant de lancer d' | ||
| + | < | ||
| + | prompt 0 | ||
| + | timeout 100 | ||
| + | |||
| + | menu title usb_disk | ||
| + | menu color title 1;37;44 #c0ffffff #00000000 std | ||
| + | |||
| + | menu separator | ||
| + | include AlbUbuntu.cfg | ||
| + | |||
| + | menu separator | ||
| + | include kubuntu_net.cfg | ||
| + | |||
| + | menu separator | ||
| + | include ubuntu_install_net.cfg | ||
| + | |||
| + | menu separator | ||
| + | include ubuntu_serveur.cfg | ||
| + | |||
| + | menu separator | ||
| + | include ../ | ||
| + | |||
| + | label memtest | ||
| + | menu label memtest - Run memtest | ||
| + | kernel / | ||
| + | append - | ||
| + | |||
| + | label hd | ||
| + | menu label hd - boot the first hard disk | ||
| + | localboot 0x80 | ||
| + | append - | ||
| + | </ | ||
| + | |||
| + | ====Pour démarrer Windows, depuis le Live-USB==== | ||
| + | Editer le menu extlinux.conf et lui ajouter les lignes suivantes : | ||
| + | < | ||
| + | menu label windows -démarrer windows depuis le live-Usb | ||
| + | | ||
| + | | ||
| + | |||
| + | |||
| + | =====Personnaliser l' | ||
| + | // | ||
| + | Il est conseillé de commencer par une résolution 640x480. (Attention: JPG progressif n'est pas pris en charge par **extlinux**) | ||
| + | |||
| + | Une fois que vous avez votre image, copiez-la dans le répertoire du menu de démarrage (**/ | ||
| + | |||
| + | =====Démarrer le LIve-USB et tester===== | ||
| + | Il est nécessaire de savoir si son BIOS permet de démarrer des LIve-USB: | ||
| + | - (Si le BIOS de l'ordi ne le permet pas, il est possible de graver une ISO qui le permet depuis le CD/DVD rom [[: | ||
| + | - Sinon sélectionner le bon média de démarrage avec le BIOS au moment du boot de la machine. | ||
| + | |||
| + | =====Conclusion===== | ||
| + | Extlinux permet de créer un Live-USB. | ||
| + | |||
| + | <note important> | ||
| + | Comparaison Extlinux et Unetbootin :** | ||
| + | |||
| + | Comparer à Unetbootin, Extlinux "à la mano" est plus lent. Par contre les possibilités de personnalisations des menus sont plus étendues. | ||
| + | |||
| + | **Comparaison Extlinux et Multisystem :** | ||
| + | |||
| + | Multisystem reste un outil très efficace dont le seul inconvénient est d' | ||
| + | |||
| + | **Comparaison | ||
| + | |||
| + | Ils sont assez similaires, la différence est d' | ||
| + | |||
| + | Fat32 est montable sur tous les systèmes sans qu'il soit nécessaire de lui donner les droits d' | ||
| + | La taille des fichiers ne peut par contre dépassée 4.3 Go. | ||
| + | |||
| + | Ext2,3,4 nécessite un montage et une modification des droits d' | ||
| + | |||
| + | =====Voir aussi===== | ||
| + | En anglais: | ||
| + | - [[http:// | ||
| + | - [[http:// | ||
| + | - Forum Ubuntu : [[http:// | ||
| + | - [[http:// | ||
| + | - [[: | ||
| + | En français: | ||
| + | - [[:live_usb | diverses méthodes pour créer un Live-USB]] | ||
| + | - [[: | ||
| + | |||
| + | Documentation sur le sujet Live-USB: | ||
| + | - [[framakey_ubuntu_remix]] | ||
| + | - [[tutoriel: | ||
| + | |||
