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
  Search this Thread
Old 04-22-2006, 06:38 AM   #1
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Rep: Reputation: 30
mkisofs having problems with file names


I'm trying to burn some DVD's but when I use mkisofs it thinks that some of my old names are still part of the file name. It lists it as follows.

Filename (Old File Name)

It then insists that the name length is too long and renames them. How do I solve this problems?
 
Old 04-22-2006, 11:27 AM   #2
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Show the command you're using to run mkisofs, and the output.

Also, for DVDs, growisofs (often packaged as "dvd+rw-tools" even though it works on other DVD media) is better than mkisofs.
 
Old 04-22-2006, 09:55 PM   #3
binarybob0001
Member
 
Registered: Dec 2004
Distribution: Debian Wheezy
Posts: 444

Original Poster
Rep: Reputation: 30
Well, I spoke too soon. After I burnt the image, all the files were named correctly. I'm not sure what mkisofs was doing. Also, I was encrypting the data, so I had to send the output to my loopback device.

By the way, I asked about making fully encrypted CD's before, but no one had an answer. Well, I figured it out. Please let me know if this helps you.

touch /PathToEncrypted/file.iso
dd if=/dev/urandom of=/PathToEncrypted/file.iso bs=1M count=$size

These two commands make a .iso image filled with random bits. You will need to calculate before hand how large of a .iso file you will need.

losetup -T -e aes256 /dev/loop1 /PathToEncrypted/file.iso

Start your cryptographic loop. The -T option makes it ask for your password twice.

mkisofs -r -v -o /dev/loop1 -graft-points "/=./directory"

This will take all contents in the directory specified (assuming we placed these files in the current working directory) and runs them through the loopback.

mount -t iso9660 -o loop=/dev/loop2 /dev/loop1 /mnt/cdrom

This will mount file.iso. From here you can look through the contents.

umount /mnt/cdrom
losetup -d /dev/loop1

Unmount and kill the encrypted loopback so we can burn without the risk of modifications during the burn process.

growisofs -Z /dev/hdd=file.iso

This will burn the encrypted image. To mount the image do the following

losetup -e aes256 /dev/loop1 /dev/cdrom
mount -t iso9660 /dev/loop1 /mnt/cdrom

It may be complicated, but it is still totally cool.
 
Old 04-22-2006, 10:10 PM   #4
ataraxia
Member
 
Registered: Apr 2006
Location: Pittsburgh
Distribution: Debian Sid AMD64
Posts: 296

Rep: Reputation: 30
Quote:
Originally Posted by binarybob0001
Well, I spoke too soon. After I burnt the image, all the files were named correctly. I'm not sure what mkisofs was doing.
Probably it was building the translation table for old ISO-9660 drivers that don't understand long filenames. If you were somehow able to mount this disc on a system that didn't support RockRidge extensions you'd see those other (short) names.
 
  


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
Problem with mkisofs (can't produce an ISO file) joao.m.esteves Linux - Software 0 02-28-2006 02:02 PM
Problems with Fat long file names in Bash brett90 Slackware 5 06-03-2005 01:15 PM
2 GB file limit when creating an image with mkisofs ccasares Linux - Newbie 5 12-26-2004 08:48 PM
mkisofs, is there a max file size limitation? tsw Linux - Software 4 07-27-2004 05:10 PM
mkisofs can't read existing DOS file. breany Linux - Software 2 01-29-2004 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:35 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration