You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On Arch the script still gets killed before it's finished, no matter what I do.
So that needs to be fixed, but hopefully it will work fine on Raspbian (the target platform)
with just launching it in a subshell.
The progress indicator will need to accept lines of integers indicating percentage complete from
stdin, I've marked this line (25) where you need to replace a stop-gap and insert your own.
I found that pv, used in this way, will mimic dd, so using dd in the pipeline wasn't necessary (:
Mounting a backup image file partition
First find the offset from the fdisk output `image.info`, it will be located
in the 'start' column. multiply that number by 512 then use that as the
offset option to mount:
`
# cat image.info
Disk /dev/sdb: 7.5 GiB, 8004304896 bytes, 15633408 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 2 15633407 7816703 b W95 FAT32
# mount -o loop,ro,offset=$((2 * 512)) -t auto image.img /media
`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters