From bd97bc2f91cdfe78425b6fb8c5f62c47d6e63dca Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Thu, 19 Aug 2010 00:43:44 +0200 Subject: [PATCH] config/release/create_installstick: wipe disk before writing new disklabel, umount any mounted partition first Signed-off-by: Stephan Raue --- config/release/create_installstick | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/release/create_installstick b/config/release/create_installstick index c3d4791a6d..faebd19fd6 100755 --- a/config/release/create_installstick +++ b/config/release/create_installstick @@ -56,8 +56,12 @@ echo "# Please read the instructions and use very carefully.. #" echo "# #" echo "#########################################################" +# (TODO) umount anything + umount $PART + # remove any partition on your drive echo "writing new disklabel on $DISK (remove any partition)..." + dd if=/dev/zero of=$DISK bs=4096 count=1024 parted -s $DISK mklabel msdos # create one partition