Créer un CD bootable avec OSCDIMG

Outil méconnu mais utile....


####################################################################################################
Exemple pour Windows 7 :
========================
Construction d'un ISO bootable à partir d'un DVD (lecteur E:\) - Les fichiers de boot sont dans la distribution
sur le CD dans son répertoire Boot - L'image ISO est placée sur un disque USB externe (lecteur L:\) dans le répertoire VHD-ISO :
Pour version X86 de Windows 7 (si la sopurce est un Windows 7 X86) :
oscdimg.exe -lWin7-X86 -m -u2 -bE:\boot\etfsboot.com E:\ L:\VHD-ISO\Win7-X86.iso
Pour version X64 de Windows 7 (si la sopurce est un Windows 7 X64) :
oscdimg.exe -lWin7-X64 -m -u2 -bE:\boot\etfsboot.com E:\ L:\VHD-ISO\Win7-X64.iso

####################################################################################################
Exemple pour créer un ISO non bootable :
----------------------------------------
oscdimg.exe -lMSToolkit252 -m -u2 D:\MSToolkit C:\Mes_DATAS\Doss_ISO_VHDs\MIcrosoftToolkit2.5.2.iso

####################################################################################################
How to create bootable Windows 8 ISO DVD using Oscdimg.exe
August 20, 2012 by RKONIT —9 Comments 

Sometimes you want to install Windows from a bootable DVD but all you’ve got are just flat Windows installation files in hand. 
The same thing has happened with me also, in my case I downloaded Windows 8 RTM build which was leaked earlier this month. 
There was no direct bootable ISO image, all I got are flat installation files in the downloaded package. So, it was required 
to create a bootable ISO of Windows 8 from the set of files, prior to begin installation.
In order to do that, I have used the Assessment and Deployment Kit for Windows 8 (formally known as WAIK). And in this blog 
post, you will walk through the step by step instructions to create a bootable ISO of Windows 8.
Prerequisites:
-------------
 - oscdimg.exe- A command line CD-ROM and DVD-ROM pre-mastering utility to create bootable ISOs of Microsoft Windows. 
   And you will get it once you’ll install ADK for Windows 8. You can download it from here, 
   for instance: http://www.microsoft.com/en-us/download/details.aspx?id=30652
 - Windows 8 Setup files
How To:
-------
1.First of all, you’ll need all the Windows 8 installation files at one place. 
  For example, I copied all of them within a folder (C:\WIN8AIO).
2.Run Deployment and Imaging Tools Environment (Command Prompt) as Administrator 
  and then type the following :
oscdimg.exe –l<Disc_Label> -m -u2 –b<path_of_bootable_img_file> <path_of_installation_source> <path_with_filename_is_to_be_created>
-l is used to set volume label of DVD
-m is used to create bigger image file than 700MB
-u2 is used to create UDF file system for DVD
-b is used to locate boot image of DVD
For example:
------------
oscdimg.exe -lWIN8AIO -m -u2 -bC:\WIN8AIO\boot\etfsboot.com C:\WIN8AIO C:\WIN8AIO.ISO
3.It will scan the source tree, begin creating the image, and when it will be done, y
  ou’ll have a bootable ISO file for Windows 8 ready.
4.Now just burn your new ISO image on a DVD media using any third party software like NERO, ROXIO, 
  ImageBurn, etc.

Read more: http://www.windowsvalley.com/create-bootable-windows-8-iso-dvd/#ixzz3GmuN96Pz
Voir ausssi  http://technet.microsoft.com/fr-fr/library/cc749036(v=WS.10).aspx pour Vista
  et http://technet.microsoft.com/en-us/library/hh824847.aspx  pouyr Windows 8 et 8.1
=======================================================================================================
###  Mon Exemple  #####################################################################################
=======================================================================================================

C:\>cd Mes_DATAS
C:\Mes_DATAS>cd Doss_ISO_VHDs
C:\Mes_DATAS\Doss_ISO_VHDs>cd X64
C:\Mes_DATAS\Doss_ISO_VHDs\X64>cd Oscdimg
C:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg>dir
 Le volume dans le lecteur C s'appelle Windows
 Le numéro de série du volume est CA15-4576
 Répertoire de C:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg
21/10/2014  15:43    <DIR>          .
21/10/2014  15:43    <DIR>          ..
22/08/2013  05:44         1 474 560 efisys.bin
22/08/2013  05:44         1 474 560 efisys_noprompt.bin
18/06/2013  07:41             4 096 etfsboot.com
22/08/2013  05:17           142 952 oscdimg.exe
               4 fichier(s)        3 096 168 octets
               2 Rép(s)  149 087 502 336 octets libres
Pour Boot Bios uniquement :
'''''''''''''''''''''''''''
C:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg>oscdimg.exe -lWin8-X64-From-PCPGX05 -m -u2 -bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\etfsboot.com C:\ESD C:\Mes_DATAS\Doss_ISO_VHDs\Win8-X64-From-PCPGX05.iso
OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
Copyright (C) Microsoft, 1993-2012. All rights reserved.
Licensed only for producing Microsoft authorized content.

Scanning source tree (2000 files in 707 directories)
Scanning source tree complete (2488 files in 976 directories)
Computing directory information complete
Image file is 2858024960 bytes
Writing 2488 files in 976 directories to C:\Mes_DATAS\Doss_ISO_VHDs\Win8-X64-From-PCPGX05.iso
100% complete
Final image file is 2865102848 bytes
Done.
C:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg>
Pour Boot Bios et boot UEFI :
'''''''''''''''''''''''''''''
C:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg>oscdimg.exe -lWin8-X64-From-PCPGX05 -m -u2 -udfver102  -bootdata:2#p0,e,bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\etfsboot.com#pEF,e,bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\efisys.bin C:\ESD C:\Mes_DATAS\Doss_ISO_VHDs\Win8-X64-From-PCPGX05.iso 
OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
Copyright (C) Microsoft, 1993-2012. All rights reserved.
Licensed only for producing Microsoft authorized content.
Scanning source tree (2000 files in 707 directories)
Scanning source tree complete (2488 files in 976 directories)
Computing directory information complete
Image file is 2859499520 bytes
Writing 2488 files in 976 directories to C:\Mes_DATAS\Doss_ISO_VHDs\Win8-X64-From-PCPGX05.iso
100% complete
Final image file is 2866577408 bytes
Done.
C:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg>
=======================================================================================================
###  Comment créer une image ISO pour les plates-formes UEFI pour un CD-ROM du Windows PE   ###########
=======================================================================================================
Pour Windows Server 2008 :
##########################
Conditions préalables :
-----------------------
  - Vous avez installé une des configurations suivantes :
- Le Kit de préinstallation OEM Windows (OPK) avec Windows Server 2008 
  - Kit d’installation automatisée (Windows AIK) (WAIK) avec Windows Server 2008 
  - La plate-forme cible est la version x 64 (amd64) de Windows Server 2008. 
Pour créer une image ISO pour Windows PE sur un CD-ROM, procédez comme suit :
1.Utiliser les informations d'identification administratives pour ouvrir une session sur un ordinateur 
  fonctionnant sous Windows Server 2008.
2.Sur le Programmes Menu, cliquez sur Kit de préinstallation OEM Windows (OPK), puis cliquez sur Invite 
  de commande des outils Windows PE. 
3.Type Copype.cmd amd64 winpe_x64, puis appuyez sur ENTRÉE. Cette commande crée la structure de répertoires 
  et copie les fichiers requis.
4.Type copie winpe.wim.\ISO\sources\boot.wim, puis appuyez sur ENTRÉE. Cette commande copie le winpe.wim 
  créés sous winpe_x64 dans le dossier ISO\sources en tant que fichier boot.wim.
5.Tapez par exemple la commande suivante et appuyez sur ENTRÉE :
Oscdimg -m -o-u2-udfver102-bootdata:2#p0,e,bc:\winpe_x64\etfsboot.com#pEF,e,bc:\winpe_x64\efisys.bin c:\winpe_x64\ISO c:\winpe_x64\winpeuefi.iso
Remarque Consultez la section « Définitions » pour plus d'informations sur cette commande.
6.Graver l'image ISO (Winpeuefi.iso) sur un CD ou un DVD.

