Post

USB-pour-installer-Debian-via-ethernet

USB-pour-installer-Debian-via-ethernet

USB-pour-installer-Debian-via-ethernet

Clé USB pour installer Debian via ethernet (réseau)

Debian: installation par clé USB La clé USB doit faire au moins 200 mo.

Brancher la clé USB, trouver son identifiant:

1
$ dmesg
1
2
3
4
5
6
7
8
9
10
11
[ 1246.842203] usb-storage 1-3:1.0: USB Mass Storage device detected
[ 1246.842489] scsi host5: usb-storage 1-3:1.0
[ 1247.855618] scsi 5:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 2
[ 1247.856544] sd 5:0:0:0: Attached scsi generic sg5 type 0
[ 1247.858389] sd 5:0:0:0: [sde] 1968128 512-byte logical blocks: (1.01 GB/961 MiB)
[ 1247.858610] sd 5:0:0:0: [sde] Write Protect is off
[ 1247.858617] sd 5:0:0:0: [sde] Mode Sense: 03 00 00 00
[ 1247.858897] sd 5:0:0:0: [sde] No Caching mode page found
[ 1247.858905] sd 5:0:0:0: [sde] Assuming drive cache: write through
[ 1247.888870]  sde: sde1
[ 1247.890063] sd 5:0:0:0: [sde] Attached SCSI removable disk

Démonter la partition (si monté):

1
$ sudo umount /dev/sde1

Debian Jessie 8.x

Debian 32

1
2
$ wget http://ftp.ca.debian.org/debian/dists/jessie/main/installer-i386/current/images/hd-media/boot.img.gz -O booti386.img.gz
$ wget http://cdimage.debian.org/cdimage/release/current/i386/iso-cd/debian-8.6.0-i386-netinst.iso

Debian 64

1
2
$ wget http://ftp.ca.debian.org/debian/dists/jessie/main/installer-amd64/current/images/hd-media/boot.img.gz -O bootamd64.img.gz
$ wget http://cdimage.debian.org/cdimage/release/current/amd64/iso-cd/debian-8.6.0-amd64-netinst.iso

(remplacer 8.6.0 par la version courante)

Debian Stretch 9.x RC3 10 avril 2017

Debian 32

1
2
$ wget http://ftp.ca.debian.org/debian/dists/stretch/main/installer-i386/current/images/hd-media/boot.img.gz -O booti386.img.gz
$ wget http://cdimage.debian.org/cdimage/stretch_di_rc3/i386/iso-cd/debian-stretch-DI-rc3-i386-netinst.iso

Création clé USB

Copier le premier fichier vers la clé USB $ sudo sh -c ‘zcat booti386.img.gz > /dev/sde’ OU $ gunzip boot.img.gz $ sudo dd if=boot.img of=/dev/sde (attention: si ce n’est pas la bonne partition, ça peut complètement supprimer une autre partition)

Monter la clé et y copier le fichier ISO: $ sudo mkdir /mnt/usb $ sudo mount /dev/sde /mnt/usb $ sudo cp debian-8.6.0-i386-netinst.iso /mnt/usb $ sudo umount /mnt/usb C’est prêt.

http://ftp.ca.debian.org/debian/dists/stretch/main/installer-i386/current/images/hd-media/boot.img.gz http://cdimage.debian.org/cdimage/stretch_di_rc3/i386/iso-cd/debian-stretch-DI-rc3-i386-netinst.iso

Cet article est sous licence CC BY 4.0 par l'auteur.