LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2025, 02:13 PM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 92

Rep: Reputation: 20
Exclamation File names over 85 characters crash growisofs -M


[Log in to get rid of this advertisement]
(This is a purely informational post, not a question.)

The disc writing tool "growisofs" was apparently the first Blu-ray recording tool for Linux in existence, and is even today used by K3b. It is based on "genisoimage".

But it was abandoned by its creator Andy Pokalov in 2008 and hasn't been developed since. And it is showing its age.

I have noticed that if you use growisofs -r -M (rock ridge, merge with existing session to add new files), none of the new files must exceed 85 characters. Otherwise, you get a garbage error like:

Code:
# growisofs -r -M /dev/sr1 test_dir
Executing 'genisoimage -r -C 16,7082336 -M /dev/fd/3 test_dir | builtin_dd of=/dev/sr1 obs=32k seek=442646'
I: -input-charset not specified, using utf-8 (detected in locale settings)
Rock Ridge signatures found
BAD RR ATTRIBUTES: 93 51 FB 6D 68 38 0B 27 66 00 26 7B 74 68 88 4F 5E EA 93 37 6C 15 6D 14 7B 96 D2 D2 5B CF 3A 23 89 4D BB B7 85 80 34 09 39 32 97 CB 73 20 BC 67 B3 FE E4 2C B3 8F BF 3D 3B 7C 92 1E 44 FD
BAD RR ATTRIBUTES: .Q.mh8.'f.&{th.O^..7l.m.{...[.:#.M....4.92..s .g...,...=;|..D.
genisoimage: **BAD RRVERSION (109) for �Q
genisoimage: Cannot parse Rock Ridge attributes for 'LONG_FIL.MP3;1'.
:-( genisoimage has failed: 255
And you will not be able to resume the session.

In addition, some unicode characters like emojis break UDF directory listings with growisofs -udf. The directory might not be fully listed if a file contains non-ASCII characters.

By the way, when using -M (merge with existing session to add new files), never forget to specify -r (Rock Ridge) or the existing file names will be downgraded to basic ISO9660 file names. This means they are single-case (they appear all-lowercase on Linux and all-uppercase on Windows) and spaces and other non-alphanumeric characters are replaced with underscores.

Example!.mp3 is turned into "example_.mp3" or "EXAMPLE_.MP3" depending on the OS viewing the file.
 
Old 03-15-2025, 03:14 AM   #2
scdbackup
Member
 
Registered: Oct 2013
Posts: 168

Rep: Reputation: Disabled
Hi,

the error messages shown stem originally from genisoimage, not from
growisofs (which has its own bugs, especially
https://bugs.debian.org/cgi-bin/bugr...cgi?bug=794868
).

genisoimage is unmaintained nearly as long as growisofs.
The author of mkisofs, which was the origin of the genisoimage fork,
has died a few years ago.

As long as one does not need their options -udf or -hfs it should be
possible to use xorriso and its mkisofs emulation xorrisofs instead.
For use under growisofs one would set these variables:
Code:
  export MKISOFS="xorrisofs"
  export GENISOIMAGE="xorrisofs"
It depends on the Linux distro which one of them is used by growisofs.
Debian based versions use GENISOIMAGE, others use MKISOFS.

But when xorriso is involved, one may also omit growisofs and rather
rely on xorriso's burn capabilities:
Code:
  xorriso -dev /dev/sr1 \
          -map test_dir / \
          -find / -exec mkisofs_r --
xorriso command -dev is like mkisofs option -M. It loads the existing
directory tree of the ISO 9660 filesystem on the medium before adding
or deleting files by subsequent xorriso commands.
Command -map has two parameters: the source path on disk and the target
path in the ISO filesystem.
When all intended manipulations are done, the command
Code:
  -find / -exec mkisofs_r --
performs the changes in permissions and ownerships which are caused by
mkisofs option -r instead of -R.

One may practice with a disk file as pseudo-drive:
Code:
  xorriso -dev "$HOME"/test.iso \
          ...
xorriso and xorrisofs have the effect of option -R enabled by default.
I.e long file names and POSIX attributes will be recorded and shown
when the ISO is mounted on Linux.
The effect of option -r is only suited for situations where the
original permissions and ownerships are cumbersome when mounting and
reading the ISO filesystem.

Have a nice day

Thomas
 
1 members found this post helpful.
Old 03-15-2025, 03:57 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,256
Blog Entries: 4

Rep: Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140Reputation: 4140
However, if I may say, if your file-names are more than 85(!) characters, you probably need to invent a brand-new way of organizing your information!

My best guess is that you are attempting to "encode information directly into the filename." Probably a much better way is to employ a (SQLITE?) database. Use a very-simple filing system (such as "uuid"), then use the database (file ...) to make proper sense of it.
 
Old Today, 04:21 PM   #4
exerceo
Member
 
Registered: Oct 2022
Posts: 92

Original Poster
Rep: Reputation: 20
Exclamation file names over 85 characters

Quote:
Originally Posted by sundialsvcs View Post
However, if I may say, if your file-names are more than 85(!) characters, you probably need to invent a brand-new way of organizing your information!
Many online videos have titles longer than 85 characters.
 
  


Reply

Tags
blu-ray



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crash () { crash|crash& }; crash grob115 Linux - Security 6 05-07-2011 03:06 AM
using growisofs to write dvd causes small file names sumeet inani Linux - Newbie 1 06-29-2009 04:22 AM
why is growisofs changing my file names with data dvd? kryptobs2000 Linux - Software 2 01-17-2008 12:57 PM
How to modify the names of files and replace characters with other characters or symb peter88 Linux - General 2 12-10-2006 03:05 AM
Crash, Crash, Crash, Crash and You Guessed it Crash! little_penguin SUSE / openSUSE 8 07-04-2005 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration