partition.rst
changeset 753 052ba865b3dc
child 899 7b4265c8d324
equal deleted inserted replaced
752:8423422f0a57 753:052ba865b3dc
       
     1 -*- mode: outline; coding: utf-8; fill-column: 80 -*-
       
     2 
       
     3 * Backup mbr.
       
     4 
       
     5   $ dd if=/dev/hda of=boot.mbr bs=512 count=1
       
     6 
       
     7 * Restore backuped mbr:
       
     8 
       
     9   $ sudo of=boot.mbr if=/dev/hda bs=512 count=1
       
    10 
       
    11 * Backup PC partition table.
       
    12 
       
    13   $ sfdisk -d /dev/sda >partition.tbl
       
    14 
       
    15 * Restore PC partition table.
       
    16 
       
    17   $ sfdisk /dev/sdb <partition.tbl
       
    18 
       
    19 * Move PC partition table from on dist to another.
       
    20 
       
    21   $ sfdisk -d /dev/sda | sfdisk /dev/sdb
       
    22