]> gitweb.fluxo.info Git - hydra.git/commitdiff
Comment about erasing MBR
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 14 Feb 2014 23:34:09 +0000 (21:34 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 14 Feb 2014 23:34:09 +0000 (21:34 -0200)
share/hydra/bootless

index cc3e79f75f50ce24e879bf3573bd35b51de04294..457ba8d8c6b957ab7996889872018a2c45265369 100755 (executable)
@@ -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."