Re: mkisofs options question

2003-12-24 Thread Lowell Gilbert
Charles Howse <[EMAIL PROTECTED]> writes:

> -rw-r--r--  1 root  wheel  -9839 Dec 24 02:09 CUSTOM

Oh.  I thought those "CUSTOM" entries were directories.  Never mind my
confusion.  

Try to picture what's happening:  It's creating a root directory for
the CD-ROM, and you're telling it to put in the contents of two
different directories.  Both of those directories have a file by the
name of "CUSTOM".  Which one is it supposed to use?  It can't tell, so
it throws up its hands, gives up, and complains.

One way you could handle this is by making each of your candidate
directories a sub-directory on the CD-ROM.  mkisofs has a concept of
"graft points" which may be the easiest way to do this.  The syntax
would be something like: 
 mkisofs -U -R curly/=/disk2/curly larry/=/disk2/larry
[untested]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mkisofs options question

2003-12-24 Thread Charles Howse
On Wednesday 24 December 2003 10:10 am, Dan Nelson wrote:
> In the last episode (Dec 24), Charles Howse said:
> > I have some directories that I need to include in a .iso file. I've
> > followed the online Handbook section 12.5.2, and read man mkisofs.
> >
> > The directories each have the file CUSTOM in them.
> > That causes mkisofs to error:
> >
> > [EMAIL PROTECTED] ~]# mkisofs -U -R -o /tmp/cdimg.iso /disk2/curly /disk2/larry
> > Warning: creating filesystem that does not conform to ISO-9660.
> > Using CUSTOM000 for  /CUSTOM (CUSTOM)
> > mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the
> > same Rock Ridge name 'CUSTOM'. mkisofs: Error: '/disk2/larry/CUSTOM' and
> > '/disk2/curly/CUSTOM' have the same Rock Ridge name 'CUSTOM'. mkisofs:
> > Unable to sort directory
> >
> > What are the proper options for mkisofs so that I can have identical
> > filenames in different directories?
>
> They are in the same directory.  Remember that when you pass mkisofs a
> list of directories, their contents are combined to create the CD.  you
> can't have duplicates, though. /disk2/larry/CUSTOM and
> /disk2/curly/CUSTOM both map to "/CUSTOM" on the cdrom. If you really
> wanted the cdrom to contain two subdirectories named "/larry" and
> "/curly", try passing just "/disk2" to mkisofs, or if there are other
> directories in disk2, create a /disk2/cdrom, move larry and curly into
> there, and run "mkisofs /disk2/cdrom".

OK, I restructured /disk2 as you suggested, it works now.  Thanks!

-- 
Thanks,
Charles
http://howse.homeunix.net:8080

Random Murphy's Law:
The one wrench or drill bit you need will be the one
missing from the tool chest.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mkisofs options question

2003-12-24 Thread Ariff Abdullah


On Wed, 24 Dec 2003 10:30:35 -0600
Charles Howse <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] ~]# mkisofs -U -R -o /tmp/cdimg.iso /disk2/curly
> /disk2/larry Warning: creating filesystem that does not conform to
> ISO-9660. Using CUSTOM000 for  /CUSTOM (CUSTOM)
> mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have
  ^^^
> the same Rock Ridge name 'CUSTOM'.
> mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have
> the same Rock Ridge name 'CUSTOM'.
> mkisofs: Unable to sort directory
>

It's obvious, you have two 'CUSTOM' files. mkisofs will pack all the
files in a single root directory, hence, causing that error. Probably
what you realy need is '-graft-points' to separate each directory into
it's own container directory.

mkisofs -U -R -o /tmp/cdimg.iso -graft-points \
  curly/=/disk2/curly larry/=/disk2/larry

--

Ariff Abdullah
MyBSD
http://www.MyBSD.org.my (IPv4)
http://staff.MyBSD.org.my (IPv6/IPv4)
http://tomoyo.MyBSD.org.my (IPv6/IPv4)
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mkisofs options question

2003-12-24 Thread Charles Howse
On Wednesday 24 December 2003 10:13 am, Lowell Gilbert wrote:
> Charles Howse <[EMAIL PROTECTED]> writes:
> > I have some directories that I need to include in a .iso file.
> > I've followed the online Handbook section 12.5.2, and read man mkisofs.
> >
> > The directories each have the file CUSTOM in them.
> > That causes mkisofs to error:
> >
> > [EMAIL PROTECTED] ~]# mkisofs -U -R -o /tmp/cdimg.iso /disk2/curly /disk2/larry
> > Warning: creating filesystem that does not conform to ISO-9660.
> > Using CUSTOM000 for  /CUSTOM (CUSTOM)
> > mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the
> > same Rock Ridge name 'CUSTOM'.
> > mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the
> > same Rock Ridge name 'CUSTOM'.
> > mkisofs: Unable to sort directory
> >
> > What are the proper options for mkisofs so that I can have identical
> > filenames in different directories?
>
> I tried to reproduce this situation, and couldn't.
> Could you produce a test case?

Dan, I may have to mkdir /disk2/cdrom and move whatever I want to burn into 
it.

Lowell, not exactly sure what you mean by test case, but here goes:

