diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2020-07-04 23:38:38 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2020-07-04 23:38:38 +0200 |
commit | cf81fed0c9277550e6b98927f7ff2f8eb5de7b40 (patch) | |
tree | d193ebdaed1853d2868c26c43d2fc0c00ebb42ac /nfs/scripts/image_capture_I5734.sh | |
parent | 8d273fe8d76ef394cfab04a195c90f4b7aeb8495 (diff) | |
download | eficast-cf81fed0c9277550e6b98927f7ff2f8eb5de7b40.tar.gz eficast-cf81fed0c9277550e6b98927f7ff2f8eb5de7b40.tar.bz2 eficast-cf81fed0c9277550e6b98927f7ff2f8eb5de7b40.zip |
Add blkdiscard on image. Add nfs scripts newer examples.
Diffstat (limited to 'nfs/scripts/image_capture_I5734.sh')
-rw-r--r-- | nfs/scripts/image_capture_I5734.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nfs/scripts/image_capture_I5734.sh b/nfs/scripts/image_capture_I5734.sh new file mode 100644 index 0000000..02411f1 --- /dev/null +++ b/nfs/scripts/image_capture_I5734.sh @@ -0,0 +1,22 @@ +#!/bin/busybox sh +# Should only started from image_capture.sh, it defines some helper functions and variables) +# echo_color() <text-color> <background-color> <message> +# $outdir is the also the current working dir, garanted to be empty and writable +# Many cloning/partitioning tools are available for use, see make-boot-image.sh + +echo_color white blue ">>> Capturing ${firstdisk} boot sectors" +dd if=${firstdisk} count=2048 2>logs/sda-dd.log | pigz --fast > sda-dd.gz 2>logs/sda-pigz.log + +echo_color white blue ">>> Capturing ${firstdiskp}1 NTFS WinRecovery" +partclone.ntfs --clone -s ${firstdiskp}1 -L logs/sda1-partclone.log --no_check | pigz --fast >sda1-partclone.gz 2>logs/sda1-pigz.log + +echo_color white blue ">>> Capturing ${firstdiskp}2 FAT32 EFI" +partclone.vfat --clone -s ${firstdiskp}2 -L logs/sda2-partclone.log --no_check | pigz --fast >sda2-partclone.gz 2>logs/sda2-pigz.log + +echo_color white blue ">>> Capturing ${firstdiskp}3 RAW M$ Reserved" +dd if=${firstdiskp}3 2>logs/sda3-dd.log | pigz --fast >sda3-dd.gz 2>logs/sda3-pigz.log + +echo_color white blue ">>> Capturing ${firstdiskp}4 NTFS Win10" +partclone.ntfs --clone -s ${firstdiskp}4 -L logs/sda4-partclone.log --no_check | pigz --fast >sda4-partclone.gz 2>logs/sda4-pigz.log + +echo_color white blue ">>> End of capture" |