Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
doc:install:install-usb-no-reseau [10/06/2011 10:56] darien |
doc:install:install-usb-no-reseau [28/04/2015 17:12] milou |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | mise à jour 10/06/2011 | + | ====== Installation Debian sans le réseau immédiat ====== |
- | ====== Installation sans le réseau immédiat ====== | + | |
* Objet : Installation debian sur eeepc sans le réseau immédiat | * Objet : Installation debian sur eeepc sans le réseau immédiat | ||
- | * Niveau requis : DÉBUTANT AVISÉ | + | * Niveau requis :{{tag>débutant avisé}} |
- | * Commentaires : //Les //DÉBUTANTS// rechignant à entrer dans la configuration de //**sudo**// remplacerons les commandes //**sudo**// en passant administrateur (root) de leur système avec //: [[commande:su | la Commande SU]]. | + | * Commentaires : //Installer une Debian sans avoir de réseau// |
- | * À savoir : [[logiciel:sudo | la Commande Sudo]] et son utilisation. | + | * Débutant, à savoir : [[:doc:systeme:commandes:le_debianiste_qui_papillonne|Utiliser GNU/Linux en ligne de commande, tout commence là !]] :-) |
+ | * Suivi : {{tag>à-tester}} | ||
+ | * Création par [[user>smolski]] le 14/04/2010 | ||
+ | * Mise à jour par [[user>darien]] le 10/06/2011 | ||
+ | * Testé par .... le .... | ||
+ | * Commentaires sur le forum : [[http://debian-facile.org/viewtopic.php?pid=117590#p117590 |C'est ici]]((N'hésitez pas à y faire part de vos remarques, succès, améliorations ou échecs !)) | ||
- | \\ | + | ===== Introduction ===== |
+ | |||
Donc vous n'avez pas de réseau. C'est gênant. Mais vous pouvez quand même installer une Debian GNU/Linux avec un bureau complet.\\ | Donc vous n'avez pas de réseau. C'est gênant. Mais vous pouvez quand même installer une Debian GNU/Linux avec un bureau complet.\\ | ||
Ligne 16: | Ligne 21: | ||
Et comme on est fainéant, on va réutiliser le travail que d'autres ont déjà fait pour nous. | Et comme on est fainéant, on va réutiliser le travail que d'autres ont déjà fait pour nous. | ||
+ | |||
+ | ===== Installation ===== | ||
==== Préparation de l'environnement de travail ==== | ==== Préparation de l'environnement de travail ==== | ||
- | <code bash> | + | <code root>apt-get update</code> |
- | $ sudo aptitude update | + | <code root>apt-get install mtools dosfstools syslinux mbr</code> |
- | $ sudo aptitude install mtools dosfstools syslinux mbr | + | <code user>mkdir ~/debian && cd ~/debian</code> |
- | $ mkdir ~/debian && cd ~/debian | + | |
- | $ wget http://ftp.fr.debian.org/debian/dists/squeeze/main/installer-i386/current/images/hd-media/boot.img.gz | + | Pour choisir la branche que vous souhaitez installer,voir la page wiki http://debian-facile.org/doc:install:install |
- | $ gunzip boot.img.gz | + | |
- | </code> | + | Syntaxe //**dans un terminal user**// |
+ | <code bash>wget lien de l'image de la branche que vous souhaitez installer</code> | ||
+ | <code user>gunzip boot.img.gz</code> | ||
Ensuite, il vous faut un CD-Rom. Choisissez celui que vous préfères, parmi ceux cités plus haut. | Ensuite, il vous faut un CD-Rom. Choisissez celui que vous préfères, parmi ceux cités plus haut. | ||
Ligne 38: | Ligne 47: | ||
=== Méthode 1 === | === Méthode 1 === | ||
- | <code bash> | + | <code user>dmesg | tail</code> |
- | $ dmesg | tail | + | <file config retour de la commande>[2165634.791468] scsi 5:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 0 CCS |
- | [2165634.791468] scsi 5:0:0:0: Direct-Access USB DISK 2.0 PMAP PQ: 0 ANSI: 0 CCS | + | |
[2165634.802119] sd 5:0:0:0: Attached scsi generic sg3 type 0 | [2165634.802119] sd 5:0:0:0: Attached scsi generic sg3 type 0 | ||
[2165635.042119] sd 5:0:0:0: [sdc] 8036352 512-byte logical blocks: (4.11 GB/3.83 GiB) | [2165635.042119] sd 5:0:0:0: [sdc] 8036352 512-byte logical blocks: (4.11 GB/3.83 GiB) | ||
Ligne 49: | Ligne 57: | ||
[2165635.051264] sdc: sdc1 | [2165635.051264] sdc: sdc1 | ||
[2165635.106004] sd 5:0:0:0: [sdc] Assuming drive cache: write through | [2165635.106004] sd 5:0:0:0: [sdc] Assuming drive cache: write through | ||
- | [2165635.106019] sd 5:0:0:0: [sdc] Attached SCSI removable disk | + | [2165635.106019] sd 5:0:0:0: [sdc] Attached SCSI removable disk </file> |
- | </code> | + | |
=== Méthode 2 === | === Méthode 2 === | ||
- | <code bash> | + | <code user>ls -l /dev/disk/by-id/*usb*</code> |
- | ls -l /dev/disk/by-id/*usb* | + | <file config retour de la commande>lrwxrwxrwx 1 root root 9 jan 22 12:59 /dev/disk/by-id/usb-disk2go_disk2go_PURE_S2_0B61EB60F1A12983-0:0 -> ../../sdc |
- | lrwxrwxrwx 1 root root 9 jan 22 12:59 /dev/disk/by-id/usb-disk2go_disk2go_PURE_S2_0B61EB60F1A12983-0:0 -> ../../sdc | + | lrwxrwxrwx 1 root root 10 jan 22 12:59 /dev/disk/by-id/usb-disk2go_disk2go_PURE_S2_0B61EB60F1A12983-0:0-part1 -> ../../sdc1 </file> |
- | lrwxrwxrwx 1 root root 10 jan 22 12:59 /dev/disk/by-id/usb-disk2go_disk2go_PURE_S2_0B61EB60F1A12983-0:0-part1 -> ../../sdc1 </code> | + | |
=== Identification === | === Identification === | ||
Ligne 71: | Ligne 76: | ||
Pour ma part, c'est fdisk et mkdosfs : | Pour ma part, c'est fdisk et mkdosfs : | ||
- | <code bash> | ||
- | $ sudo -i | ||
- | # install-mbr /dev/sdc | ||
- | # fdisk /dev/sdc | ||
- | Command (m for help): p | + | <code root>install-mbr /dev/sdc</code> |
+ | <code root>fdisk /dev/sdc</code> | ||
+ | <code bash>Command (m for help): p | ||
+ | |||
Disk /dev/sdc: 4114 MB, 4114612224 bytes | Disk /dev/sdc: 4114 MB, 4114612224 bytes | ||
127 heads, 62 sectors/track, 1020 cylinders | 127 heads, 62 sectors/track, 1020 cylinders | ||
Units = cylinders of 7874 * 512 = 4031488 bytes | Units = cylinders of 7874 * 512 = 4031488 bytes | ||
Disk identifier: 0x00000000 | Disk identifier: 0x00000000 | ||
+ | |||
Device Boot Start End Blocks Id System | Device Boot Start End Blocks Id System | ||
+ | |||
Command (m for help): n | Command (m for help): n | ||
Command action | Command action | ||
Ligne 93: | Ligne 97: | ||
First cylinder (1-1020, default 1): 1 | First cylinder (1-1020, default 1): 1 | ||
Last cylinder or +size or +sizeM or +sizeK (1-1020, default 1020): +700M | Last cylinder or +size or +sizeM or +sizeK (1-1020, default 1020): +700M | ||
+ | |||
Command (m for help): n | Command (m for help): n | ||
Command action | Command action | ||
Ligne 104: | Ligne 108: | ||
Last cylinder or +size or +sizeM or +sizeK (176-1020, default 1020): | Last cylinder or +size or +sizeM or +sizeK (176-1020, default 1020): | ||
Using default value 1020 | Using default value 1020 | ||
+ | |||
Command (m for help): p | Command (m for help): p | ||
+ | |||
Disk /dev/sdc: 4114 MB, 4114612224 bytes | Disk /dev/sdc: 4114 MB, 4114612224 bytes | ||
127 heads, 62 sectors/track, 1020 cylinders | 127 heads, 62 sectors/track, 1020 cylinders | ||
Units = cylinders of 7874 * 512 = 4031488 bytes | Units = cylinders of 7874 * 512 = 4031488 bytes | ||
Disk identifier: 0x00000000 | Disk identifier: 0x00000000 | ||
+ | |||
Device Boot Start End Blocks Id System | Device Boot Start End Blocks Id System | ||
/dev/sdc1 1 175 688944 83 Linux | /dev/sdc1 1 175 688944 83 Linux | ||
/dev/sdc2 176 1020 3326765 83 Linux | /dev/sdc2 176 1020 3326765 83 Linux | ||
+ | |||
Command (m for help): t | Command (m for help): t | ||
Partition number (1-4): 1 | Partition number (1-4): 1 | ||
Hex code (type L to list codes): 6 | Hex code (type L to list codes): 6 | ||
Changed system type of partition 1 to 6 (FAT16) | Changed system type of partition 1 to 6 (FAT16) | ||
+ | |||
Command (m for help): a | Command (m for help): a | ||
Partition number (1-4): 1 | Partition number (1-4): 1 | ||
+ | |||
Command (m for help): t | Command (m for help): t | ||
Partition number (1-4): 2 | Partition number (1-4): 2 | ||
Hex code (type L to list codes): c | Hex code (type L to list codes): c | ||
Changed system type of partition 2 to c (W95 FAT32 (LBA)) | Changed system type of partition 2 to c (W95 FAT32 (LBA)) | ||
+ | |||
Command (m for help): p | Command (m for help): p | ||
+ | |||
Disk /dev/sdc: 4114 MB, 4114612224 bytes | Disk /dev/sdc: 4114 MB, 4114612224 bytes | ||
127 heads, 62 sectors/track, 1020 cylinders | 127 heads, 62 sectors/track, 1020 cylinders | ||
Units = cylinders of 7874 * 512 = 4031488 bytes | Units = cylinders of 7874 * 512 = 4031488 bytes | ||
Disk identifier: 0x00000000 | Disk identifier: 0x00000000 | ||
+ | |||
Device Boot Start End Blocks Id System | Device Boot Start End Blocks Id System | ||
/dev/sdc1 * 1 175 688944 6 FAT16 | /dev/sdc1 * 1 175 688944 6 FAT16 | ||
/dev/sdc2 176 1020 3326765 c W95 FAT32 (LBA) | /dev/sdc2 176 1020 3326765 c W95 FAT32 (LBA) | ||
+ | |||
Command (m for help): w | Command (m for help): w | ||
The partition table has been altered! | The partition table has been altered! | ||
+ | |||
Calling ioctl() to re-read partition table. | Calling ioctl() to re-read partition table. | ||
+ | |||
WARNING: If you have created or modified any DOS 6.x | WARNING: If you have created or modified any DOS 6.x | ||
partitions, please see the fdisk manual page for additional | partitions, please see the fdisk manual page for additional | ||
information. | information. | ||
- | Syncing disks. | + | Syncing disks.</code> |
- | # mkdosfs -F 16 /dev/sdc1 | + | <code root>mkdosfs -F 16 /dev/sdc1</code> |
- | # mkdosfs -F 32 -n usb-data /dev/sdc2 | + | <code root>mkdosfs -F 32 -n usb-data /dev/sdc2</code> |
- | # exit | + | <code root>exit</code> |
- | $ | + | |
- | </code> | + | |
Notre clé est prête. Nous avons créé une première partition bootable, et l'avons formaté en FAT 16. | Notre clé est prête. Nous avons créé une première partition bootable, et l'avons formaté en FAT 16. | ||
Ligne 166: | Ligne 168: | ||
Mais d'abord, un coup de syslinux : | Mais d'abord, un coup de syslinux : | ||
- | <code bash> | + | <code root>syslinux /dev/sdc1</code> |
- | $ sudo syslinux /dev/sdc1 | + | <code user>pwd</code> |
- | $ pwd | + | <file config retour de la commande>/home/user/debian/</file> |
- | /home/user/debian/ | + | <code user>ls</code> |
- | $ ls | + | <file config retour de la commande>boot.img debian-505-i386-CD-1.iso</file> |
- | boot.img debian-505-i386-CD-1.iso | + | <code user>mkdir loopdir</code> |
- | $ mkdir loopdir | + | <code root>mount -o loop boot.img ./loopdir</code> |
- | $ sudo -i | + | <code root>mount /dev/sdc1 /mnt</code> |
- | # mount -o loop boot.img ./loopdir | + | <code root>cp -R ./loopdir/* /mnt</code> |
- | # mount /dev/sdc1 /mnt | + | <code root>cp ./debian-505-i386-CD-1.iso /mnt</code> |
- | # cp -R ./loopdir/* /mnt | + | <code root>umount /mnt</code> |
- | # cp ./debian-505-i386-CD-1.iso /mnt | + | <code root>sync</code> |
- | # umount /mnt | + | <code root>exit</code> |
- | # sync | + | |
- | # exit | + | Bon bah... y'a plus qu'à essayer !\\ |
- | $ | + | |
- | </code> | + | |
- | Bon ben... y'a plus qu'à essayer ! :-) | + | **A noter que certaines vieilles cartes mères peuvent ne pas supporter le boot via USB.** |
- | A noter que certaines vieilles cartes mères peuvent ne pas supporter le boot via USB. | + | |
:-P :-P :-P | :-P :-P :-P |