mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-26 23:25:57 -05:00
Fix GPT option not working if disk is over 2TB (#387)
This commit is contained in:
parent
1186caba41
commit
89b7232b76
@ -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…
Reference in New Issue
Block a user