mkisofs and filenames longer than 64 characters

Even using the Joliet extension, no file in an ISO 9660 image created by mkisofs can have a name with a length greater than 64 characters and its total path length cannot exceed 128 characters. Also, the maximum depth of directory tree is 8. These limitations can be overcome, however.

Just use the -iso-level 4 command line switch – it results in generating an ISO 9660:1999 (ISO 9660 version 2) image:

$ mkdir test1
$ touch test1/12345678901234567890123456789012345678901234567890123456789012.123
$ touch test1/12345678901234567890123456789012345678901234567890123456789012.456
$ mkisofs -R -J -o test1.iso test1/
Setting input-charset to 'ISO-8859-2' from locale.
Total translation table size: 0
Total rockridge attributes bytes: 477
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
181 extents written (0 MB)

$ mkdir test2
$ touch test2/123456789012345678901234567890123456789012345678901234567890123.123
$ touch test2/123456789012345678901234567890123456789012345678901234567890123.456
$ mkisofs -R -J -o test2.iso test2/
Setting input-charset to 'ISO-8859-2' from locale.
mkisofs: Error: test2/123456789012345678901234567890123456789012345678901234567890123.123 and test2/123456789012345678901234567890123456789012345678901234567890123.456 have the same Joliet name
mkisofs: Joliet tree sort failed.

$ mkisofs -iso-level 4 -o test2.iso test2
Warning: Creating ISO-9660:1999 (version 2) filesystem.
Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the OS.
Setting input-charset to 'ISO-8859-2' from locale.
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
175 extents written (0 MB)
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s