+--------------------------------------+ | Partition Saving | | | | http://www.partition-saving.com | | Copyright (c) 1999-2008 D. Guibouret | +--------------------------------------+ Manual Table of contents ----------------- 1- Preface 2- Introduction 3- System Requirements 4- Interface features/functions a) Textual windows interface b) Command line interface 5- Using the program 6- Saving an element a) Support choice: b) Source element choice: c) Part to save: d) Swap files directory: e) File choice: f) File size choice: g) Compression choice: h) Saving window: i) Options file creation: j) Examples: 7- Restoring an element a) Backup file choice: b) Destination element choice: c) Restoring window: d) Examples: 8- Copying an element a) Support choice: b) Source element choice: c) Part to save: d) Destination element choice: e) Copying window: f) Examples: 9- Copying a backup file 10- Verifying a backup file 11- Updating Windows 2000/XP/Vista registry a) Support choice where Windows is installed: b) Element choice where Windows is installed: c) Directory where Windows is installed: d) Disk choice where partition to update is: e) Partition to update choice: f) Drive letter of partition to update: g) Confirmation: h) Example: 12- Updating Windows Vista boot configuration a) Bootable support choice: b) Bootable element choice: c) Disk where partition to update is choice: d) Partition to update choice: e) Boot entry to update choice: f) Confirmation: 13- Updating BOOTSECT.DOS/BOOTSECT.BAK file a) Support choice where BOOTSECT.DOS/BOOTSECT.BAK file is: b) Element choice where BOOTSECT.DOS/BOOTSECT.BAK file is: c) Confirmation: 14- Fixing disk physical definition into boot sector a) Support choice where fixing boot sector: b) Element choice where boot sector is: c) Correction of first sector value: d) Choice of new physical definition: e) Giving manual values: f) Confirmation: 15- Replacing a boot sector or a superblock by its copy a) Support choice where copying boot sector/superblock: b) Element choice where boot sector/superblock is: c) Choice of copy to use: d) Exploring partition: e) Confirmation: 16- Simulating an element a) Use of driver: b) Simulating an element: c) Remarks: 17- Creation of files on NTFS drive 18- Reset bad sectors in filesystem a) Support choice where bad sectors shall be removed: b) Element choice where bad sectors shall be removed: c) Confirmation: d) Execution: 19- Explore a partition a) Choice of support where partition to explore is: b) Choice of partition to explore: c) Exploration window: d) View window: e) Edit window: f) Copy destination: g) Copy execution: 20- Explore a backup 21- Options file contents 22- Mounting a partition 23- Notes on what elements can be saved a) The complete disk: b) The Master Boot Record (MBR): c) First sectors of disk: d) Partitions table: e) Partitions (all sectors): f) Partitions (only occupied sectors): g) FAT (12, 16 and 32) partitions (DOS/Windows): h) Ext2fs/ext3fs partitions (Linux): i) NTFS partitions: j) Boot sector/superblock: k) Floppy disks: l) DOS/Windows devices: 24- Differences between DOS and Windows versions a) All versions of Windows: b) Windows before Windows 95: c) Windows 95/98/Me: d) Windows NT/2000/XP/Vista/...: e) Windows 64 bits: 25- What is not supported 26- What cannot be tested 27- Acknowledgments 1- Preface ---------- This program may be copied and freely redistributed. It may not be sold in any way, either alone or included in another program. All that is in this package must be kept together in its original form. This program is offered as-is without any guarantee. No pursuit can be engaged against its author in case of damages due to this program. This file is the complete version of manual and has many details. If you begin to use Partition-Saving, you can read the HOWTO before to see how to use it, then come back to this file if you need further details. All remarks are welcome. 2- Introduction --------------- The goal of this program is to achieve saving, restoring and copying of disk elements (whole disks, Master Boot Record, partitions table, partitions). This permits saving hard disk contents to restore it later in case of a problem, without losing time reinstalling and reconfiguring software. This program allows running the following tasks: - saving an element (hard disk, partition, floppy disk, device). - restoring an element that was saved before. - copying an element. - copying a backup file created by this program, modifying its size or compression rate. - verifying created files. - updating partition definition in Windows 2000/XP/Vista registry. - updating BOOTSECT.DOS/BOOTSECT.BAK file. - exploring a partition. - simulating elements with created files. - creating files on a NTFS drive under Windows for use in saving. - cancelling bad sectors information of a filesystem. - correcting disk physical definition (heads and sectors per track numbers) into a FAT and NTFS boot sector. - replacing a FAT or NTFS boot sector or ext2/ext3 superbloc by its copy in case original one is damaged. For detailed information about partitioning and this program, please read additional information. 3- System Requirements ---------------------- Hardware: - 386 or better. - 4 Mb of memory (could work with less, but data compression might not work). Free DOS memory must be at least 300 Kb. Software: - DOS (version >= 3.3). This program does not work under Windows (see chapter 4 of additional information) and using it with an emulator is not recommended(especially if it runs in a multitasking environment). This program shall be used after a boot of computer without leaving any OS into some hibernation mode because in this case modification made by this program can disallow this OS booting back or OS can undo what program does. You will need also a FAT, NTFS or ext2 partition (or any other filesystem for which you have a DOS driver that allows access to it) to create backup file (this is not needed if you merely want to copy a partition, since no file is created). 4- Interface features/functions ------------------------------- Two interface types are available: - a textual windows interface that presents information in windows that can be navigated with the keyboard or mouse. - a command-line interface that presents information in a basic way and can be used only with the keyboard. The default interface is the first one. The second one is here to resolve some incompatibility issues on some computers. To decide which interface to choose, please read chapter 5. a) Textual windows interface Interface can be used with keyboard or mouse. Keys common to all windows are: - Tab, bottom arrow or right arrow to go from one item to another inside a window. - Shift+Tab, up arrow or left arrow to go from one item to another inside a window (in reverse order compared to Tab). - Ctrl+Tab to go from one window to another. - Alt+Tab to go from one window to another (in reverse order compared to Ctrl+Tab). - Key assignments are defined to associate moving keys to a combination of keys using the Control key: +-------------+-------------+ | Moving keys | Combination | +-------------+-------------+ | Home | Ctrl+B | +-------------+-------------+ | End | Ctrl+E | +-------------+-------------+ | Down | Ctrl+D | +-------------+-------------+ | Up | Ctrl+O | +-------------+-------------+ | Right | Ctrl+K | +-------------+-------------+ | Left | Ctrl+L | +-------------+-------------+ | Page Down | Ctrl+N | +-------------+-------------+ | Page Up | Ctrl+P | +-------------+-------------+ | BackSpace | Ctrl+H | +-------------+-------------+ | Delete | Ctrl+J | +-------------+-------------+ | Insert | Ctrl+Y | +-------------+-------------+ | Return | Ctrl+M | +-------------+-------------+ | Tab | Ctrl+F | +-------------+-------------+ | Shift+Tab | Ctrl+G | +-------------+-------------+ | Alt+Tab | Ctrl+T | +-------------+-------------+ | Ctrl+Tab | Ctrl+W | +-------------+-------------+ If no item seems to be selected, press one of these keys to select first or last one. In general, Enter key activates Ok button (if no other button is selected) and Escape key activates Cancel button. Various features of windows are presented below: - Command buttons: to activate them, you have to press Enter key when they are selected, or press Alt+ (even if button is not selected). You can also activate them by clicking on them. A button is selected if it has a black background and is flanked by ">" and "<", otherwise it has a green background. - Entry lines: this is an item that permits entering data. Just press a key to add the character where the cursor is. Delete and BackSpace keys are used to erase characters (respectively, character that cursor is on, and character before cursor). Right and left arrows are used to move cursor and Home and End keys are used to go to begin or end of string. Holding down the shift key while using moving keys will select text that will be erased when you will press a key other than the moving one. By pressing Ctrl+A you select all the text. Finally, Insert key is used to switch from insert mode (default mode: cursor is underlined cursor) to replacement mode (cursor is block-cursor) and back again. With the mouse, you can move the cursor by clicking where you want it to be, scroll the text by clicking on arrow on left or on right, select the text by keeping button pressed when moving mouse and select all the text by double clicking on it. An entry line is selected when it has the cursor that appears in it. - Listboxes: they are used to choose an item from a list. Up and bottom arrows are used to move from one item to another, Page-Up and Page-Down keys are used to go to begin and end of list. If right column is a different color and contains a # character, it is because all elements cannot be seen and the # character is used to locate the currently selected item in the list. If last line is a different color and contains a # character it is because there were some columns that cannot be seen and the # character is used to locate columns that are displayed. With the mouse, you can select an element. If scroll bar appears on right, you can change list position by clicking where you want to be, or by clicking arrows on up or bottom. By double clicking on selected element you will activate command associated to the list (generally Ok button). A selected item has a grey background if its listbox is not selected, and has a black background if its listbox is selected. In case list allows selecting several items, you can select/unselect items either by range with keeping the shift key pressed with a mouse click or moving keys or by individual item selection with keeping the ctrl key pressed with moving and mouse click or space to select/unselect an item. You can use Ctrl+A to select all items. - Checkboxes: these items allows activating/deactivating an option. To change the state of a checkbox, click on it or press Space key when it is selected. A checkbox is activated when an 'X' appears between square brackets, it is deactivated otherwise. A checkbox is selected when its text is white, is not selected when its text is grey. - Directory trees: this item allows selecting a directory on a partition. It functions similarly to a listbox. The first line ("\") is the root directory of the partition, subsequent lines are directories on this partition displayed with a tree view in alphabetic order. Directories that have "+- " before their name have some sub-directories that can be displayed by selecting this directory and pressing '+' key or by clicking the "+" before name. Directories that have their sub-directories displayed and that have "-- " before their name can be collapsed by selecting this directory and pressing '-' key or by clicking the first "-". Example: \ -- displayed sub-directories | |- sub-directory 1 | `- sub-directory 2 |- no sub-directory +- sub-directories not displayed `- terminal directory b) Command line interface This interface is more basic and can only be used with the keyboard. Pressing the Escape key at any time stops execution of the program. Various features are: - Lists: a list is displayed with numbers on the left. Enter the item number when you are asked to choose. If the list is bigger than screen size, you will have to press a key to scroll. - Entering information: you must enter the required information (for example a filename). Delete key allows removing last character (what you have already entered is displayed on next line without the last character and you can continue to enter characters). It is not possible to move the cursor. - Choices: they have the form of a question with possible responses given in parentheses (sample: (Y/N)). You must answer by selecting from these choices. It is not case-sensitive. 5- Using the program -------------------- Usage: savepart.exe [-l en|fr|fr_2] [-cm|-nm|-pm] [-f ] [-ncd] [-ncs] [-nvd] [-nvf] [-cui|-tui|-tuix|-bui|-buix] [-a|-b|-c|-d|-e|-i|-k|-m|-n|-r|-s|-t|-u|-v|-w|-z] -l: this option allows you to select which language to use. You only have to use this option if the automatically recognised language is not correct. If an error occurs before this option is analysed, the error message will be written with the automatically detected language. Recognised languages are: * en: English. * fr: French. * fr_2: French with others code pages. Detection of language sets language to French when detecting France, French Canada, French Guyana, French Antilles or French Polynesia settings, otherwise it is set to English. fr_2 is to be used in case accents are not well displayed. I don't know for which setting it was (and I am not sure there was a DOS setting for it), it is accents as Windows and Linux code them (ANSI). It is not automatically detected. -cm: this option is the default way the mouse is utilised. -pm: this option is another way to utilise the mouse that can be used in case the first one does not work (it is default method when using DOS version on Windows NT/XP). Using this method may prevent detecting some double clicks. This option is equivalent to -cm into Windows version. -nm: this option disables the mouse. You would have to use it only if mouse use seems to pose a problem with 2 previous methods. -f : this option allows you to use batch mode. To understand the contents of this file, please read chapter 21. -ncd: this option disables the check that created/read file is not on saved/restored element. It is generally recommended only if DOS drive letter attribution is wrong. This option has no influence in Windows version (this check cannot be disabled). -ncs: this option disables the check on free size on drive where backup file is created. This is a workaround in case the driver report a wrong free size, but you have to be aware when using this option to not provide a too big maximum file size else saving will fail. -nvd: this option disables the check that sectors are correctly written. This speeds up restoring, but may prevent detecting bad sectors on the disk. The check that sectors are correctly written is always disabled in Windows version (less for floppy disks in Windows 9x). -nvf: this option disables the check that files are correctly written and that sectors are correctly written when using DOS devices access. This speeds up saving (and/or restoring), but created files or restored devices may be incorrect because the disk where they are written is damaged The check that files are correctly written is always disabled in Windows version. -cui|-tui|-tuix|-bui|-buix: this option allows you to select the user interface: * -cui: command line interface. * -tui: textual window interface. * -tuix: same as -tui but with using extended display mode (43 or 50 lines instead of 25). * -bui: textual window interface using BIOS calls to write on the screen. This ensures better compatibility but goes slower. This option is the same than -tui in Windows version. * -buix: same as -bui but with using extended display mode (43 or 50 lines instead of 25). This option is the same than -tuix in Windows version. If this option is not given, textual window interface is used. This option has to be used only if this interface poses a problem (for example nothing appears when the program begins). In this case, you can first try the -bui option, and if it still does not work, use the -cui one. -a|-b|-c|-d|-e|-i|-k|-m|-n|-r|-s|-t|-u|-v|-w|-z: this option allows selecting which action to do: * -a: fix disk physical definition into boot sector. * -b: update BOOTSECT.DOS/BOOTSECT.BAK file. * -c: copy an element. * -d: copy files created by this program to modify it (compression rate, maximum size, extract occupied sectors only, ...). * -e: explore a partition. * -i: get information from driver. * -m: simulate an element with backup files. * -n: create files on NTFS partition when you are running from Windows NT, 2000, XP or Vista. * -r: restore an element. * -s: save an element. * -t: verify a backup file. * -u: update Windows 2000/XP/Vista registry. * -v: explore a backup file. * -w: update Windows Vista boot configuration data. * -z: cancelling bad sectors information of a filesystem. If none of these options are given, the program asks what you want to do. For information about each action, please read subsequent chapters. Return code of program can be one of the following: - 0 if no error has been detected. - 1 if en error has appeared. - 2 if user cancels execution. - 3 if no error has been detected, but there were some bad sectors. - 255 if some exception has been raised. Remarks: -------- - -f