Table des matières
Créer un CDROM d'installation bootable
Auteur : Olivier BOYER - oboyer () ajoute ! org
Mots clés
NetBSD, installation, media, cdrom, bootable
Introduction
Le projet NetBSD livre des images ISO d'installation… voici comment ils les font.
Préparer l'arborescence
$ mkdir -p i386/installation $ cd i386/installation
Télécharger les sets d'installation
$ ncftpget <ftp://server/sources>
Générer l'image ISO
$ cd ../..
$ mkisofs -v \
-V "NetBSD 1.6.1 Release" \
-b i386/installation/floppy/boot-big.fs \
-c boot.catalog \
-l \
-r \
-T \
-J \
-L \
-o /tmp/image.iso \
.
ATTENTION : Le fichier de boot est relatif à la racine de l'image ISO
Graver l'image ISO
Trouver l'adresse SCSI du graveur
$ sudo cdrecord -scanbus 1,3,0 103) 'PLEXTOR ' 'CD-R PX-W4012S' '1.01' Removable CD-ROM
Graver l'image ISO
$ sudo cdrecord -v -eject speed=4 dev=1,3,0 -data /tmp/image.iso
Détails de la commande mkisofs
mkisofs format : mkisofs [options] -o <filename> </path/to/data> mkisofs options : -V <volid> Specifies the volume ID (volume name or label) to be written into the master block. This parameter can also be set in the file .mkisofsrc with VOLI=id. -v Verbose execution. -o <filename> is the name of the file to which the iso9660 filesystem image should be written. -b <eltorito_boot_image> Specifies the path and filename of the boot image to be used when making an "El Torito" bootable CD. The path- name must be relative to the source path specified to mkisofs. This option is required to make an "El Torito" bootable CD. The boot image must be exactly the size of either a 1.2, 1.44, or a 2.88 meg floppy -c <boot_catalog> Specifies the path and filename of the boot catalog to be used when making an "El Torito" bootable CD. The pathname must be relative to the source path specified to mkisofs. This option is required to make a bootable CD. This file will be inserted into the output tree and not created in the source filesystem, so be sure the specified filename does not conflict with an exist- ing file, as it will be excluded. Usually a name like "boot.catalog" is chosen. -R Generate SUSP and RR records using the Rock Ridge pro- tocol to further describe the files on the iso9660 filesystem. -r This is like the -R option, but file ownership and modes are set to more useful values. The uid and gid are set to zero, because they are usually only useful on the author's system, and not useful to the client. -T Generate a file TRANS.TBL in each directory on the CDROM, which can be used on non-Rock Ridge capable sys- tems to help establish the correct file names. -J Generate Joliet directory records in addition to regu- lar iso9660 file names. This is primarily useful when the discs are to be used on Windows-NT or Windows-95 machines. The Joliet filenames are specified in Unicode and each path component can be up to 64 Unicode characters long. Note that Joliet is no standard - CD's that use only Joliet extensions but no standard Rock Ridge extensions may usually only be used on Microsoft Win32 systems. -l Allow full 31 character filenames. Normally the ISO9660 filename will be in an 8.3 format which is com- patible with MS-DOS, even though the ISO9660 standard allows filenames of up to 31 characters. Use with caution. -L Allow filenames to begin with a period. Usually, a leading dot is replaced with an underscore in order to maintain MS-DOS compatibility.