Copying Files Into Your CD Image

From GEAR Software Knowledgebase

Revision as of 14:14, 16 May 2006 by Jcopp (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

You can copy files from any directory into your new GEAR image using the cp [-r] command. To copy a complete directory tree into an image, type:

cp -r

All files and subdirectories in the specified tree are loaded automatically. Subdirectories are created in the GEAR image if they exist in the source tree. The image will contain an exact copy of the specified tree. To copy a specific file to the virtual image, enter:

cp

To copy all files and subdirectories from the /data directory into your sample GEAR image, you may type:

cp -r /data/* .

In the above example, all files in the `/data/*' directory are copied to the current directory in your GEAR image. The current directory is displayed on the status line at the bottom of your screen. You can change the current directory in the GEAR image with the cd command.

During the copy operation GEAR will report you which files are being loaded, by outputting lines of text in the log window.


To only copy files with a certain extension, type:

cp /data/*.abc .

In the above example, all files with the extension .abc are copied from the DATA directory to the current directory in your image. The current directory is displayed on the status line at the bottom of the screen. You can change the current directory just as you would with other Unix programs.


GEAR is by default configured is such a way that Rock Ridge extensions and Joliet extensions are enabled, and that 64 character and case sensitive file names are allowed in the "pure ISO-9660" name space. Please note that on the disc you create there will actualy be 3 name spaces present (ISO-9660, Joliet and Rock Ridge). The Generator parameters AddRockRidgeInfo and ISOJolietHandling determine the presence and characteristics of these name spaces.The UDF file system, is used, will also have it's own directory structure and name space on the disc, so when using the ISOUDF track type you can have a maximum 4 different name spaces on the disc (UDF, ISO, Rock Ridge and Joliet.


SUN systems cannot read ISO CDs that have file names containing lowercase characters. Therefore, SUN users should use the Rock Ridge extensions or translate their filenames to uppercase.

Personal tools
wiki navigation