Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-28-2010, 06:28 AM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,646

Rep: Reputation: 51
mkisofs -iso-level 1 converts to lower case instead of upper case.

Kernel 2.6, Slackware 12.0
mkisofs 2.01

I do 'mkisofs -iso-level 1 -o image John\ Smith.txt'. Only an example. When I mount image, ls outputs john_smi.txt. So it has shorten to 8.3 and translated ' ' into '_'. This is in accordance with the manual, although it doesn't say the conversion will be done.
-iso-level level
With all iso9660 levels from 1..3, all filenames are restricted to upper case letters, numbers and the underscore (_).
However, as it did not reject the file name, it should have converted it to all upper case, it seems to me. And -iso-level 2|3 does the same thing.
root@darkstar:~# mkisofs -iso-level 1 -o image John\ Smith.txt
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
174 extents written (0 MB)
root@darkstar:~# mount -tiso9660 -o loop image /mnt
root@darkstar:~# ls -l /mnt
total 0
-r-xr-xr-x 1 root root 0 2010-10-28 05:43 john_smi.txt*
Why do I see the file name in lower case? Any hint would be welcome. Thanks.

the file system in the hard disk is ext2.

Last edited by stf92; 10-28-2010 at 06:32 AM.
Old 10-28-2010, 08:04 AM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,299

Rep: Reputation: 321Reputation: 321Reputation: 321Reputation: 321
It may have both upper and lower case directory names and linux is seeing the lower. You'd need to test on a windows/dos machine to see if it's correct I think.

Not entirely sure but I've seen some of mine have both upper/lower.
Old 10-28-2010, 08:24 AM   #3
Registered: May 2009
Location: Warsaw, Poland
Distribution: Slackware64-current
Posts: 191

Rep: Reputation: 32
I think, that this is done by default options of mount. Try to force specified behaviour of name mangling by mount.
It should be done by map option using iso9660

From the manpage of mount:
For non-Rock Ridge volumes, normal name translation maps upper to lower case ASCII, drops a trailing `;1', and converts `;' to `.'. With
map=off no name translation is done. See norock. (Default: map=normal.) map=acorn is like map=normal but also apply Acorn extensions if
Default maping is to lowercase ASCII.
Old 10-29-2010, 01:32 AM   #4
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,646

Original Poster
Rep: Reputation: 51
Yes, I see if I mkisofs -r -iso-level 1 ..., I'll have an entry in 8.3 format but also one that conforms to Rock Ridge. And I did not remember checking the mount manual, with the iso9660 options. So thank you both of you.

I was experimenting, because there are files with names such as
root@darkstar:~# ls /xp/chesstorrent/chesslibrary/C.*
/xp/chesstorrent/chesslibrary/C.\ J.\ S.\ Purdy\ -\ Action\ Chess\ -\ Purdy's\ 24\ Hours\ Opening\ Repertoire.djvu*
that I'd like to burn into optical media, providing for max compatibility between operating systems. But those apostrophes, exclamation signs and the like, plus names longer than 64 chars make me a little afraid. Ciao.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Upper and lower case in shell kofucii Linux - Newbie 2 12-12-2009 09:24 AM
renaming directories from upper case to lower case, help!! linux_teller Linux - Newbie 3 03-07-2008 06:15 AM
Why are all my upper case files being shown as lower case?? [Kernel 2.6.9-1.667 FC3] t3gah Fedora 4 03-11-2005 05:09 PM
Lower case to upper case letter sudhasmyle Programming 1 12-03-2004 05:15 AM
Apache and upper or lower case. dsiguy Linux - General 3 02-04-2003 12:02 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:42 AM.

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