OpenWRT x86 Style Disks and Booting: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 4: | Line 4: | ||
<code>dd if=/dev/sdX of=/dev/sdY bs=512 count=1</code> | <code>dd if=/dev/sdX of=/dev/sdY bs=512 count=1</code> | ||
<code>dd if=/dev/sdX of=/dev/sdY bs=512 count= | <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> | <code>dd if=/dev/sdX1 of=/dev/sdY1 bs=128M conv=noerror progress=status</code> | ||
Line 14: | Line 14: | ||
Notes; | Notes; | ||
* if: Input File (or Device) | *if: Input File (or Device) | ||
* of: Output File (or Device) | *of: Output File (or Device) | ||
* bs: "How much to copy from one device to another at a time" | *bs: "How much to copy from one device to another at a time" | ||
* conv=noerror: "Don't stop, just do what I told you to do, and don't give an excuse" | *conv=noerror: "Don't stop, just do what I told you to do, and don't give an excuse" | ||
* progress = status: Show the progress of the copy process (only for a certain version of DD and up) | *progress = status: Show the progress of the copy process (only for a certain version of DD and up) | ||
* sync: Write all buffered blocks to disk (just to be safe) | *sync: Write all buffered blocks to disk (just to be safe) | ||
* If conv=sync is used an out of space error will occur. | *If conv=sync is used an out of space error will occur. |
Revision as of 19:33, 4 September 2023
For this experiment EXT 4 will be used (as opposed to SquashFS)
For Cloning a Drive
dd if=/dev/sdX of=/dev/sdY bs=512 count=1
dd if=/dev/sdX of=/dev/sdY bs=512 skip=1 count=511
dd if=/dev/sdX1 of=/dev/sdY1 bs=128M conv=noerror progress=status
dd if=/dev/sdX2 of=/dev/sdY2 bs=128M conv=noerror progress=status
sync
Notes;
- if: Input File (or Device)
- of: Output File (or Device)
- bs: "How much to copy from one device to another at a time"
- conv=noerror: "Don't stop, just do what I told you to do, and don't give an excuse"
- progress = status: Show the progress of the copy process (only for a certain version of DD and up)
- sync: Write all buffered blocks to disk (just to be safe)
- If conv=sync is used an out of space error will occur.