Score:0

why is genisoimage output all caps?

ng flag

i ran this command

genisoimage -o OS.iso dir_iso

I have this input

dir_iso
    /boot
        /grub
            grub.cfg
        OS.bin

But getting

OS.iso
    /.              //note - don't know why this directory is coming, need help for this one also
    /BOOT
        /GRUB
            GRUB.CFG
        OS.BIN

How to fix?

EDIT

note that the contents of the files are not changed.

vanadium avatar
cn flag
Not sure why you added the tag "kernel"?
user135142 avatar
ng flag
I need to verify the output of my kernel.
Score:0
cn flag

genisoimage creates ISO9660/Joliet/HFS file systems. You may have created an ISO9660 system, a common denominator that could be read by most hardware. Each file written to the ISO9660 filesystem must have a filename in the 8.3 format (up to 8 characters, period, up to 3 characters, all uppercase). Hence your caps.

/. symbolizes the current directory.

To allow longer file names and lowercase, you have to provide additonal command line options to have genisoimage create the additional filesystem metadata needed for Joliet, Rock Ridge or Apple ISO 9660, which are extensions on the restrictive ISO9660 file system allowing for long file names, extended characters and file permissions. Use the -J option to generate Joliet directory records (Unicode, allowing non-Latin scripts to be used), and/or -R to include the Rock Ridge extension (Unix-style permissions and longer names). See man genisoimage for all options.

user135142 avatar
ng flag
Yes, but want to prevent genisoimage from putting all filenames in uppercase
vanadium avatar
cn flag
Question title sounds different. Still, I added some info on how to write long names.
user135142 avatar
ng flag
Ok, I'll try "-j".
user135142 avatar
ng flag
thanks alot @vanadium !
user135142 avatar
ng flag
one small note for future readers, genisoimage said something about this "rock ridge". to solve it, use "-R".
vanadium avatar
cn flag
Thank you! I included this in the answer, and clarified that we are adding extensions to the ISO format to support long names, etc.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.