Définitions :
-------------
Arguments de commande Oscdimg
  - b  
Specifies the El Torito boot sector file that will be written in the boot sector or sectors of the 
disk. Do not use spaces. For example:
On UEFI: bEfisys.bin
On BIOS: bEtfsboot.com
  - m
Ignore la limite de taille maximale de l'image.
 - o
Optimise le stockage en codant les fichiers dupliqués qu'une seule fois.
 - U2 
Produit une image ISO contenant uniquement le système de fichiers de Format UDF (Universal Disk).
 - udfver102
Spécifie le format de version 1.02 UDF.
 - bootdata:<number>
Spécifie une image à démarrage multiple. Cette image utilise un secteur de démarrage basé sur X86 comme l'image 
par défaut. Ce secteur démarre le code de démarrage Etfsboot.com. Une image de démarrage EFI secondaire démarre 
une application de démarrage EFI.
- c:\winpe_x64\ISO
Représente le chemin d'accès des fichiers de l'image.
 - c:\winpe_x64\winpeuefi.ISO 
Représente le fichier d'image de sortie.
Détail sur multiboot entry (-Bootdata) et sa syntaxe :
------------------------------------------------------
You can use the Oscdimg tool to create a bootable CD or DVD by using multi-boot entries. 
Syntaxe :
'''''''''
 -bootdata:<3>#<defaultBootEntry>#<bootEntry1>#<bootEntryN>
  where <3> is the number of boot entries that follow.
Elément d'une Boot Entry :
e --> Disables floppy disk emulation in the El Torito catalog.
p --> Specifies the value to use for the platform ID in the El Torito catalog. 
           The default ID is 0xEF to represent a UEFI system. 0x00 represents a BIOS system.
t --> Specifies the El Torito load segment. If not specified, this option defaults to 0x7C0.
Par exemple : p0,e,bEtfsboot.com (plate-forme BIOS, pas d'émulation floppy, image de boot = etfsboot.com)
Note the following:
'''''''''''''''''''
- The bootdata option must be followed by the number of boot entries in the command (-bootdata:<number>).
- Each multi-boot entry must be delimited by using a hash symbol (#).
- Each option for a boot entry must be delimited by using a comma (,).
- Each boot entry must specify the platform ID.
NB : Do not use spaces !!!
To use multi-boot entries :
'''''''''''''''''''''''''''
 - Create an image file for either a UEFI-based or BIOS-based computer by using a multi-boot command. 
For example:
Oscdimg -bootdata:2#p0,e,bEtfsboot.com#pEF,e,bEfisys.bin -u1 -udfver102 C:\winpe_amd64\media C:\winpe_amd64\winpeamd64.iso
where this command starts 
- the Etfsboot.com boot file for a BIOS image, 
- and then starts the Efisys.bin boot file for a UEFI image

oscdimg.exe -lWin8-X64-From-PCPGX05 -m -u2 -bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\etfsboot.com C:\ESD C:\Mes_DATAS\Doss_ISO_VHDs\Win8-X64-From-PCPGX05.iso
oscdimg.exe -lWin8-X64-From-PCPGX05 -m -u2 -udfver102  -bootdata:2#p0,e,bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\etfsboot.com#pEF,e,bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\efisys.bin C:\ESD C:\Mes_DATAS\Doss_ISO_VHDs\Win8-X64-From-PCPGX05.iso 
oscdimg.exe -lWin8-X64-From-PCPGX05 -m -u2 -udfver102  -bootdata:2#p0,e,bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\etfsboot.com#pEF,e,bC:\Mes_DATAS\Doss_ISO_VHDs\X64\Oscdimg\efisys.bin E:\ C:\Mes_DATAS\Doss_ISO_VHDs\Win8-X64-From-PCPGX05.iso 


​​Retour...

Contact :

Patrice Guilloux
Sociéte : AR Systèmes 
FRANCE

pguilloux@outlook.com
Certifié Microsoft :



Certifié HP (APC, AIS, ASE, Master ASE) :
 
   
© Copyright SiteName. Tous droits réservés.