From b3a08aa3188ac8c369d45665b6fdf31490e48d23 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:05:50 +0200 Subject: [PATCH 1/7] Hide dd output --- run/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run/install.sh b/run/install.sh index 0d9f806..2f98ee6 100644 --- a/run/install.sh +++ b/run/install.sh @@ -129,7 +129,7 @@ else GB=$(( (SYSTEM_SIZE + 1073741823)/1073741824 )) echo "Install: Writing ${GB} GB of zeroes, please wait.." - dd if=/dev/zero of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes + dd if=/dev/zero of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes > /dev/null fi From 75bba26eb4d3a27d0e1996856f3ce921e8be97a1 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:06:50 +0200 Subject: [PATCH 2/7] Hide dd output --- run/disk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/disk.sh b/run/disk.sh index 86b9c08..4d6f53b 100644 --- a/run/disk.sh +++ b/run/disk.sh @@ -48,7 +48,7 @@ if [ -f "${DATA}" ]; then if [ "$ALLOCATE" = "Z" ]; then GB=$(( (REQ + 1073741823)/1073741824 )) - echo "INFO: Writing ${GB} GB of zeroes, please wait.." + echo "INFO: Writing ${GB} GB of zeroes, please wait.." > /dev/null dd if=/dev/zero of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes @@ -94,7 +94,7 @@ if [ ! -f "${DATA}" ]; then echo "INFO: Writing ${DISK_SIZE} of zeroes, please wait.." - dd if=/dev/zero of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes + dd if=/dev/zero of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes > /dev/null else From c41911a7c5d2b1f2a2643578e3fa415071bb946e Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:09:06 +0200 Subject: [PATCH 3/7] Write random --- run/disk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/disk.sh b/run/disk.sh index 4d6f53b..bd867b1 100644 --- a/run/disk.sh +++ b/run/disk.sh @@ -50,7 +50,7 @@ if [ -f "${DATA}" ]; then GB=$(( (REQ + 1073741823)/1073741824 )) echo "INFO: Writing ${GB} GB of zeroes, please wait.." > /dev/null - dd if=/dev/zero of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes + dd if=/dev/urandom of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes else @@ -94,7 +94,7 @@ if [ ! -f "${DATA}" ]; then echo "INFO: Writing ${DISK_SIZE} of zeroes, please wait.." - dd if=/dev/zero of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes > /dev/null + dd if=/dev/urandom of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes > /dev/null else From e68ab4fbc9b7909a17c6c4c8d60468c5d7b84111 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:10:23 +0200 Subject: [PATCH 4/7] Write random --- run/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/install.sh b/run/install.sh index 2f98ee6..daa6ece 100644 --- a/run/install.sh +++ b/run/install.sh @@ -127,9 +127,9 @@ if [ "$ALLOCATE" != "Z" ]; then else GB=$(( (SYSTEM_SIZE + 1073741823)/1073741824 )) - echo "Install: Writing ${GB} GB of zeroes, please wait.." + echo "Install: Filling ${GB} GB of space, please wait.." - dd if=/dev/zero of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes > /dev/null + dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes > /dev/null fi From ecbff16fa27ce41d704874feba0ee1d10a236771 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:11:22 +0200 Subject: [PATCH 5/7] Write random --- run/disk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/disk.sh b/run/disk.sh index bd867b1..bca09aa 100644 --- a/run/disk.sh +++ b/run/disk.sh @@ -48,7 +48,7 @@ if [ -f "${DATA}" ]; then if [ "$ALLOCATE" = "Z" ]; then GB=$(( (REQ + 1073741823)/1073741824 )) - echo "INFO: Writing ${GB} GB of zeroes, please wait.." > /dev/null + echo "INFO: Filling ${GB} GB of space, please wait.." > /dev/null dd if=/dev/urandom of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes @@ -92,7 +92,7 @@ if [ ! -f "${DATA}" ]; then if [ "$ALLOCATE" = "Z" ]; then - echo "INFO: Writing ${DISK_SIZE} of zeroes, please wait.." + echo "INFO: Filling ${DISK_SIZE} of space, please wait.." dd if=/dev/urandom of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes > /dev/null From 4f4d3b01441d92cdc5043aadad0f8c19386769b3 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:21:36 +0200 Subject: [PATCH 6/7] Write random --- run/disk.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run/disk.sh b/run/disk.sh index bca09aa..c296dbb 100644 --- a/run/disk.sh +++ b/run/disk.sh @@ -48,9 +48,9 @@ if [ -f "${DATA}" ]; then if [ "$ALLOCATE" = "Z" ]; then GB=$(( (REQ + 1073741823)/1073741824 )) - echo "INFO: Filling ${GB} GB of space, please wait.." > /dev/null + echo "INFO: Writing ${GB} GB of random data, please wait.." - dd if=/dev/urandom of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes + dd if=/dev/urandom of="${DATA}" seek="${OLD_SIZE}" count="${REQ}" bs=1M iflag=count_bytes oflag=seek_bytes status=none else @@ -92,9 +92,9 @@ if [ ! -f "${DATA}" ]; then if [ "$ALLOCATE" = "Z" ]; then - echo "INFO: Filling ${DISK_SIZE} of space, please wait.." + echo "INFO: Writing ${DISK_SIZE} of random data, please wait.." - dd if=/dev/urandom of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes > /dev/null + dd if=/dev/urandom of="${DATA}" count="${DATA_SIZE}" bs=1M iflag=count_bytes status=none else From 29720e8e065f5a80f819beb87f87593e0886f322 Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 19 Apr 2023 05:22:28 +0200 Subject: [PATCH 7/7] Write random --- run/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run/install.sh b/run/install.sh index daa6ece..14bb9b8 100644 --- a/run/install.sh +++ b/run/install.sh @@ -127,9 +127,9 @@ if [ "$ALLOCATE" != "Z" ]; then else GB=$(( (SYSTEM_SIZE + 1073741823)/1073741824 )) - echo "Install: Filling ${GB} GB of space, please wait.." + echo "Install: Writing ${GB} GB of random data, please wait.." - dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes > /dev/null + dd if=/dev/urandom of="${SYSTEM}" count="${SYSTEM_SIZE}" bs=1M iflag=count_bytes status=none fi