mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
config/release/create_installstick: wipe disk before writing new disklabel, umount any mounted partition first
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
080f785e2b
commit
bd97bc2f91
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user