Partitioning https://tech.feedyourhead.at/ en Copy the partition table from one disk to another https://tech.feedyourhead.at/content/copy-partition-table-one-disk-another <span class="field field--name-title field--type-string field--label-hidden">Copy the partition table from one disk to another</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Sometimes it is neccessary to copy the partition-table of one disk to another. Mostly this is needed when a disk should be replaced on a software-raid-array. The method described here also works for GPT-Tables..</p> <h5>Backup the table of /dev/sda:</h5> <pre> <code>sgdisk --backup=table /dev/sda</code></pre> <h5>Restore the table to the new disk:</h5> <pre> <code>sgdisk --load-backup=table /dev/sdb</code></pre> <h5>Backup and Restore from /dev/sda to /dev/sdb in one command:</h5> <pre> <code>sgdisk -R /dev/sdb /dev/sda</code></pre> <h5>Finally randomize the GUID of all partitions on the disk:</h5> <pre> <code>sgdisk -G /dev/sdb</code></pre> <h4>&nbsp;</h4> <h4>Method for MBR-Tables</h4> <h5>Copy table from /dev/sda to /dev/sdb:</h5> <pre> <code>sfdisk -d /dev/sda | sfdisk /dev/sdb</code></pre> <h5>(Optional)If you don't see the partitions, read it again:</h5> <pre> <code>sfdisk -R /dev/sdb</code></pre> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/users/hoti" typeof="schema:Person" property="schema:name" datatype="">Hoti</span></span> <span class="field field--name-created field--type-created field--label-hidden">Dec 16 2014</span> <div class="field field--name-field-tagies field--type-entity-reference field--label-above"> <div class="field__label">Tags</div> <div class='field__items'> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/sysadmin" hreflang="en">Sysadmin</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/Linux" hreflang="en">Linux</a></div> <div class="field__item"><i class="fa fa-tags"></i> <a href="/tags/partitioning" hreflang="en">Partitioning</a></div> </div> </div> <section class="field field--name-comment-node-blog field--type-comment field--label-hidden comment-wrapper"> </section> <section class="field field--name-comment field--type-comment field--label-above comment-wrapper"> <h2 class='title comment-form__title'> <i class="fa fa-comments-o"></i> Add new comment</h2> <drupal-render-placeholder callback="comment.lazy_builders:renderForm" arguments="0=node&amp;1=24&amp;2=comment&amp;3=comment" token="il4vi1tuc-f9mTyd8cePW6m-r9oNOEJugFEvo25A8Aw"></drupal-render-placeholder> </section> Tue, 16 Dec 2014 09:33:10 +0000 Hoti 24 at https://tech.feedyourhead.at