Jump to content











Photo
- - - - -

Mount ISO Offset


  • Please log in to reply
1 reply to this topic

#1 cdob

cdob

    Gold Member

  • Expert
  • 1469 posts

Posted 04 June 2008 - 09:33 PM

There are strange files: a exe containing a ISO image.
A example: Avira Rescue CD http://www.avira.com...rescue_cd_.html

Luckily ImDisk mount files with a offset. Thanks Olof.

To mount such a file: mount_iso_offset.cmd
@echo off

setlocal EnableExtensions 



set file=%temp%\rescuecd.exe

if not %1.==. set file=%1



rem find CD offset

rem LBA 16: Primary Volume Descriptor label: 01 43 44 30 30 31   0x01 CD001

for /f "tokens=2,* delims=:" %%a in ('gsar.exe -b -s":x01CD001" %file% ^|find.exe "0x"') do @set /a offset=%%b-16*2048

echo CD %offset%



imdisk.exe -a -t file -f %file% -b %offset% -o cd -m #:


#2 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7101 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 05 June 2008 - 05:09 AM

GOOD, simple, effective. ;)

jaclaz




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users