]> git.friedersdorff.com Git - max/disk_creator.git/blobdiff - disk_creator.sh
Wait after partitioning
[max/disk_creator.git] / disk_creator.sh
index 90238b026597e9cad91dd812dc5b8cb7fccef9e6..98dfea9fb43c0145ea3af6a6e91dff147979a369 100755 (executable)
@@ -107,6 +107,9 @@ main() {
        type=20
        EOF
 
+       # waiting to ensure disk has been re recognised after partitioning
+       sleep 10
+
        # Format each partition with the relevant filesystem.
        mkfs.ntfs --fast -L usbdata "${usb_drive}1"
        mkfs.fat -F 32 "${usb_drive}2"