OpenWRT and Backing Up: Difference between revisions
mNo edit summary |
|||
| Line 84: | Line 84: | ||
**Mount the LOOP Device (again for an x86 system) | **Mount the LOOP Device (again for an x86 system) | ||
***Example: mount -t f2fs /dev/loop1 /mnt/loop1 (mkdir /mnt/loop1 before this command of course) | ***Example: mount -t f2fs /dev/loop1 /mnt/loop1 (mkdir /mnt/loop1 before this command of course) | ||
**...and that's it for x86 devices. From there, just cp | **...and that's it for x86 devices. From there, just cp | ||
<nowiki>*</nowiki>If you haven't spotted it yet, but you've been asking, "Where is that file that OpenWRT mounts a Directory named /overlay as a LOOP Device?" Answer: There is no file. It is simply a sector on the Disk / SSD Drive to the end of it. And you might ask, "But won't it be overwritten?" Answer: Nope, because everything before it is considered ROM (as in no write), so it won't expand. And yes that means the entire disk drive (well, at least the OpenWRT partitions) is considered a File that breaks down into a ROM Section and an /overlay Section. | <nowiki>*</nowiki>If you haven't spotted it yet, but you've been asking, "Where is that file that OpenWRT mounts a Directory named /overlay as a LOOP Device?" Answer: There is no file. It is simply a sector on the Disk / SSD Drive to the end of it. And you might ask, "But won't it be overwritten?" Answer: Nope, because everything before it is considered ROM (as in no write), so it won't expand. And yes that means the entire disk drive (well, at least the OpenWRT partitions) is considered a File that breaks down into a ROM Section and an /overlay Section. | ||
| Line 92: | Line 92: | ||
mount -t f2fs /dev/loop1 /mnt/loop1 | mount -t f2fs /dev/loop1 /mnt/loop1 | ||
=== MBR Gap === | |||
And it seemed like all the backup stuff was done. Nope. There's also a 'hidden' (not on purpose) region in the [[wikipedia:BIOS_boot_partition#Overview|MBR Gap]] that contains [[wikipedia:GNU_GRUB#Version_0_(GRUB_Legacy)|stage 1.5 of the GRUB Boot Loader]]. See this: [[OpenWRT x86 Style Disks and Booting|OpenWRT x86 Style Disks and Booting - Wiki.TerraBase.info]] | |||
=== Summary of Everything Backed Up === | |||
* MBR | |||
* MBR Gap | |||
* Boot Partition | |||
* Root Partition | |||
* Overlay "Partition" | |||
===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) | ||