LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
Search this Thread
Old 06-30-2010, 04:10 PM   #1
bgraybr
LQ Newbie
 
Registered: Aug 2009
Posts: 21

Rep: Reputation: 15
Create iso images with long filenames


I have an old game, and I want to back up the disk because its old and a little scratched. I tried to use dd to record the disk, but it crashes with an "i/o error", which is strange because I can read the files on the cd without any problem.

Luckily, I found all of the files from the disk already backed up on my hard drive. The problem is, when I create an iso image using mkisofs it abbreviates all of the filenames... which makes the game not... run. So how do I create an iso image with long filenames?
 
Old 06-30-2010, 04:52 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
As much as I understand it, the iso9660 filesystem itself is limited to relatively short filenames. But long filenames and ownership/permissions are generally provided by two sets of extensions to the standard. Microsoft systems use what are called the "Joliet" extensions, and Unix-based ones use "Rock Ridge". The Rock Ridge extensions also include a provision for optional trans.tbl files in each subdirectory, which allows for extending it even further. They can all co-exist on a single disk. The genisoimage should explain these options.
 
Old 06-30-2010, 05:24 PM   #3
FredL2
Member
 
Registered: Feb 2005
Location: Uppsala, Sweden
Distribution: Arch Linux
Posts: 30

Rep: Reputation: 15
In short, for a Windows CD, use

mkisofs -J filename.iso path

For a Linux CD, use

mkisofs -R filename.iso path

Making it with -J makes the disc readable on both Windows and Linux systems, so go with that.
 
Old 06-30-2010, 06:14 PM   #4
bgraybr
LQ Newbie
 
Registered: Aug 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by FredL2 View Post
In short, for a Windows CD, use

mkisofs -J filename.iso path

For a Linux CD, use

mkisofs -R filename.iso path

Making it with -J makes the disc readable on both Windows and Linux systems, so go with that.

Tried that, worked for most files, but about 30 files were still renamed for some reason.

Heres the complete output:
Code:
bgraybr@bgraybr-desktop:/media/D6D6-D48D/Games/Quake2$ mkisofs -J -R -o Quake2.iso CD
I: -input-charset not specified, using utf-8 (detected in locale settings)
Using INTEL000.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief_enemy.html (intel_brief8.html)
Using INTEL001.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief8.html (intel_brief7.html)
Using INTEL002.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief7.html (intel_brief6.html)
Using INTEL003.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief6.html (intel_brief5.html)
Using INTEL004.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief5.html (intel_brief4.html)
Using INTEL005.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief4.html (intel_brief3.html)
Using INTEL006.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief3.html (intel_brief2.html)
Using INTEL007.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/intel_brief2.html (intel_brief.html)
Using ENEMY000.HTM;1 for  CD/Install/Data/DOCS/quake2_manual/enemy_tank_commander.html (enemy_tank.html)
Using STROG000.JPG;1 for  CD/Install/Data/DOCS/quake2_manual/images/strogg_environ_3.jpg (strogg_environ_2.jpg)
Using STROG001.JPG;1 for  CD/Install/Data/DOCS/quake2_manual/images/strogg_environ_2.jpg (strogg_environ_1.jpg)
Using MULTI000.GIF;1 for  CD/Install/Data/DOCS/quake2_manual/images/multiplayer_screen1.gif (multiplayer_menu1.gif)
Using MANUA000.JPG;1 for  CD/Install/Data/DOCS/quake2_manual/images/manual_bottom.jpg (manual_back.jpg)
Using MACHI000.GIF;1 for  CD/Install/Data/DOCS/quake2_manual/images/machinegun_guard.gif (machinegun.gif)
Using STILE000.PCX;1 for  CD/Install/Data/baseq2/players/female/stiletto_i.pcx (stiletto.pcx)
Using POINT000.PCX;1 for  CD/Install/Data/baseq2/players/male/pointman_i.pcx (pointman.pcx)
Using NIGHT000.PCX;1 for  CD/Install/Data/baseq2/players/male/nightops_i.pcx (nightops.pcx)
Using HOWIT000.PCX;1 for  CD/Install/Data/baseq2/players/male/howitzer_i.pcx (howitzer.pcx)
Using CLAYM000.PCX;1 for  CD/Install/Data/baseq2/players/male/claymore_i.pcx (claymore.pcx)
  2.74% done, estimate finish Wed Jun 30 18:13:34 2010
  5.48% done, estimate finish Wed Jun 30 18:13:34 2010
  8.22% done, estimate finish Wed Jun 30 18:13:34 2010
 10.96% done, estimate finish Wed Jun 30 18:13:34 2010
 13.69% done, estimate finish Wed Jun 30 18:13:34 2010
 16.44% done, estimate finish Wed Jun 30 18:13:34 2010
 19.17% done, estimate finish Wed Jun 30 18:13:34 2010
 21.91% done, estimate finish Wed Jun 30 18:13:34 2010
 24.65% done, estimate finish Wed Jun 30 18:13:34 2010
 27.39% done, estimate finish Wed Jun 30 18:13:34 2010
 30.12% done, estimate finish Wed Jun 30 18:13:34 2010
 32.87% done, estimate finish Wed Jun 30 18:13:34 2010
 35.60% done, estimate finish Wed Jun 30 18:13:34 2010
 38.34% done, estimate finish Wed Jun 30 18:13:34 2010
 41.08% done, estimate finish Wed Jun 30 18:13:34 2010
 43.82% done, estimate finish Wed Jun 30 18:13:34 2010
 46.56% done, estimate finish Wed Jun 30 18:13:34 2010
 49.30% done, estimate finish Wed Jun 30 18:13:34 2010
 52.03% done, estimate finish Wed Jun 30 18:13:34 2010
 54.77% done, estimate finish Wed Jun 30 18:13:34 2010
 57.51% done, estimate finish Wed Jun 30 18:13:34 2010
 60.25% done, estimate finish Wed Jun 30 18:13:34 2010
 62.99% done, estimate finish Wed Jun 30 18:13:34 2010
 65.73% done, estimate finish Wed Jun 30 18:13:34 2010
 68.46% done, estimate finish Wed Jun 30 18:13:34 2010
 71.20% done, estimate finish Wed Jun 30 18:13:34 2010
 73.94% done, estimate finish Wed Jun 30 18:13:34 2010
 76.68% done, estimate finish Wed Jun 30 18:13:34 2010
 79.41% done, estimate finish Wed Jun 30 18:13:34 2010
 82.16% done, estimate finish Wed Jun 30 18:13:34 2010
 84.89% done, estimate finish Wed Jun 30 18:13:34 2010
 87.63% done, estimate finish Wed Jun 30 18:13:34 2010
 90.37% done, estimate finish Wed Jun 30 18:13:34 2010
 93.11% done, estimate finish Wed Jun 30 18:13:34 2010
 95.84% done, estimate finish Wed Jun 30 18:13:34 2010
 98.59% done, estimate finish Wed Jun 30 18:13:34 2010
Total translation table size: 0
Total rockridge attributes bytes: 51845
Total directory bytes: 98304
Path table size(bytes): 262
Max brk space used 82000
182590 extents written (356 MB)
 
Old 06-30-2010, 09:34 PM   #5
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,764

Rep: Reputation: 192Reputation: 192
Quote:
I tried to use dd to record the disk, but it crashes with an "i/o error
dd is a bitstream duplicator. It will duplicate the disk if it a data disk and you have it mounted.
Post the dd sytax you were using and the error you get.
It can also dd the contents of directories and make an .iso out of it.
http://www.linuxquestions.org/questi...ommand-362506/

Last edited by teckk; 06-30-2010 at 09:36 PM.
 
Old 06-30-2010, 10:15 PM   #6
bgraybr
LQ Newbie
 
Registered: Aug 2009
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by teckk View Post
dd is a bitstream duplicator. It will duplicate the disk if it a data disk and you have it mounted.
Post the dd sytax you were using and the error you get.
It can also dd the contents of directories and make an .iso out of it.
http://www.linuxquestions.org/questi...ommand-362506/
It is a data CD and it was mounted. Here is the exact command/output.
I will try using the dd command.
Code:
bgraybr@bgraybr-desktop:~$ dd if=/dev/sr0 of=Quake2.iso
dd: reading `/dev/sr0': Input/output error
730264+0 records in
730264+0 records out
373895168 bytes (374 MB) copied, 89.5761 s, 4.2 MB/s
When the iso is mounted, it is completely empty (no files or directories)
 
Old 07-01-2010, 03:23 AM   #7
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I usually run:

Code:
mkisofs -o output.iso -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 /input/files
It should give you the largest filenames it can support.
 
Old 07-01-2010, 08:28 AM   #8
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,764

Rep: Reputation: 192Reputation: 192
Don't know if I am helping you but I'm interested how you solve this. I think long file name support is maybe the problem. I've always used dd to make an .iso with long file names though.

Quote:
dd: reading `/dev/sr0': Input/output error
Are you sure that you have that right?

I am on a BSD box so it will be slightly different but here it what I get. The dvd is already mounted.
Code:
$ mount
/dev/ad0s2a on / (ufs, local)
devfs on /dev (devfs, local)
/dev/acd0 on /cdrom (cd9660....
Code:
$ ls /cdrom
Abbott and Costello - 1942 - Pardon My Sarong.avi
Abbott and Costello - 1942 - Ride 'Em Cowboy.avi
Abbott and Costello - 1942 - Who Done It.avi
Abbott and Costello - 1943 - Hit The Ice.avi
Abbott and Costello - 1944 - In Society.avi
Abbott and Costello - 1945 - Here Come The Co-Eds.avi
Code:
dd if=/dev/acd0 of=costello.iso bs=2048
^C50315+0 records in
50315+0 records out
103045120 bytes transferred in 32.315507 secs (3188721 bytes/sec)
I stopped it after 30 seconds.

Code:
mount -o loop /path/costello.iso /mounting/point
or file roller etc. gives me the contents.

Code:
cat /dev/sr0 > nameofiso.iso
Should make an .iso too

Code:
mkisofs -r -R -J -l -L -o /path/cd-iso-image-file.iso /mnt/cdrom
mkisofs example.

Code:
cdrecord -v speed=16 dev=ATA:1,0,0 /tmp/cd-iso-image-file.iso
cdrecord example. Or use k3b or your favorite burner front end to do the job.

http://www.yolinux.com/TUTORIALS/Lin...ialCDBurn.html
http://www.linuxquestions.org/questi...ommand-362506/

Good luck.

Last edited by teckk; 07-01-2010 at 08:32 AM. Reason: code tags and proofread
 
  


Reply


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
why create dvd from 4 iso cd images sadok Linux - Software 1 08-29-2007 08:34 AM
how create dvd from 4 iso cd images sadok Linux - Software 1 08-29-2007 03:48 AM
How do I create a CD from iso images? Jayce21 Linux - Newbie 3 12-12-2005 10:12 PM
How to create ISO images from CD? Lockheed Linux - General 7 03-23-2005 11:46 PM
Can't create ISO images from audio CDs rparkes Linux - General 8 07-15-2003 11:56 AM


All times are GMT -5. The time now is 01:58 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