Jump to content











Photo
- - - - -

mkisofs replacement: create .iso from folder


Best Answer erwan.l , 29 August 2019 - 01:14 PM

updated previous post with a direct download link

Go to the full post


  • Please log in to reply
12 replies to this topic

#1 Azev

Azev

    Newbie

  • Members
  • 15 posts
  •  
    Brazil

Posted 25 August 2019 - 02:35 PM

Hi,

 

I've been using mkisofs to build .iso files from folders. Not bootable, just regular .iso with regular .jpg files. (photo cd)

 

Problem is mkisofs have been discontinued, last release was years ago. If the folder name have non ANSI chars (like russian) mkisofs will fail to build the .iso file.

 

Any command line utility recommendation? I tried 7-zip but it won't build .iso.

 

I was wondering if imdisk can build regular .iso files (non bootable) with regular files/images on it.

 

 



#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15046 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 25 August 2019 - 05:38 PM

So a disk (actually a volume) driver should be able to make a .iso? :w00t:

 

Come on. :)

 

I believe that support for non-ANSI characters in mkisofs exist, it may depend on the EXACT version you are using and possibly even the build.

 

You can try this build of xorriso for windows:

http://reboot.pro/to...e-2#entry205319

but I have no idea if it supports "extended" characters.

 

But are you sure-sure you are using the "right" commands?

I mean, Unicode  characters are only  Joliet or Rock Ridge AFAICR :dubbio: and anyway there are limitations in length.

 

You still could make a filesystem image (i.e. with iMDISK) add to the image the files you want, then save the file and "burn" the file to the .iso, or you could use hard disk emulation:

http://reboot.pro/to...etboot/?p=28795

 

An alternative could be using UDF (as opposed to ISO9960), *like* :

https://www.medo64.c...m-command-line/

if for any reason your mkisofs doesn't work with the above both imgburn and cdburnerxp command line should support UDF.

 

:duff:

Wonko



#3 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2785 posts
  • Location:Nantes - France
  •  
    France

Posted 28 August 2019 - 05:40 PM

You may want to try MakeIso .

Reason I am advertising it is not because I am the author (...) but because it is built on the windows api (IMAPI) which I believe is unicode compliant (so that windows does a local codepage -> unicode conversion on the fly).

 

EDIT:

Oops, discard the above ... the OP is asking for a command line tool...

 

Cheers,

Erwan



#4 cdob

cdob

    Gold Member

  • Expert
  • 1440 posts

Posted 29 August 2019 - 04:21 AM

I've been using mkisofs to build .iso files from folders. Not bootable, just regular .iso with regular .jpg files. (photo cd)

 

Problem is mkisofs have been discontinued, last release was years ago. If the folder name have non ANSI chars (like russian) mkisofs will fail to build the .iso file.

 

Which mkisofs version do you use? 
A current cygwin version uses iconv to support character sets.
 
Which operating system do you use? 
A PowerShell IMAPI solution may work out of hte box, without additional binaries. 

  • Azev likes this

#5 Azev

Azev

    Newbie

  • Members
  • 15 posts
  •  
    Brazil

Posted 29 August 2019 - 10:25 AM

@cdob: thanks.

 

Windows 10 Enterprise x64 build 17763

mkisofs 3.02a05 (i686-pc-mingw32)

 

I tried your link cdrtools-3.02a09-bin-win32-patched.rar and I get this:

R2rA4nU.png

 

Even putting the cygwin1.dll it produces another error.

 

As for powershell, it uses .net, which uses an unacceptable amount of cpu and ram to be running.

So I stay as far as possible from .net dependencies.

 

I also tried copy /b "d:\photos collection" photos.iso which is very close to an iso image but it will be missing the iso9660 FS header.

 

I wish 7-zip could produce iso files.

 

Still looking.

 

Thanks for the posts


Edited by Azev, 29 August 2019 - 10:27 AM.


