From: Silvio Rhatto Date: Fri, 14 Feb 2014 23:34:09 +0000 (-0200) Subject: Comment about erasing MBR X-Git-Tag: 0.2~2 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a400fd8842a2ccb2d21fd772022c4f07f5b20a9b;p=hydra.git Comment about erasing MBR --- diff --git a/share/hydra/bootless b/share/hydra/bootless index cc3e79f..457ba8d 100755 --- a/share/hydra/bootless +++ b/share/hydra/bootless @@ -295,6 +295,10 @@ function hydra_bootless_device { local device="$1" local subdevice="$2" + # Erase disk MBR + # http://askubuntu.com/questions/158299/why-does-installing-grub2-give-an-iso9660-filesystem-destruction-warning + #sudo dd if=/dev/zero of=/dev/${usbdevice} bs=512 seek=1 count=2047 + # Check if device is mounted if [ "`mount | grep ${subdevice}`" != "" ]; then echo "Error: device \"${subdevice}\" is mounted."