From 89b7232b7691a19c46f817dd9acf1accd9b90f70 Mon Sep 17 00:00:00 2001 From: f0rdprefect Date: Tue, 11 Aug 2020 04:52:49 +0200 Subject: [PATCH] Fix GPT option not working if disk is over 2TB (#387) --- INSTALL/tool/VentoyWorker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL/tool/VentoyWorker.sh b/INSTALL/tool/VentoyWorker.sh index 6f20a084..ca8bd3fa 100644 --- a/INSTALL/tool/VentoyWorker.sh +++ b/INSTALL/tool/VentoyWorker.sh @@ -144,7 +144,7 @@ if [ "$MODE" = "install" ]; then disk_sector_num=$(cat /sys/block/${DISK#/dev/}/size) disk_size_gb=$(expr $disk_sector_num / 2097152) - if [ $disk_sector_num -gt 4294967296 ]; then + if [ $disk_sector_num -gt 4294967296 ] && [ -z $VTGPT ]; then vterr "$DISK is over 2TB size, MBR will not work on it." exit 1 fi