Rodolfo wrote: > Now I can copy the file `myfile' onto CD with > Mandrake 10.1 Community simply doing: > > # mkisofs -r -o cd_image myfile > # cdrecord -v speed=2 dev=/dev/hdd -data cd_image > > . Now, if I try to copy onto CD a whole directory, > only the content of the directory is copied and not the directory > itself. For example, suppose I want to copy onto CD the > directory `mydir' that contains the file `myfile'. > If I do: > > # mkisofs -r -o cd_image mydir > # cdrecord -v speed=2 dev=/dev/hdd -data cd_image > > , I will find only the `myfile' on the CD. Instead, > I'd like to find on the CD the entire directory `mydir' > with the `myfile' in it. > Is it possible, and how?
Yes, it is possible, this way: # mkisofs -R -J -o cd_image -graft-points "mydir=mydir" . Before burning the CD, I can test the image with: # mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /mnt/cdrom2 . The option -graft-points of the mkisofs command also allows to create directories and put files in them. For example, suppose I want to create on the CD a directory named `foo' including the files myfile1 and myfile2: I do: # mkisofs -R -J -o cd_image -graft-points "foo/=myfile1" "foo/=myfile2" . If I also want to change the two filenames, e.g. myfile1 into newfile1 and myfile2 into newfile2, I do: # mkisofs -R -J -o cd_image -graft-points "foo/newfile1=myfile1" "foo/newfile2=myfile2" Rodolfo
____________________________________________________ Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com ____________________________________________________