[EMAIL PROTECTED] ~]# ll /disk2/curly
total 3700
drwxrwxr-x  2 root  wheel  - 512 Dec 24 02:09 ./
drwxrwxr-x  8 root  wheel  - 512 Dec 24 05:57 ../
-rw-r--r--  1 root  wheel  -9839 Dec 24 02:09 CUSTOM
-rw-r--r--  1 root  wheel  -  233112 Dec 24 02:09 curly_etc_files.tgz
-rw-r--r--  1 root  wheel  -   16901 Dec 24 02:09 curly_root_files.tgz
-rw-r--r--  1 root  wheel  -  501774 Dec 24 02:09 
curly_usr_local_etc_files.tgz
-rw-r--r--  1 root  wheel  - 2944901 Dec 24 02:09 
curly_usr_local_www_files.tgz
-rw-r--r--  1 root  wheel  -2860 Dec 24 02:09 portversion.txt
[EMAIL PROTECTED] ~]# ll /disk2/larry
total 288
drwxrwxr-x  2 root  wheel  -512 Dec 24 02:09 ./
drwxrwxr-x  8 root  wheel  -512 Dec 24 05:57 ../
-rw-r--r--  1 root  wheel  -   9595 Dec 24 02:09 CUSTOM
-rw-r--r--  1 root  wheel  -   2004 Dec 24 02:09 larry_charles-12-23-03.tgz
-rw-r--r--  1 root  wheel  - 231715 Dec 24 02:09 larry_etc-12-23-03.tgz
-rw-r--r--  1 root  wheel  -   8135 Dec 24 02:09 larry_root-12-23-03.tgz
-rw-r--r--  1 root  wheel  -   7077 Dec 24 02:09 
larry_usr_local_etc-12-23-03.tgz
[EMAIL PROTECTED] ~]# mkisofs -U -R -o /tmp/cdimg.iso /disk2/curly /disk2/larry
Warning: creating filesystem that does not conform to ISO-9660.
Using CUSTOM000 for  /CUSTOM (CUSTOM)
mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same 
Rock Ridge name 'CUSTOM'.
mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same 
Rock Ridge name 'CUSTOM'.
mkisofs: Unable to sort directory


-- 
Thanks,
Charles
http://howse.homeunix.net:8080

Random Murphy's Law:
Usefulness is inversely proportional to its reputation
for being useful.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mkisofs options question

2003-12-24 Thread Lowell Gilbert
Charles Howse <[EMAIL PROTECTED]> writes:

> I have some directories that I need to include in a .iso file.
> I've followed the online Handbook section 12.5.2, and read man mkisofs.
> 
> The directories each have the file CUSTOM in them.
> That causes mkisofs to error:
> 
> [EMAIL PROTECTED] ~]# mkisofs -U -R -o /tmp/cdimg.iso /disk2/curly /disk2/larry
> Warning: creating filesystem that does not conform to ISO-9660.
> Using CUSTOM000 for  /CUSTOM (CUSTOM)
> mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same 
> Rock Ridge name 'CUSTOM'.
> mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same 
> Rock Ridge name 'CUSTOM'.
> mkisofs: Unable to sort directory
> 
> What are the proper options for mkisofs so that I can have identical filenames 
> in different directories?

I tried to reproduce this situation, and couldn't.
Could you produce a test case?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area: 
resume/CV at http://be-well.ilk.org:8088/~lowell/resume/
username/password "public"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mkisofs options question

2003-12-24 Thread Dan Nelson
In the last episode (Dec 24), Charles Howse said:
> I have some directories that I need to include in a .iso file. I've
> followed the online Handbook section 12.5.2, and read man mkisofs.
> 
> The directories each have the file CUSTOM in them.
> That causes mkisofs to error:
> 
> [EMAIL PROTECTED] ~]# mkisofs -U -R -o /tmp/cdimg.iso /disk2/curly /disk2/larry
> Warning: creating filesystem that does not conform to ISO-9660.
> Using CUSTOM000 for  /CUSTOM (CUSTOM)
> mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same Rock 
> Ridge name 'CUSTOM'.
> mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same Rock 
> Ridge name 'CUSTOM'.
> mkisofs: Unable to sort directory
> 
> What are the proper options for mkisofs so that I can have identical
> filenames in different directories?

They are in the same directory.  Remember that when you pass mkisofs a
list of directories, their contents are combined to create the CD.  you
can't have duplicates, though. /disk2/larry/CUSTOM and
/disk2/curly/CUSTOM both map to "/CUSTOM" on the cdrom. If you really
wanted the cdrom to contain two subdirectories named "/larry" and
"/curly", try passing just "/disk2" to mkisofs, or if there are other
directories in disk2, create a /disk2/cdrom, move larry and curly into
there, and run "mkisofs /disk2/cdrom".

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


mkisofs options question

2003-12-24 Thread Charles Howse
Hi,
I have some directories that I need to include in a .iso file.
I've followed the online Handbook section 12.5.2, and read man mkisofs.

The directories each have the file CUSTOM in them.
That causes mkisofs to error:

[EMAIL PROTECTED] ~]# mkisofs -U -R -o /tmp/cdimg.iso /disk2/curly /disk2/larry
Warning: creating filesystem that does not conform to ISO-9660.
Using CUSTOM000 for  /CUSTOM (CUSTOM)
mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same 
Rock Ridge name 'CUSTOM'.
mkisofs: Error: '/disk2/larry/CUSTOM' and '/disk2/curly/CUSTOM' have the same 
Rock Ridge name 'CUSTOM'.
mkisofs: Unable to sort directory

What are the proper options for mkisofs so that I can have identical filenames 
in different directories?

-- 
Thanks,
Charles
http://howse.homeunix.net:8080

Random Murphy's Law:
Real programmers drink too much coffee so that they will
always seem tense and overworked.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"