#6 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2785 posts
  • Location:Nantes - France
  •  
    France

Posted 29 August 2019 - 01:07 PM

Just for fun .... makeisocmd v0.1 using MS IMAPI which should natively support unicode characters.

"Pure" windows application i.e no dependency (dotnet, java, c runtime, or else...).

 

makeiso 0.1 by erwan2212@gmail.com
makeiso source_folder destination.iso [FS]
download here.
 
example :
>makeisocmd c:\pictures c:\pictures.iso 4
 
Possible filesystems (default is 0):
0 ->   FsiFileSystemISO9660;
1 ->   FsiFileSystemISO9660 or FsiFileSystemJoliet;
2 ->   FsiFileSystemISO9660 or FsiFileSystemJoliet or FsiFileSystemUDF;
3 ->   FsiFileSystemISO9660 or FsiFileSystemUDF;
4 ->   FsiFileSystemUDF;

 



#7 Azev

Azev

    Newbie

  • Members
  • 15 posts
  •  
    Brazil

Posted 29 August 2019 - 01:09 PM

it says: "

Sorry, we couldn't find that!

send me by email please: leandro.azevedo@gmail.com

Thanks



#8 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2785 posts
  • Location:Nantes - France
  •  
    France

Posted 29 August 2019 - 01:14 PM   Best Answer

updated previous post with a direct download link


  • Azev likes this

#9 Azev

Azev

    Newbie

  • Members
  • 15 posts
  •  
    Brazil

Posted 29 August 2019 - 01:54 PM

Super duper erwan!

 

That is exactly what I was looking for!

 

Please, make a page to host it at reboot.pro or github with a simple documentation.

--version points to the download page, version and credits.

 

Thanks a lot!

 

If you could add an option to set the volume name. Thanks


Edited by Azev, 29 August 2019 - 02:00 PM.


#10 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2785 posts
  • Location:Nantes - France
  •  
    France

Posted 29 August 2019 - 03:41 PM

Super duper erwan!

 

That is exactly what I was looking for!

 

Please, make a page to host it at reboot.pro or github with a simple documentation.

--version points to the download page, version and credits.

 

Thanks a lot!

 

If you could add an option to set the volume name. Thanks

 

I will probably update that thread (MakeIso) to point to this thread.

 

Version 0.2 out : set volname=whatever (on the command line) and makeisocmd.exe will use this as VolumeName (too lazy right now to deal with a command line :) ).


  • Azev likes this

#11 Azev

Azev

    Newbie

  • Members
  • 15 posts
  •  
    Brazil

Posted 29 August 2019 - 03:58 PM

if the folder name has russian chars, it says the folder cannot be found.

 

 

Version 0.2 out : set volname=whatever

 

not working



#12 cdob

cdob

    Gold Member

  • Expert
  • 1440 posts

Posted 29 August 2019 - 04:47 PM

I tried your link cdrtools-3.02a09-bin-win32-patched.rar and I get this:

 

 

Even putting the cygwin1.dll it produces another error.

 

 

Add the three dll files:

cygwin1.dll, cygiconv-2.dll, cygintl-3.dll

mkisofs.exe -input-charset UTF-8 -output-charset UTF-8 -udf -o ..\pictures.iso .

How do you use the iso image? Be aware to read the UDF file system.


Another approach,  there is oscdimg. 
Get WAIK Tools w/o loading the huge ISO's
the oven org   topic 287
 



#13 erwan.l

erwan.l

    Platinum Member

  • Developer
  • 2785 posts
  • Location:Nantes - France
  •  
    France

Posted 30 August 2019 - 07:21 AM

if the folder name has russian chars, it says the folder cannot be found.

 

 

not working

 

I may have an idea : imapi is unicode compatible but i compiled this software with delphi7 (ansimode only).

I need to recompile it with a newer delphi version of freepascal.

 

In the meantime, try the latest suggestion by CDOB. 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users