Coming from a Mac OSX environment, I have directory/folder names with the first character of each word
in upper-case, as well as their content, i.e., artists/songs. This is how things were copied to DVD. However,
when I copied everything off DVD to my Linux disk, everything was changed to lower-case, which is really
irritating. WHY DOES LINUX DO THIS?
I should also add that most people do not experience case conversion because their Linux CDs have Rock Ridge extension enabled which allows the original filename to be seen. It’s not clear how the OP made his DVD, perhaps with a mastering program that didn’t put RR extension on the DVD or perhaps using HFS extensions instead.
Actually it’s a bit more subtle than that. Here’s what the man 8 mount says about iso9660 options:
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.)
So if the OP’s DVD has no RR extensions, map=off might not be much better, instead of getting
myfavouritesong.mp3
he might get
MYFAVOURITESONG.MP3;1
In other words the mixed case information might have been lost if he didn’t burn with RR or HFS extensions enabled.
mount -o man=o /dev/cdrom
mount: only root can do that
sudo mount -o man=o /dev/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
After the above, the contents of the cdrom were still all lower-case.
When I first got on Linux, I added the following line to /ect/fstab so I could mount the drive:
/dev/cdrom /media/cdrom iso9660 ro,user,noauto,unhide 0 0
Any further suggestions?
Oh, BTW, on Mac OSX (which is NFS extended) I just inserted a blank DVD in the drive
and dragged and dropped on it what I wanted copied, and then clicked BURN.
on Mac OSX (which is NFS extended) I just inserted a blank DVD in the drive
Blank media does not have a filesystem. By default openSuSE KDE offers a choice of creating an audio or data disc when it “sees” a new blank CD/DVD. I could change the default for a blank DVD insertion to automatically open it with a media burner, but I would rather have a choice.
Hmm, looks like even with map=off and norock, upper to lower translation is done.
Suggest you run isoinfo to display the metadata of the DVD:
isoinfo -i /dev/cdrom -d
should get you something like this:
CD-ROM is in ISO 9660 format
System id: LINUX
Volume id: CDROM
Volume set id:
Publisher id:
Data preparer id: 2007-08-05 10:40 UTC
Application id: MKISOFS ISO 9660/HFS FILESYSTEM BUILDER & CDRECORD CD-R/DVD CREATOR (C) 1993 E.YOUNGDALE (C) 1997 J.PEARSON/J.SCHILLING
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 313433
Joliet with UCS level 3 found
Rock Ridge signatures version 1 found
isoinfo -i /dev/cdrom -d
CD-ROM is in ISO 9660 format
System id: APPLE COMPUTER, INC., TYPE: 0002
Volume id: MUSIC1OF626AUG11
Volume set id:
Publisher id:
Data preparer id:
Application id:
Copyright File id:
Abstract File id:
Bibliographic File id:
Volume set size is: 1
Volume set sequence number is: 1
Logical block size is: 2048
Volume size is: 1999822
Joliet with UCS level 1 found
Rock Ridge signatures version 1 found
Hmm, you do have RR extensions, so you should have the original names in the RR record. Sorry, too strange for me. What do you see when you mount the DVD on another OS, say Windows? That would use the Joliet extension.
BTW, you do know that Apple filesystems are by default case-insensitive, although case-preserving? That is to say, you cannot have two files called FooBar and foobar in the same directory. I discovered this the hard way with subversion.
I just tested this. What a pain finding a data CD without Rock Ridge extensions. I eventually found a Microsoft WindowsNT SDK (1992)
mount -t iso9660 -o ro,nosuid,nodev,relatime,uid=1001,gid=100,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks,**map=normal** /dev/sr0 /media/
umount /media
mount -t iso9660 -o ro,nosuid,nodev,relatime,uid=1001,gid=100,iocharset=utf8,mode=0400,dmode=0500,uhelper=udisks,**map=off** /dev/sr0 /media/
umount /media
“map=on” is invalid
“map=normal” translates everything to lower case e.g. “file:///media/mips/40291730.ppd”
“map=off” shows everything as upper case e.g. “file:///media/MIPS/40291730.PPD;1”
map undefined == map=normal
From an old Linux distribution:
With Rock Ridge extensions both “map=normal” and “map=off” give mixed case e.g. “file:///media/distributions/MCC/1.0+/documentation/MCC.README.install”
I have just remembered a long tortured telephone conversation I had with someone (I think a Microsoft user) who had been sent a bunch of files by one of my clients. Our confusion was the result of the recipient’s system displaying all file-names in “normal case” i.e. with capitalised initial letters, irrespective of the actual file-name. I wonder if the OP’s CD was written in lower case, but the OSX viewing program is displaying it with capitalised initials?
rderosier wrote:
> After the above, the contents of the cdrom were still all lower-case.
>
> Any further suggestions?
Everybody is concentrating on completely solving the problem, which is
undoubtedly the ideal solution.
But just in case a workaround is acceptable, I wanted to point out that
it is trivial to write a script to rename all the files and directories
using an upper case first letter.