OpenWRT and Backing Up: Difference between revisions

mNo edit summary
Line 33: Line 33:


dd if=/dev/WhatEverSDx of=/mnt/WhatEverSDx/WhatEverImageName.img conv=sync,noerror bs=64K status=progress (Example: dd if=/dev/sdb of=/mnt/sda1/ALL.img conv=noerror,sparse bs=1M status=progress)
dd if=/dev/WhatEverSDx of=/mnt/WhatEverSDx/WhatEverImageName.img conv=sync,noerror bs=64K status=progress (Example: dd if=/dev/sdb of=/mnt/sda1/ALL.img conv=noerror,sparse bs=1M status=progress)
Remember, using DD to clone /dev/WhatEverSDx is not enough.  There's also the /overlay Directory / Loop Device to consider.


====Create a "Device" to Mount, IE Associate a File with a Loop Device Node====
====Create a "Device" to Mount, IE Associate a File with a Loop Device Node====
Line 56: Line 58:
Bad news.  The delete command doesn't always work.  After issuing the command on a legitimate Loop Device, and with no errors, the Loop Device will persist.  Checking it with LOSETUP -a shows it is still there.  Accessing it with CFDISK or MOUNT still works.  Oh, well.  Windows solution time.  Reboot.
Bad news.  The delete command doesn't always work.  After issuing the command on a legitimate Loop Device, and with no errors, the Loop Device will persist.  Checking it with LOSETUP -a shows it is still there.  Accessing it with CFDISK or MOUNT still works.  Oh, well.  Windows solution time.  Reboot.


=== And More... ===
===And More...===
What about taking that RAW Image created by DD and turning it into a VHD File (or just about any other virtual disk format)
What about taking that RAW Image created by DD and turning it into a VHD File (or just about any other virtual disk format)