Using Oscdimg to create an ISO image.

Paul Black

I WANT TO BELIEVE!
Guru
Gold Member
VIP
Local time
8:37 AM
Messages
3,823
Location
Planet Earth VGhlIFgtRmlsZXM=
Good afternoon,

A couple of questions.

(1)
I have an original Windows Vista DVD that I want to backup.
I want to create an exact copy of the DVD as a bootable ISO.
I have WAIK installed and want to use Oscdimg.
I have copied all the files from the DVD to the folder C:\Test.
Is this the correct command to use in an Elevated Prompt:

C:\Program Files\Windows AIK\Tools\PETools>oscdimg -n -d -m C:\test C:\test.iso

From what I can make out:
-d - Will allow use of lowercase file names. If left out all characters will be uppercase.
-m - Ignores the maximum size limit of an image.
-n - Enables long file names (makes it possible to use filenames up to 30 characters in length).

(2)
I have also been playing around with DISM in Windows 7 etc.
The mounted image is in the C:\Win7ISO\ folder.
I found the below command line on a website that said this was the Elevated Prompt command to use to create an ISO image:

Oscdimg –m –u2 –bc:\Win7ISO\boot\etfsboot.com C:\Win7ISO\ C:\.iso

-b - Specifies the location of the El Torito boot sector file. Do NOT use spaces. Is this NEEDED, what is it?
-m - Ignores the maximum size limit of an image.
-u2 - What an earth is this parameter???

Thanks in advance.

EDIT:
I think I should have posted this in the Backup And Restore forum!

I have just found an eplanation for -u2:

-u2 - Produces an image that has only the UDF file system on it. Any system not capable of reading UDF will only see a default text file alerting the user that this image is only available on comouters that support UDF. This option cannot be combined with the -n, -nt or -d options.
 
Last edited:

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Fujitsu LIFEBOOK
OS
Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
CPU
Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
Motherboard
FUJITSU FJNBB06
Memory
4.00 GB
Graphics Card(s)
Intel(R) Graphics Media Accelerator HD
Sound Card
[1] Realtek High Definition Audio [2] Intel(R) Display Audio
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MK5076GSX
Antivirus
AVG FREE
m32 ..... I use Macrium
 

My Computer

Computer type
PC/Desktop
OS
Windows 7 Pro 64
Thanks for the reply Snick,

Why Oscdimg?
Are you talking about number (1) or number (2), or BOTH.

I have done a lot of reading about DISM because I wanted to see what it was all about. I mainly wanted it for integrating updates, and once that was done then create a new upto date ISO. It mentioned using Oscdimg.

Is there another way to do this with the mounted ISO?

Thanks in advance.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Fujitsu LIFEBOOK
OS
Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
CPU
Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
Motherboard
FUJITSU FJNBB06
Memory
4.00 GB
Graphics Card(s)
Intel(R) Graphics Media Accelerator HD
Sound Card
[1] Realtek High Definition Audio [2] Intel(R) Display Audio
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MK5076GSX
Antivirus
AVG FREE
Thanks for the reply JoWazzoo,

m32 ..... I use Macrium

I am assuming that you are talking about question (1)?
I wanted to be able to do this using the tools I already have as opposed to third party software.

Thanks in advance.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Fujitsu LIFEBOOK
OS
Win 7 HP SP1 64-bit Vista HB SP2 32-bit Linux Mint 18.3
CPU
Intel(R) Pentium(R) CPU P6200 @ 2.13GHz
Motherboard
FUJITSU FJNBB06
Memory
4.00 GB
Graphics Card(s)
Intel(R) Graphics Media Accelerator HD
Sound Card
[1] Realtek High Definition Audio [2] Intel(R) Display Audio
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 59 Hz
Hard Drives
TOSHIBA MK5076GSX
Antivirus
AVG FREE
Oscdimg and Mkisofs are command line iso creating tools.

