partition.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 25 Oct 2011 10:46:59 +0300
changeset 1065 40c825357158
parent 899 7b4265c8d324
permissions -rw-r--r--
How to add, modify, or delete registry subkeys and values by using a registration entries.

-*- mode: outline; coding: utf-8; -*-

* Backup mbr.

  $ dd if=/dev/hda of=boot.mbr bs=512 count=1

* Restore backuped mbr:

  $ sudo of=boot.mbr if=/dev/hda bs=512 count=1

* Backup PC partition table.

  $ sfdisk -d /dev/sda >partition.tbl

* Restore PC partition table.

  $ sfdisk /dev/sdb <partition.tbl

* Move PC partition table from on dist to another.

  $ sfdisk -d /dev/sda | sfdisk /dev/sdb