Data problems are when the machine might or might not boot properly but, in either case, it is clear that there is data corruption on the system and that the system needs to be recovered. These situations call for a backup of your critical data, enabling you to recover the status quo once your system failed. SUSE Linux offers dedicated YaST modules for system backup and restoration as well as a rescue system that can be used to recover a corrupted system from the outside.
System backups can be easily managed using the YaST System Backup module:
As root, start YaST and select +.
Create a backup profile holding all details needed for the backup, filename of the archive file, scope, and type of the backup:
Select +.
Enter a name for the archive.
Enter the path to the location of the backup if you want to keep a local backup. For your backup to be archived on a network server (via NFS), enter the IP address or name of the server and the directory that should hold your archive.
Determine the archive type and click .
Determine the backup options to use, such as whether files not belonging to any package should be backed up and whether a list of files should be displayed prior to creating the archive. Also determine whether changed files should be identified using the time-consuming MD5 mechanism.
Use to enter a dialog for the backup of entire hard disk areas. Currently, this option only applies to the Ext2 file system.
Finally, set the search constraints to exclude certain system areas from the backup area that do not need to be backed up, such as lock files or cache files. Add, edit, or delete items, until your needs are met and leave with .
Once you have finished the profile settings, you can start the backup right away with or configure automatic backup. It is also possible to create other profiles tailored for various other purposes.
To configure automatic backup for a given profile, proceed as follows:
Select from the menu.
Select .
Determine the backup frequency. Choose , , or .
Determine the backup start time. These settings depend on the backup frequency selected.
Decide whether to keep old backups and how many should be kept. To receive an automatically generated status message of the backup process, check .
Click for your settings to be applied and the first backup started at the time specified.
Use the YaST System Restoration module to restore the system configuration from a backup. Restore the entire backup or select specific components that were corrupted and need to be reset to their old state.
Start ++.
Enter the location of the backup file. This could be a local file, a network mounted file, or a file on a removable device, such as a floppy or a CD. Then click .
The following dialog displays a summary of the archive properties, such as the filename, date of creation, type of backup and optional comments.
Review the archived content by clicking . Clicking returns you to the dialog.
opens a dialog in which to fine-tune the restore process. Return to the dialog by clicking .
Click to open the view of packages to restore.
Press to restore all files in the archive or use the various buttons for a fine-tuning of your selection. Only check the option if it is corrupted or deleted and if this file is included in the backup.
After you click , the backup is restored. Click to leave the module after the restore process is completed.
There are several reasons why a system could fail to come up and run properly. A corrupted file system after a system crash, corrupted configuration files, or a corrupted boot loader configuration are the most common ones.
SUSE Linux offers a graphical front-end for system repair. The following section introduces the YaST System Repair module.
Before launching the YaST System Repair module, determine in which mode to run it to best fit your needs. Depending on the severeness and cause of your system failure and your expertise, there are three different modes to choose from:
If your system failed due to an unknown cause and you basically do not know which part of the system is to blame for the failure, use . An extensive automated check will be performed on all components of your installed system. For a detailed description of this procedure, refer to Section 9.6.3.1.1, “Automatic Repair”.
If your system failed and you already know which component is to blame, you can cut the lengthy system check with short by limiting the scope of the system analysis to those components. For example, if the system messages prior to the failure seem to indicate an error with the package database, you can limit the analysis and repair procedure to checking and restoring this aspect of your system. For a detailed description of this procedure, refer to Section 9.6.3.1.2, “Customized Repair”.
If you already have a clear idea of what component failed and how this should be fixed, you can skip the analysis runs and directly apply the tools necessary for the repair of the respective component. For details, refer to Section 9.6.3.1.3, “Expert Tools”.
Choose one of the repair modes as described above and proceed with the system repair as outlined in the following sections.
To start the automatic repair mode of YaST System Repair, proceed as follows:
Boot the system with the original installation medium used for the initial installation (as outlined in Chapter 1, Installation with YaST).
Select the installation mode.
Select .
YaST now launches an extensive analysis of the installed system. The progress of the procedure is displayed at the bottom of the screen with two progress bars. The upper bar shows the progress of the currently running test. The lower bar shows the overall progress of the analysis. The log window in the top section tracks the currently running test and its result. See Figure 9.2, “Automatic Repair Mode”. The following main test runs are performed with every run. They contain, in turn, a number of individual subtests.
Checks the validity and coherence of the partition tables of all detected hard disks.
The swap partitions of the installed system are detected, tested, and offered for activation where applicable. The offer should be accepted for the sake of a higher system repair speed.
All detected file systems are subjected to a file system–specific check.
/etc/fstabThe entries in the file are checked for completeness and consistency. All valid partitions are mounted.
The boot loader configuration of the installed system (GRUB or LILO) is checked for completeness and coherence. Boot and root devices are examined and the availability of the initrd modules is checked.
This checks whether all packages necessary for the operation of a minimal installation are present. While it is optionally possible also to analyze the base packages, this takes a long time because of their vast number.
Whenever an error is encountered, the procedure stops and a dialog opens outlining the details and possible solutions.
Read the screen messages carefully before accepting the proposed fix. If you decide to decline a proposed solution, your system remains unchanged.
After the repair process has been terminated successfully, click and and remove the installation media. The system automatically reboots.
To launch the mode and selectively check certain components of your installed system, proceed as follows:
Boot the system with the original installation medium used for the initial installation (as outlined in Chapter 1, Installation with YaST).
Select the installation mode.
Select .
Choosing shows a list of test runs that are all marked for execution at first. The total range of tests matches that of automatic repair. If you already know where no damage is present, unmark the corresponding tests. Clicking starts a narrower test procedure that probably has a significantly shorter running time.
Not all test groups can be applied individually. The analysis of the fstab entries is always bound to an examination of the file systems, including existing swap partitions. YaST automatically resolves such dependencies by selecting the smallest number of necessary test runs.
Whenever an error is encountered, the procedure stops and a dialog opens outlining the details and possible solutions.
Read the screen messages carefully before accepting the proposed fix. If you decide to decline a proposed solution, your system remains unchanged.
After the repair process has been terminated successfully, click and and remove the installation media. The system automatically reboots.
If you are knowledgeable with SUSE Linux and already have a very clear idea of what needs to be repaired in your system, directly apply the tools skipping the system analysis.
To make use of the feature of the YaST System Repair module, proceed as follows:
Boot the system with the original installation medium used for the initial installation (as outlined in Chapter 1, Installation with YaST).
Select the installation mode.
Select .
Choose one or more of the following options to repair your faulty system:
This starts the YaST boot loader configuration module. Find details in Section 29.4, “Configuring the Boot Loader with YaST” (↑Reference).
This starts the expert partitioning tool in YaST. Find details in Section 3.7.5, “Partitioner”.
This checks the file systems of your installed system. You are first offered a selection of all detected partitions and can then choose the ones to check.
It is possible to attempt to reconstruct damaged partition tables. A list of detected hard disks is presented first for selection. Clicking starts the examination. This can take a while depending on the processing power and size of the hard disk.
![]() | Reconstructing a Partition Table |
|---|---|
The reconstruction of a partition table is tricky. YaST attempts to recognize lost partitions by analyzing the data sectors of the hard disk. The lost partitions are added to the rebuilt partition table when recognized. This is, however, not successful in all imaginable cases. | |
This option saves important system files to a floppy disk. If one of these files become damaged, it can be restored from disk.
This checks the consistency of the package database and the availability of the most important packages. Any damaged installed packages can be reinstalled with this tool.
After the repair process has been terminated successfully, click and and remove the installation media. The system automatically reboots.