LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   mkisofs -iso-level 1 converts to lower case instead of upper case. (http://www.linuxquestions.org/questions/slackware-14/mkisofs-iso-level-1-converts-to-lower-case-instead-of-upper-case-840928/)

stf92 10-28-2010 06:28 AM

mkisofs -iso-level 1 converts to lower case instead of upper case.
 
Kernel 2.6, Slackware 12.0
mkisofs 2.01

Hi:
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.
Quote:

-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.
Code:

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*
root@darkstar:~#

Why do I see the file name in lower case? Any hint would be welcome. Thanks.

EDIT:
the file system in the hard disk is ext2.

dive 10-28-2010 08:04 AM

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.

Martinezio 10-28-2010 08:24 AM

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:
Quote:

map={n[ormal]|o[ff]|a[corn]}
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
present.
Default maping is to lowercase ASCII.

stf92 10-29-2010 01:32 AM

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
Code:

root@darkstar:~# ls /xp/chesstorrent/chesslibrary/C.*
/xp/chesstorrent/chesslibrary/C.\ J.\ S.\ Purdy\ -\ Action\ Chess\ -\ Purdy's\ 24\ Hours\ Opening\ Repertoire.djvu*
root@darkstar:~#

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.


All times are GMT -5. The time now is 11:07 AM.