>"Shaun Amy, CSIRO TIP/ATNF" wrote:
>> >A couple weeks ago I got a CD-RW drive, and decided to try it out under
>> >all the different OS's I use. In FreeBSD, the only way (it seems) to use
>> >it, is grab a bunch of stuff you want to backup/record and use mkisofs and
>> >cdrecord to dump it onto a CD.  Everything I read seemed to indicate that
>> >this method limits you to the 8.3 filename format of iso9660 and all
>> >Rockridge does is add file/group permissions and ownership.  is there any
>> >CD recording utilities/formats that can do long filenames (hopefully with
>> >Unix permissions)?
>> 
>> This is not correct.  The initial ISO9660 standard did specify the 8.3 forma
>t
>> but there are now extensions that do what you describe.  Recent versions of 
>> "mkisofs" support RockRidge (long filename under UNIX support) and Joliet 
>> (MS long filename support) so you are not restricted to the 8.3 format.  I 
>> wrote a couple of CDs the other day under FreeBSD (3.4-STABLE) using 
>> "mkisofs" with RockRidge support and the long filenames work fine.  As this 
>> was data from a UNIX system I wasn't concerned with Windows support.
>
>Not quite. According to mkisofs(1):
>
>       -l     Allow full 32 character  filenames.   Normally  the
>              ISO9660  filename will be in an 8.3 format which is
>              compatible with MS-DOS,  even  though  the  ISO9660
>              standard  allows  filenames of up to 32 characters.
>              If you use this option, the disc may  be  difficult
>              to  use on a MS-DOS system, but this comes in handy
>              on some other systems (such  as  the  Amiga).   Use
>              with caution.
>
>It's depressing to see just how long the legacy of MS-DOS persists. :-(
>The ISO9660 format supports 32 chars, but since nearly everything uses 8.3
>to be readable by MSCDEX and windoze, the 32 character names are rarely
>implemented or well tested.

Ah, I was thinking along the lines of:

       -J     Generate Joliet directory records  in  addition  to
              regular iso9660 file names.  This is primarily use-
              ful when the discs are to be used on Windows-NT  or
              Windows-95  machines.    The  Joliet  filenames are
              specified in Unicode and each path component can be
              up to 64 Unicode characters long.

and

       -R     Generate SUSP and RR records using the  Rock  Ridge
              protocol  to  further  describe  the  files  on the
              iso9660 filesystem.

       -r     This is like the -R option, but file ownership  and
              modes  are  set to more useful values.  The uid and
              gid are set to zero, because they are usually  only
              useful  on  the  author's system, and not useful to
              the client.  All the file read bits are  set  true,
              so that files and directories are globally readable
              on the client.  If any execute bit  is  set  for  a
              file, set all of the execute bits, so that executa-
              bles are globally executable on the client.  If any
              search  bit  is set for a directory, set all of the
              search  bits,  so  that  directories  are  globally
              searchable  on  the  client.   All  write  bits are
              cleared, because the CD-Rom will be  mounted  read-
              only  in any case.  If any of the special mode bits
              are set, clear them, because  file  locks  are  not
              useful  on a read-only file system, and set-id bits
              are not desirable for uid 0 or gid 0.

This is from the man page for 1.12b5 of "mkisofs", which does have a rather
large number of options :-)

So you may well be correct Peter and probably have a lot more experience 
than I do with this having only had a CD-R/CD-RW for a bit over a week on my
home systems although we have had them for some time at work.

Regards, Shaun.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to