partition.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 07 Feb 2011 21:46:29 +0200
changeset 801 1bf976799d63
parent 753 052ba865b3dc
child 899 7b4265c8d324
permissions -rwxr-xr-x
Which Cygwin version you run?

-*- mode: outline; coding: utf-8; fill-column: 80 -*-

* 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