2. Creating and Writing CD/DVD Images

To aid in the backup of data, NEC generally provides a CD/DVD writer with each control system. This section will cover the basic usage of some scripts to create and write standardized backups of AccelNET releated data. If you would like to use the CD/DVD writer for other purposes, using a graphical application such as xcdroast[1] or K3b[2] is recommended. The scripts provided are wrappers to the following command line tools: mkisofs, cdrecord, growisofs.

2.1. Creating a CD/DVD Image

CDs and DVDs are normally written using what is refered to as an image. An image can be in many different formats depending on the methods used to create it. The most universal of these images is called an ISO and conforms to the ISO9660 specifications.

The typical usage for CD/DVD images is to backup the AccelNET directory tree. The files contained in the AccelNET tree are owned by several different users and groups. Because of this, the root user must be used to create the backup image. The following is a set of procedures to produce what is called an AccelNET snapshot.

  1. Login as or su - to the root user.

        csadmin$ su -
        Password: <type root's password and press Enter>
        root# 
        
  2. Change to the /cdrecord directory.

        root# cd /cdrecord
        
  3. Use buildit to create the image.

        root# ./buildit snapshot
        

The file /cd.accelnet will be created that can be burned to CD or DVD.

The buildit command may also be used to create custom CD/DVD images. For usage information, run buildit without any arguments.

2.2. Writing a CD/DVD Image

Once an image has been created, either using the buildit or on your own, it needs to be written to a CD or DVD. To accomplish this, the recordit is used. The following is a set of procedures to write the snapshot image to a cd.

  1. Insert a blank CD into the CD/DVD writer.

  2. Change to the /cdrecord directory.

        csadmin$ cd /cdrecord
        
  3. Use recordit to write the image.

        csadmin$ ./recordit cd snapshot
        

The recordit command may also be used to write custom CD/DVD images. For usage information, run recordit without any arguments.



[1] http://www.xcdroast.org/

[2] http://www.k3b.org/