mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 12:49:14 +08:00
windows: bios + mbr 启动盘最大可用 2t
This commit is contained in:
parent
9f5fcbd87a
commit
4d975fb8b2
5
trans.sh
5
trans.sh
@ -845,11 +845,12 @@ create_part() {
|
|||||||
mkfs.ext4 -F -L os /dev/$xda*3 #3 os
|
mkfs.ext4 -F -L os /dev/$xda*3 #3 os
|
||||||
mkfs.ntfs -f -F -L installer /dev/$xda*4 #4 installer
|
mkfs.ntfs -f -F -L installer /dev/$xda*4 #4 installer
|
||||||
else
|
else
|
||||||
# bios
|
# bios + mbr 启动盘最大可用 2t
|
||||||
|
is_xda_gt_2t && max_usable_size=2TiB || max_usable_size=100%
|
||||||
parted /dev/$xda -s -- \
|
parted /dev/$xda -s -- \
|
||||||
mklabel msdos \
|
mklabel msdos \
|
||||||
mkpart primary ntfs 1MiB -${part_size} \
|
mkpart primary ntfs 1MiB -${part_size} \
|
||||||
mkpart primary ntfs -${part_size} 100% \
|
mkpart primary ntfs -${part_size} ${max_usable_size} \
|
||||||
set 1 boot on
|
set 1 boot on
|
||||||
update_part /dev/$xda
|
update_part /dev/$xda
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user