LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 10-10-2007, 06:37 AM   #1
shazam75
Member
 
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
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 65
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: http://en.wikipedia.org/wiki/ISO_9660#Extensions
Quote:
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
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30
Hi

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?

thanks
Shelton.
 
Old 10-10-2007, 05:38 PM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,469

Rep: Reputation: 64
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
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30
Hi

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

Thanks alot for your reponses.

Shelton.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 LinuxQuestions.org Member Intro 0 08-24-2003 01:02 PM


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

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