author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 22 Feb 2016 12:46:36 +0200 | |
changeset 1905 | fba288d59662 |
parent 1888 | 5a71256a6315 |
child 1912 | 8b81a8f0f692 |
permissions | -rw-r--r-- |
1888 | 1 |
.. -*- coding: utf-8; -*- |
2 |
.. include:: HEADER.rst |
|
3 |
||
4 |
====================== |
|
5 |
Storage partitioning |
|
6 |
====================== |
|
7 |
.. contents:: |
|
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1888
diff
changeset
|
8 |
:local: |
1888 | 9 |
|
10 |
MBR |
|
11 |
=== |
|
12 |
||
13 |
Backup MBR:: |
|
14 |
||
15 |
$ dd if=/dev/hda of=boot.mbr bs=512 count=1 |
|
16 |
||
17 |
Restore backuped mbr:: |
|
18 |
||
19 |
$ sudo of=boot.mbr if=/dev/hda bs=512 count=1 |
|
20 |
||
21 |
Backup PC partition |
|
22 |
=================== |
|
23 |
||
24 |
Backup PC partition table:: |
|
25 |
||
26 |
$ sfdisk -d /dev/sda >partition.tbl |
|
27 |
||
28 |
Restore PC partition table:: |
|
29 |
||
30 |
$ sfdisk /dev/sdb <partition.tbl |
|
31 |
||
32 |
Move PC partition table from on dist to another:: |
|
33 |
||
34 |
$ sfdisk -d /dev/sda | sfdisk /dev/sdb |
|
35 |
||
36 |
List partitions. |
|
37 |
================ |
|
38 |
||
39 |
Active / maunted partitions:: |
|
40 |
||
41 |
$ mount |
|
42 |