YaST2 Developers Documentation: YaST OS Repair. Automatic error detection & repair tool for Linux.

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

  • Label
  • Mode
  • OSRCommon
  • OSRExecute
  • OSRFloppy
  • OSRPopup
  • Popup
  • Report
  • Storage
  • StorageDevices

Includes

  • partitioning/partition_defines.ycp

Global Functions

Local Variables

Local Functions

local repair_methods -> map

All repair methods

local target -> string

The harddisk name. e.g.: /dev/hda

local target_scrpath -> path

The path of the harddisk (for fdisk calls). e.g.: .dev.hda.

local backup_dev_filenames -> map

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.

local backup_mbr_status -> boolean

backup_mbr_status is true, if all mbr's are successfully stored to the tmp directory.

local gpart_expert_options -> string

Expert options for gpart

local floppy_help_text () -> string

Help text for the floppy repair method.

local gpart_help_text () -> string

Help for gpart

local original_help_text () -> string

Help text for restoring orginal mbr's

local SavePtbl () -> void

Save all mbr's to tmp directory and saves the path names in the map backup_dev_filenames.

local CheckRestoredPtbl (string target) -> boolean

Check reparired mbr.

Parameters:
target
local build_file_name (string key) -> string

Build the file name for reading partition list from floppy.

Parameters:
key
local read_part_list_from_floppy (string target) -> list<map>

Need mounted floppy

Parameters:
target
local FoundPtblDialog (list<map> partitions, string dev, string repair_tool, boolean whole_mbr) -> list<map>

Show

Parameters:
partitions
dev
repair_tool
whole_mbr
local fdisk_call (string disk_dev, list<map> torecover) -> boolean

Call fdisk

Parameters:
disk_dev
torecover
local restore_from_floppy () -> symbol

Restore lost mbr with a backup from floppy.

local gpart_cat_fsid (string line) -> integer

Cat the fsid from a line.

Parameters:
line
local gpart_cat_geometry (string line) -> map

Cat the geometry from a line.

Parameters:
line
local expert_restore_with_gpart () -> symbol

Dialog with expert gpart options.

local partition_info (map part, string dev) -> string

return partition information (to be shown to user)

Parameters:
part
dev
local ComparePtblDialog (map compared, string target, string repair_tool) -> list<map>

Compare an existing partition table with the gpart output

Parameters:
compared
target
repair_tool
global RestoreWithGpart () -> symbol

Restoring a partition tables with gpart.

local write_original (list<string> to_reset, boolean whole_mbr) -> boolean

Restore saved mbr.

Parameters:
to_reset
whole_mbr
local restore_original () -> symbol

Restore saved mbr.

global WritePartitionsInfo2Floppy (string key, list parts) -> boolean

Write partition info of given disk to floppy (needs mounted floppy)

Parameters:
key
parts
global MainPtblRepairDialog (string t_target) -> symbol

Main Dialog for repairing deleted/not valid partition tables.

Parameters:
t_target