4.2. Making a Recovery CD-ROM RESTORE_FILENAME=$1 # Uncomment (Web space)
4.2. Making a Recovery CD-ROM RESTORE_FILENAME=$1 # Uncomment the following line if you are restoring GZipped # backups #tar xvzf $BACKUP_SOURCE_DIR/$RESTORE_FILENAME # Restore a BZipped backup here… tar xvjf $BACKUP_SOURCE_DIR/$RESTORE_FILENAME As you can see, this script is simple enough. All we have to do is to pass it the file name of the backup we want to restore as a parameter (just the file name, not the full path), and it restores the backed up files into their original locations. Make sure the script is executable: open a terminal and run chmod 700 restore.sh. 4.2. Making a Recovery CD-ROM There is a way to be prepared in case of total disaster , and that is by making a full backup of your system. Programs such as mkCDrec can be very useful to get you up and running in a matter of minutes. You can find it, together with its documentation on the mkCDrec web site [http://mkcdrec.ota.be]. mkCDrec allows you to do multiple-CD-ROM volumes, disk cloning (copying the full contents of a disk or partition to another with similar characteristics at least the same size), and many more. In order to restore a system with mkCDrec you only have to boot with the first CD-ROM of the multiple-CD-ROM volume and then follow the on-screen instructions. 5. Problems Arising at Boot Time It could happen that your system hangs during boot up. If so, don’t panic, just keep reading. The next sections are not introduced in any particular order. 5.1. System Hanging During Boot If your system hangs during Rebuilding RPM database or Finding module de - pendencies, just press Ctrl C . This allows the system to skip this step and continue to boot. Once booted, execute rpm –rebuilddb as root if the system hang was at the Rebuilding RPM database phase. If the system hang was at the Finding