mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-03-13 05:00:17 -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_sector_num=$(cat /sys/block/${DISK#/dev/}/size)
|
||||||
disk_size_gb=$(expr $disk_sector_num / 2097152)
|
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."
|
vterr "$DISK is over 2TB size, MBR will not work on it."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user