partition.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 21 Feb 2016 00:18:01 +0200
changeset 1899 2d265814731e
parent 1888 5a71256a6315
child 1905 fba288d59662
permissions -rw-r--r--
Decrease indent level. Highlight only first letter in section.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

======================
 Storage partitioning
======================
.. contents::

MBR
===

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
===================

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

List partitions.
================

Active / maunted partitions::

  $ mount