OpenWRT x86 Style Disks and Booting: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 2: | Line 2: | ||
===For Cloning a Drive=== | ===For Cloning a Drive=== | ||
<code>dd if=/dev/sdX of=/dev/sdY bs=512 count=1</code> | Copy the MBR (GRUB Stage 1 and Partition Table): <code>dd if=/dev/sdX of=/dev/sdY bs=512 count=1</code> | ||
<code>dd if=/dev/sdX of=/dev/sdY bs=512 skip=1 count=511</code> | Copy the (GRUB Stage 1.5, containing the CORE.IMG file): <code>dd if=/dev/sdX of=/dev/sdY bs=512 skip=1 count=511</code> | ||
<code>dd if=/dev/sdX1 of=/dev/sdY1 bs=128M conv=noerror progress=status</code> | Copy the First Partition (/boot Directory): <code>dd if=/dev/sdX1 of=/dev/sdY1 bs=128M conv=noerror progress=status</code> | ||
<code>dd if=/dev/sdX2 of=/dev/sdY2 bs=128M conv=noerror progress=status</code> | Copy the Second Partition (/root equivalent): <code>dd if=/dev/sdX2 of=/dev/sdY2 bs=128M conv=noerror progress=status</code> | ||
<code>sync</code> | Flush any buffered information to disk: <code>sync</code> | ||
Notes; | Notes; | ||