YaST OS Repair. Automatic error detection & repair tool for Linux. |
OSRPtbl.ycp |
YaST OS Repair. Automatic error detection & repair tool for Linux. | |
|
|
This module has an unstable interface. |
Imports
Includes
Global Functions
Local VariablesLocal Functions
|
All repair methods
The harddisk name. e.g.: /dev/hda
The path of the harddisk (for fdisk calls). e.g.: .dev.hda.
At the first call of the OSRPtbl module the constructor saves all mbr's to the YaST"2.tmp Directory. The names of the randomly created mbr files are stored in the map backup_dev_filenames.
backup_mbr_status is true, if all mbr's are successfully stored to the tmp directory.
Expert options for gpart
Help text for the floppy repair method.
Help for gpart
Help text for restoring orginal mbr's
Save all mbr's to tmp directory and saves the path names in the map backup_dev_filenames.
Check reparired mbr.
- Parameters:
-
target
Build the file name for reading partition list from floppy.
- Parameters:
-
key
Need mounted floppy
- Parameters:
-
target
Show
- Parameters:
-
partitions dev repair_tool whole_mbr
Call fdisk
- Parameters:
-
disk_dev torecover
Restore lost mbr with a backup from floppy.
Cat the fsid from a line.
- Parameters:
-
line
Cat the geometry from a line.
- Parameters:
-
line
Dialog with expert gpart options.
return partition information (to be shown to user)
- Parameters:
-
part dev
Compare an existing partition table with the gpart output
- Parameters:
-
compared target repair_tool
Restoring a partition tables with gpart.
Restore saved mbr.
- Parameters:
-
to_reset whole_mbr
Restore saved mbr.
Write partition info of given disk to floppy (needs mounted floppy)
- Parameters:
-
key parts
Main Dialog for repairing deleted/not valid partition tables.
- Parameters:
-
t_target