diff --git a/rootfs-create b/rootfs-create index 41117dc..3f73e43 100755 --- a/rootfs-create +++ b/rootfs-create @@ -134,11 +134,11 @@ if [ -d ${TARGET_ROOTFS_DIR} ]; then echo echo -n " Deleting cached entries from /var/lib/apt/lists ... " - rm `find ${TARGET_ROOTFS_DIR}/var/lib/apt/lists -maxdepth 1 -type f -not -name "lock"` + rm `find ${TARGET_ROOTFS_DIR}/var/lib/apt/lists -maxdepth 1 -type f -not -name "lock"` > /dev/null 2>&1 echo "done." echo -n " Deleting package lists... " - rm "${TARGET_ROOTFS_DIR}/var/cache/apt/*.bin" + rm ${TARGET_ROOTFS_DIR}/var/cache/apt/*.bin > /dev/null 2>&1 echo "done." fi fi diff --git a/sdcard-img-create b/sdcard-img-create index d406a6d..c5b18c5 100755 --- a/sdcard-img-create +++ b/sdcard-img-create @@ -134,6 +134,8 @@ if [ "${YesNo}" = "Yes" ]; then echo "done" fi +sleep 5 + echo "-------------------------------------------------------------------------------" echo " Unmapping partitions from ev3dev.img ... " echo diff --git a/sdcard-img-populate b/sdcard-img-populate index ca8fcad..d146d99 100755 --- a/sdcard-img-populate +++ b/sdcard-img-populate @@ -72,7 +72,7 @@ eval mount "/dev/mapper/loop?-ev3dev-1" "./ev3dev-fat32" eval mount "/dev/mapper/loop?-ev3dev-2" "./ev3dev-ext3" echo "-------------------------------------------------------------------------------" -echo -n " Copying the uImage and ev3dev.rc.local script to the fat32 partition ... " +echo -n " Copying uImage and ev3dev.rc.local to the fat32 partition ... " cp -dR rootfs-updates/boot_part/* ev3dev-fat32 @@ -106,6 +106,24 @@ mkdir ev3dev-ext3/media/mmc_p1 echo "done." +echo "-------------------------------------------------------------------------------" +echo -n " Filling unused sectors on FAT32 partition with zeros ... " + +dd if=/dev/zero of=ev3dev-fat32/zero.fill > /dev/null 2>&1 +sleep 3 +rm ev3dev-fat32/zero.fill + +echo "done." + +echo "-------------------------------------------------------------------------------" +echo -n " Filling unused sectors on ext3 partition with zeros ... " + +dd if=/dev/zero of=ev3dev-ext3/zero.fill > /dev/null 2>&1 +sleep 3 +rm ev3dev-ext3/zero.fill + +echo "done." + echo "-------------------------------------------------------------------------------" echo " Unmounting ev3dev.img partitions ... "