troubleshooting Question

ISO image creation makes files name truncated.

Avatar of Mario Zio
Mario ZioFlag for Italy asked on
Operating SystemsMicrosoft DOSInstallation
24 Comments1 Solution1496 ViewsLast Modified:
Hello to everyone,

I'm trying to make the unattended installation of Windows Vista/7 using grub4dos and the CD/ROM live image of FreeDOS. I know how to do it,the problem arises because the files inside the CD are truncated when I make the iso image. This is the batch file used :

@echo off
set isofile=fdoem.iso
set basedir=CDROOT
REM boot isolinux
set params=-b isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 -boot-info-table -N
REM support Joliet (MS Windows (R) long filename support) filesystem
set params=%params% -J
REM support RockRidge filenames as well
set params=%params% -r
REM rename boot.catalog to _$ and hide it.
REM set params=%params% -c boot.catalog -hide boot.catalog -hide-joliet boot.catalog
set params=%params% -c _$ -hide-joliet _$ -hide _$
if exist %isofile% del %isofile%
if exist %isofile% GOTO errRO
if NOT "%MKISOFSRC%"=="" set MKISOFSRC.$$$=%MKISOFSRC%
set MKISOFSRC=mkisofs.rc
set msg=Creating cdrom imagefile %isofile% out of directory %basedir%
echo %msg%
if "%OS%"=="Windows_NT" title %msg%
echo -o %isofile% %params% %basedir% > makeiso_.$$$
type makeiso_.$$$
MKISOFS.EXE @makeiso_.$$$
if "%errorlevel%"=="0" set msg=Created cdrom imagefile %isofile% out of directory %basedir%
if "%errorlevel%"=="0" goto end
set msg=Error %errorlevel% :
if "%errorlevel%"=="65535" set msg=%msg% Rename isolinux directory and isolinux.bin all lowercase!
if "%errorlevel%"=="9020" set msg=%msg% Please shorten command line, command line too long.
if "%errorlevel%"=="255" set msg=%msg% Please do not rename or remove isolinux\isolinux.bin
if "%errorlevel%"=="13" set msg=%msg% Please remove read-only attribute from file isolinux.bin
del %isofile%
goto end

:errRO
set msg=Error: Unable to remove existing ISO file: %isofile%
goto end

:end
if exist makeiso_.$$$ del makeiso_.$$$
if NOT "%MKISOFSRC.$$$%"=="" set MKISOFSRC=%MKISOFSRC.$$$%
set MKISOFSRC.$$$=
echo.
echo %msg%
REM when ran on NT, e.g. via explorer instead of from cmd shell
if "%OS%"=="Windows_NT" title %msg%  
if "%OS%"=="Windows_NT" pause
if "%OS%"=="Windows_NT" title ""


The unattended installation of Windows 7 can start only if I put the autounattend.xml file on the root of the CD/ROM,but as I said,after having created the iso image,the files inside the CD become truncated. For example,the autounattend.xml file becomes autounat.xml and can't be detected. I did the same thing but using an usb key,and autounatted.xml becomes autounat~.xml and it is detected.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 24 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 24 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros