1888
|
1 |
.. -*- coding: utf-8; -*-
|
|
2 |
.. include:: HEADER.rst
|
|
3 |
|
|
4 |
======================
|
|
5 |
Storage partitioning
|
|
6 |
======================
|
|
7 |
.. contents::
|
|
8 |
|
|
9 |
MBR
|
|
10 |
===
|
|
11 |
|
|
12 |
Backup MBR::
|
|
13 |
|
|
14 |
$ dd if=/dev/hda of=boot.mbr bs=512 count=1
|
|
15 |
|
|
16 |
Restore backuped mbr::
|
|
17 |
|
|
18 |
$ sudo of=boot.mbr if=/dev/hda bs=512 count=1
|
|
19 |
|
|
20 |
Backup PC partition
|
|
21 |
===================
|
|
22 |
|
|
23 |
Backup PC partition table::
|
|
24 |
|
|
25 |
$ sfdisk -d /dev/sda >partition.tbl
|
|
26 |
|
|
27 |
Restore PC partition table::
|
|
28 |
|
|
29 |
$ sfdisk /dev/sdb <partition.tbl
|
|
30 |
|
|
31 |
Move PC partition table from on dist to another::
|
|
32 |
|
|
33 |
$ sfdisk -d /dev/sda | sfdisk /dev/sdb
|
|
34 |
|
|
35 |
List partitions.
|
|
36 |
================
|
|
37 |
|
|
38 |
Active / maunted partitions::
|
|
39 |
|
|
40 |
$ mount
|
|
41 |
|