If you don't want to use a command line tool, you can use an iso handling program instead.

Most free versions only allow editing very small isos.

Gburner is fully functional for 30 days as a trial. That will be fine for your purposes.

gBurner - A powerful CD, DVD and BD burning software
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
-b - Specifies the location of the El Torito boot sector file. Do NOT use spaces. Is this NEEDED, what is it?

It writes bootsector to the iso file. Without that, the iso will not boot.

You might want to include efi support as well.

Oscdimg -bootdata:2#p0,e,bc:\Win7ISO\boot\etfsboot.com#pEF,e,bc:\Win7ISO\efi\microsoft\boot\Efisys.bin -u1 -udfver102 C:\Win7ISO C:\My.iso
 

My Computers

System One System Two

  • Computer type
    PC/Desktop
    OS
    7 X64
    CPU
    i5 8400
    Motherboard
    gigabyte b365m ds3h
    Memory
    2x8gb 3200mhz
    Hard Drives
    various
    PSU
    pure power 11 400w cm
    Case
    Coolermaster
    Cooling
    cryorig m9i
  • Computer type
    PC/Desktop
    OS
    7x64
    CPU
    g5400
    Motherboard
    ga b365m ds3h
    Memory
    8gb ddr4 2400
    PSU
    xfx pro 450w
I mainly wanted [DISM] for integrating updates, and once that was done then create a new upto date ISO. It mentioned using Oscdimg.
[...]
I wanted to be able to do this using the tools I already have as opposed to third party software.
Paul, you're on the right track. I've occasionally used oscdimg and it works just fine. The command syntax I generally use follows this format:

oscdimg.exe -b{boot-image} -u2 -h -l{CD-label} {source-files} {destination-iso}

so it might look something like this:

oscdimg.exe -bC:\Win7ISO\boot\etfsboot.com -u2 -h -lWIN7_HomePrem C:\Win7ISO\ C:\test.iso

(That's a lower-case L for the label parameter.)

An iso file is akin to a giant zip file. Burn an iso to a CD, put that CD in a CD reader, and you'll see all the encapsulated files. But that CD won't be bootable--to make it bootable, you need to include a boot image. That's the purpose of the -b parameter. (FWIW, El Torito is a common boot image format.)

If you have an original bootable CD/DVD you can extract the boot image from it (it's normally hidden, ala the boot sector of your Windows partition) and specify that as the source for the -b parameter. In the case of the Win-7 installation disc, however, Microsoft has saved you the trouble by putting a fully accessible copy of the boot image within the file space--namely, boot\etfsboot.com, so you don't have to extract anything, you just point the -b parameter to that file.

I don't burn DVDs larger than 4.7GB (thus don't create iso files larger than that, either), so I'm not fluent in the use of the -m parameter. I don't suppose it would hurt, but I don't use it.

Aside: In fact, in an interesting use case, I've used oscdimg in the past to shrink a Dell Win7 installation DVD. In later years Dell's DVD had grown to over 5GB, so was shipped on a DL DVD. But not all of the machines I wanted to use it on had DL readers, so I set out to see what I could eliminate to shrink it so it would fit on a regular DVD again. I found there was a whole folder of foreign language files that were optional, so I deleted them and recreated an iso without them that turned out to be less than 4.7GB.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell Optiplex 7050
OS
Windows 7/8.1/10 multiboot
CPU
Intel Core i7-7700
Motherboard
Dell, Intel Q270 chipset
Memory
48GB (2x16GB Crucial DDR4-3200 + 2x8GB Hynix DDR4-2400)
Graphics Card(s)
Intel HD630 + AMD Radeon R7 450 PCIe
Monitor(s) Displays
Asus VC279 (27")
Screen Resolution
1920x1080
Hard Drives
Toshiba M.2 NVMe (256GB),
Samsung 960 Evo (500GB),
WD Red Plus 80EFBX (8TB)
Back
Top