OpenWRT x86 Style Disks and Booting: Difference between revisions

mNo edit summary
mNo edit summary
Line 1: Line 1:
'''SEE THIS ARTICLE INSTEAD: [[OpenWRT and Bare Metal BackUps#Restoring%20a%20BackUp%20from%20an%20Image%20File(s)|OpenWRT and Bare Metal BackUps - Wiki.TerraBase.info]]'''
For this experiment EXT 4 will be used (as opposed to SquashFS).
For this experiment EXT 4 will be used (as opposed to SquashFS).
<br />


===For Cloning a Drive===
===For Cloning a Drive===
Line 15: Line 15:
Copy the First Partition (/boot Directory): <code>dd if=/run/media/root/NTFS/Boot.img of=/dev/sdc skip=511 conv=noerror bs=512 status=progress</code>
Copy the First Partition (/boot Directory): <code>dd if=/run/media/root/NTFS/Boot.img of=/dev/sdc skip=511 conv=noerror bs=512 status=progress</code>


* Example of saving to a Disk / SSD from an Image File:  <code>dd if=/dev/sdb of=/mnt/sda1/MBR_and_MBR-Gap.img conv=noerror bs=512 count=511 status=progress</code>
*Example of saving to a Disk / SSD from an Image File:  <code>dd if=/dev/sdb of=/mnt/sda1/MBR_and_MBR-Gap.img conv=noerror bs=512 count=511 status=progress</code>


Copy the Second Partition (/root equivalent): <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>