mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-03-12 20:50:15 -04:00
Fix GPT option not working if disk is over 2TB
This commit is contained in:
parent
1186caba41
commit
21be4a4d1c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user