From 6f39be0aae716a86b410556630ac48ed4da4c6f5 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Fri, 27 Oct 2017 17:00:11 +0200 Subject: capture and deploy script updates (not finished yet) --- nfs/scripts/image_capture_I4920.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nfs/scripts/image_capture_I4920.sh (limited to 'nfs/scripts/image_capture_I4920.sh') diff --git a/nfs/scripts/image_capture_I4920.sh b/nfs/scripts/image_capture_I4920.sh new file mode 100644 index 0000000..8f70b26 --- /dev/null +++ b/nfs/scripts/image_capture_I4920.sh @@ -0,0 +1,15 @@ +#!/bin/busybox sh +# Should only started from image_capture.sh, it defines some helper functions and variables) +# echo_color() [prefix text] +# $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 /dev/sda boot sectors" +dd if=/dev/sda count=2048 2>logs/sda-dd.log | pigz --fast > sda-dd.gz 2>logs/sda-pigz.log + +echo_color white blue ">>> " "Capturing /dev/sda1 NTFS BOOT" +partclone.ntfs --clone -s /dev/sda1 -L logs/sda1-partclone.log --no_check | pigz --fast >sda1-partclone.gz 2>logs/sda1-pigz.log + +echo_color white blue ">>> " "Capturing /dev/sda2 NTFS WINDOWS" +partclone.ntfs --clone -s /dev/sda2 -L logs/sda2-partclone.log --no_check | pigz --fast >sda2-partclone.gz 2>logs/sda2-pigz.log + -- cgit v1.2.3