LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   growisof : file names on DVD are in ALL CAPS (https://www.linuxquestions.org/questions/linux-newbie-8/growisof-file-names-on-dvd-are-in-all-caps-742669/)

vaibhavs 07-25-2009 03:39 AM

growisof : file names on DVD are in ALL CAPS
 
Hi,

I am using the following command to write data to DVD:

Code:

growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 -V $DATE $(sed 's/\n/ /g' /Backups/scripts/DVDBackupList.txt)

Everything is working fine, but the file names (of all files and folders) on DVD are in ALL CAPS.

If and when I restore data from DVD to server, I have a difficult time resetting the file names as it originally was.


I checked on google, but could not find any info.

Please suggest what I may be doing wrong and how to correct.

Thx
Vai

catkin 07-26-2009 05:57 AM

Hello vaibhavs :)

From the genisoimage man page: With all ISO9660 levels from 1 to 3, all filenames are restricted to uppercase letters ..

Best

Charles

vaibhavs 07-27-2009 03:24 AM

@catkin, yes, the man pages talks about this.

But I am damn confused with the options, --allow-lower, 8.3 format, multiple dots format and lots of other options.

Someone please help me with the appropriate syntax which will help me reproduce the exact files names as on the linux box (be it 8.3 or multiple dot or small case, large case or mixed case).

Please help!!

Thx
Vai

catkin 07-27-2009 03:35 AM

Hello Vai :)
Quote:

Originally Posted by vaibhavs (Post 3621389)
@catkin, yes, the man pages talks about this.

But I am damn confused with the options, --allow-lower, 8.3 format, multiple dots format and lots of other options.

Someone please help me with the appropriate syntax which will help me reproduce the exact files names as on the linux box (be it 8.3 or multiple dot or small case, large case or mixed case).

I cannot fully answer your question, having only used growisofs with simple filenames, not the full range you are asking for, but I can tell you that where your command includes -iso-level 2 it is guaranteed not to give you what you want! Try changing to -iso-level 4 and see if that does all you want.

There's one limit you may not be able to get around and that is maximum path length. That's "path" as in directory names followed by file name. The limit on DVDs is smaller than on Linux. A workaround is to put all the files into an archive and put the archive file on the DVD. Common archivers: tar, cpio, dar.

Best

Charles

vaibhavs 07-27-2009 03:53 AM

Quote:

Originally Posted by catkin (Post 3621398)
I can tell you that where your command includes -iso-level 2 it is guaranteed not to give you what you want!

The man page says this:

With all ISO9660 levels from 1 to 3, all filenames are restricted to uppercase letters, numbers and underscores (_).

For certain reasons, I wish to backup directory structures as it is, and not put them into archives.

I am stuck!!!

Please help someone...


Thx
Vai

catkin 07-27-2009 06:40 AM

Hello Vai :)
Quote:

Originally Posted by vaibhavs (Post 3621409)
For certain reasons, I wish to backup directory structures as it is, and not put them into archives.

That may not be possible; what then?

Quote:

Originally Posted by vaibhavs (Post 3621409)
I am stuck!!!

Please help someone...

No you are not. You could read a little further in the man page or you could try what I suggested about iso-level.

Regards getting the most out of LQ ... People who answer posts are completely free to do so or not. What do you think motivates them most? Your distress? Your need to be spoon fed? Or that you have made a sincere effort to solve your problem including trying advice given?

Best

Charles

neonsignal 07-27-2009 09:35 AM

an argument for a different archive solution
 
Quote:

I wish to backup directory structures as it is, and not put them into archives
Unfortunately transferring from one file system to another will always involve some loss of information because of incompatibilities (you might be able to live with that). For example, the ISO file systems are going to lose much of the permission information on the files being backed up from the hard disk. That is what motivates people to use archive formats for backup.

One middle road solution is to use something like squashfs. You can create a single archive which is burnt onto the DVD, but this can then be mounted via loopback as if it were a real device (so that from the point of view of the system accessing the backup, it looks like a normal linux filesystem, even though it is actually an archive on a DVD).


All times are GMT -5. The time now is 11:39 AM.