Test System: linux-debian Backup System 1. Insert dd with systemrescuecd-x86-401iso system backup
Test System: linux-debian
Backup System 1, insert dd systemrescuecd-x86-4.0.1.iso system backup recovery U disk; 2, BOOT press DEL to enter the BIOS, set BOOT to USB-HDD BOOT. Save & Exit; 3. go to the backup recovery SYSTEM interface: Recovery | SYSTEM-RESCUE-CD 4.0.4 (www.sysresccd.org) restart | 1) systemrescumcm default boot opetions | 2) systemrescumcm: all files cached to memory (docache) | 3) systemrescumcm: framebuffer console in high resolution | 4) systemrescumcm: do not ask Keyboard, use US keymap | 5) Boot an exising Linux system installed on the disk | 6) systemrescumcm: alternative kernel with default boot option | 7) systemrescumcm: directly start the graphical environment | A) Run system tools from floppy disk image...> | B) Standard 32bit kernel (rescue32) with more choice...> | C) Standard 64bit kernel (rescue64) with more choice...> | D) Alternative 32b It kernel (altker32) with more choice...> | E) Alternative 64bit kernel (altker64) with more choice...> | *) Boot from first hard disk | *) Boot from second hard disk ---------------------------------------------------------------- select 1), and press enter. (Wait about 10 minutes, depending on the server) 4. view the system partition: fdisk-lModel: ATA ST330621A (scsi) Disk/dev/sda: 30.0 GBSector size (logical/physical): 512B/512 BPartition Table: gptDisk Flags: Number Start End Size File system Name Flags 1 17.4kB 1000 MB 1000 MB ext2 boot 2 1000 MB 3000 MB 2000 MB linux-swap (v1) 3 3000 MB 8000 MB 5000 MB ext3 4 8000 MB 30.0 GB 22.0 GB ext3Model: Generic Flash Disk (scsi) Disk/dev/sdb: 8020 MBSector size (logical/ Physical): 512B/512 BPartition Table: msdosDisk Flags: Number Start End Size Type File system Flags 1 512B 8020 MB 8020 MB primary fat32 boot, lba view the current U disk directory and usage: df-hFilesystemSizeUsedAvallUse % Mounted %/ udev10M010M0 %/dev/latest %/livemnt/boot/dev/loop0339M339M0100 %/livemnt/latest %/ livemnt/tftpm Emnone512M16K512M1 %/disks %/runudev10M010M0 %/devshm498M0498M0 %/dev/shmcgroup_root10M010M0 %/sys/fs/disks %/tmp5, U disk Mount partition: mount/dev/sdb2/mnt/floppy or directly Grant a directory read/write permission to the U disk directory: mount-o remount, rw/livemnt/boot/6. create an image: partimage: ------------------------------------------------------------------------------ | Partition Image 0.6.9 | ----------------------------------------- --------------------------- | * Partition to save? Restore | sda1ext2fs953.00 MiB | sda2swap (v1) 1.86 GiB | sda3ext3fs5.00 GiB | sda5ext3fs25.16 GiB | sdb1fat327.47 GiB | images | * Image file to create/use | images <*> | actions | Action to be done:
| (*) Save partition into a new image file | () Restore partition from an image file | () Restore an MBR from the image file |
| [] Connect to server | IP/name of the server: ____________________ Port: 4025 _ | [X] Encrypt data on the network with SSL protocol [1] select the region to be backed up: sda1ext2fs953.00 MiB [2] fill in the backup file name to be stored: /livemnt/boot/ncweb_img/ncweb_sda1_boot.img <*> [3] select backup new image :( *) Save partition into a new image file [4] press F5 to go to the next step: failed | save partition to image file | Compression level | () None (very fast + very big file) | (*) Gzip (.gz: medium speed + small image file) | () Bzip2 (.bz2: very slow + very smaill image file) | OptionsIf finished successfully: | [X] Check partition before saving (*) Wait | [X] Enter description () halt | [] Overwrite without prompt () Reboot | () Quit | Image splut mode () Last | () Automatic split (when no space left) | (*) into files whose size is :........... 2037 ____ MiB | [] Wait after each volume change |
Category [5] description of the image File: category | Parition description | category | You can enter a description of the saved partition: | ________________________________________________________ | ------ | OK | fill in as follows: ncweb sda1 boot 2.0 GB image [6] prompts the current partition information, click OK: ext3fs informationsSpave usage :........................ 8% Used space :......................... 2.17 GiBFree space :......................... 23.00 GiBBitmap size :........................ 3.15 MiBLabel :.............................. number of groups :................... 202 First block :........................ 0Ext3fs journalization :.............. yesSparse super block :................. yesLarge files support :................ yesFile system revision :............... 1 [7] generating an image: images | save partition to image file | images | Partition to save :........... /dev/sda5 | Size of the Partition :....... 25.16 GiB = 27018657792 bytes | Current image file :.......... /livemnt/boot/ncweb_img/ncweb_sda1_boot.img000 | Image file size :............. 238.13 MiB | Available space for image :... 4.45 GiB = 4721212313 bytes | Detected file system :........ ext3fs | Compression level: ..........gzip | Time elapsed :................ 3 m: 45sec | Estimated time remaining :.... 1 m: 23sec | Speed :....................... 388.32 MiB/min | Data copied :................. 1.75 GiB/2.17 GiB | _________________________ 8% completed bytes [8], click OK: SuccessOperation successfully finished: Time elapased: 5 m: 53 secSpeed: 376.9 MiB/minData copied: 2.17 GiB7. export partition table: [1] MBR type # sfdisk-d/dev/sda>/mnt/floppy/ncweb. fdisk [2] GPT and other types # gdisk GPT fdisk (gdisk) version 0.8.8 Type device filename, or press
To exit:/dev/sda Partition table scan: MBR onlyBSD: not presentAPM: not presentGPT: not present ************************************** * ************************* Found invalid GPT and valid MBR; converting MBR to GPT format in memory. this operation is poentially destructive! Exit by typing 'Q' if you don't want to convert your MBR partitions to GPT format! **************************************** * ************************* Command (? For help): [3] enter the backup Command: B Command (? For help): B Enter backup filename to save: [4] Enter the region to be backed up: // livemnt/boot/ncwww_img/ncwww. fdisk Enter backup filename to save:/livemnt/boot/ncwww_img/ncwww. fdisk The operation has completed successfully. [5] Exit: q Recovery System 1. import partition table [1] MBR type: # sfdisk/dev/sda </mnt/floppy/ncweb. fdisk [2] GPT and other types # gdisk GPT fdisk (gdisk) version 0.8.8 Type device filename, or press
To exit:/dev/sda Partition table scan: MBR onlyBSD: not presentAPM: not presentGPT: not present ************************************** * ************************* Found invalid GPT and valid MBR; converting MBR to GPT format in memory. this operation is poentially destructive! Exit by typing 'Q' if you don't want to convert your MBR partitions to GPT format! **************************************** * ************************* Command (? For help): [3] enter the recovery Command: r Command (? For help): r Recovery/transformation command (? For help): [4] enter the sub-command: l Recovery/transformation command (? For help): l Enter backup filename to load: [5] Enter the file name to restore:/livemnt/boot/ncwww_img/ncwww. fdisk Enter backup filename to load:/livemnt/boot/ncwww_img/ncwww. fdisk Recovery/transformation command (? For help): [6] enter the written sub-command: w Recovery/transformation command (? For help): w Final checks complete. About to write GPT data. this will overwrite existing partitions !! [7] enter Y to confirm recovery: Do you want to proceed? (Y/N): y OK; writing new GUID partition table (GPT) to/dev/sda. the operation has completed suceesfully.2. recover The Partition: partimage. go to The backup recovery page: restore | Partition Image 0.6.9 | restore | * Partition to save? Restore | sda1ext2fs953.00 MiB | sda2swap (v1) 1.86 GiB | sda3ext3fs5.00 GiB | sda5ext3fs25.16 GiB | sdb1fat327.47 GiB | images | * Image file to create/use | images <*> | actions | Action to be done:
| () Save partition into a new image file | (*) Restore partition from an image file | () Restore an MBR from the image file |
| [] Connect to server | IP/name of the server: ____________________ Port: 4025 _ | [X] Encrypt data on the network with SSL restart [1] select the region to be restored: sda1ext2fs953.00 MiB [2] fill in the image file name to be restored: /livemnt/boot/ncweb_img/ncweb_sda1_boot.img <*> [3] Select recover from image: (*) Restore partition from an image file [4] press F5 to go to the next step and click OK. 3. install GRUB: After you confirm that the partition table and partition content exist, REBOOT and restart. Events | SYSTEM-RESCUE-CD 4.0.4 (www.sysresccd.org) events | 1) systemrescumcm: default boot opetions | 2) systemrescumcm: all files cached to memory (docache) | 3) systemrescumcm: framebuffer console in high resolution | 4) systemrescumcm: do not ask for keyboard, use US keym Ap | 5) Boot an exising Linux system installed on the disk | 6) systemrescumcm: alternative kernel with default boot option | 7) systemrescumcm: directly start the graphical environment |) run system tools from floppy disk image...> | B) Standard 32bit kernel (rescue32) with more choice...> | C) Standard 64bit kernel (rescue64) with more choice...> | D) Alternative 32bit kernel (altker32) w Ith more choice...> | E) Alternative 64bit kernel (altker64) with more choice...> | *) Boot from first hard disk | *) Boot from second hard disk ---------------------------------------------------------------- select 5), and press enter. (Wait about 10 minutes, depending on the server) After you enter the system, log on to the root terminal: # grub-install/dev/sda. If an error is prompted, add the running parameters as prompted: # reboot after grub-install/dev/sda -- force is complete. Unplug the USB flash drive.
For other gdisk functions, such as creating a partition [n], deleting a partition [d], and rewriting a partition type [t], run the HELP command on your own ?, To understand.