Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-10-2007, 06:37 AM   #1
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Rep: Reputation: 30
Reading a CD with filenames greater than 8 chars

Hi all

How do I mount my CD so that I can read the file names stored on the cd as the actual names and not truncated to 8chars max. EG a file will contain the name IL2Sturmovik and it will appear as ILStur~k.

This is my fstab: Code:
/dev/hda1 /boot ext2 defaults,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/hdb /mnt/cdrom iso9660 noauto,exec,ro,user,umask=000,unhide 0 0
/dev/hdb /mnt/dvd iso9660 noauto,exec,ro,user,unhide 0 0
/dev/hdc1 /mnt/spare ext3 defaults,noatime 0 1
#/dev/fd0 /mnt/floppy auto noauto 0 0

I tried CDFS but that did not work as well.

I also tried mount -t iso9660 and no good.
uname -a gives: Code:

Linux archimedes 2.6.22-gentoo-r5 #2 SMP Sun Sep 23 18:01:03 EST 2007 i686 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux

Thanks for your help!
Old 10-10-2007, 07:34 AM   #2
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Most CDs are encoded with ISO9660, which is a standard format for CDs. Unfortunately, it only supports DOS-type 8.3-style filenames.

From Wikipedia:
There are common extensions to ISO 9660 to deal with the limitations. Rock Ridge supports the preservation of Unix-style permissions and longer ASCII-coded names; Joliet supports names stored in Unicode, thus allowing almost any character to be used, even from non-Latin scripts; El Torito enables CDs to be bootable on PC; Apple ISO9660 Extensions adds support for Mac OS specific file properties such as Resource forks, file backup date and more.

ISO 13490 is basically ISO 9660 with multisession support.

For operating systems which do not support any extensions, there is a name translation file TRANS.TBL. It should be located in each directory, including root directory. Now obsolete.
Basically you need to use either Rock Ridge or Joilet extensions on your system (depending on which was used to create the CD).
If you are burning the CDs yourself, you will need to make sure that the appropriate extension is also turned on in your CD burner. If the CD isn't burnt with Rock Ridge or Joilet in the first place, then the full filenames won't be written back to the CD and you won't be able to read them back no matter what you do.
Old 10-10-2007, 05:11 PM   #3
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30

Thanks for replying.
I can see all the full file names in Window$ OK, just in Linux I cannot see the full file names, it gets trucated to 8 chars max. So do i need to look at my kernel configurations?

Old 10-10-2007, 05:38 PM   #4
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
1. Make sure you have rock ridge and joilet extensions built into your kernel. If you are using a distro then more then likely it will already be there.

2. Mount the disk with auto this I think will solve the issue.
Old 10-11-2007, 02:37 AM   #5
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30

Yes you are correct - I didnt have Joliet extensions enabled in my kernel.

Thanks alot for your reponses.



cd, iso9660

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
BASH: Reading long filenames into an array using a loop DaneM Programming 12 09-11-2009 07:24 AM
bash, filenames, special chars zomane Programming 3 06-15-2007 04:55 AM
80x25 and Greater... SpEcIeS Debian 4 02-07-2005 11:10 AM
Reading CD with Joliet Filenames? elbows Linux - General 5 07-27-2004 02:25 PM
No Greater Gift ... moorege Member Intro 0 08-24-2003 01:02 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:21 PM.

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