Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
89b7232b
Unverified
Commit
89b7232b
authored
Aug 11, 2020
by
f0rdprefect
Committed by
GitHub
Aug 11, 2020
Browse files
Fix GPT option not working if disk is over 2TB (#387)
parent
1186caba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
INSTALL/tool/VentoyWorker.sh
INSTALL/tool/VentoyWorker.sh
+1
-1
No files found.
INSTALL/tool/VentoyWorker.sh
View file @
89b7232b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment