|
|
@ -1750,6 +1750,7 @@ int InstallVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive, int PartStyle, int TryId)
|
|
|
|
UINT64 Part1SectorCount = 0;
|
|
|
|
UINT64 Part1SectorCount = 0;
|
|
|
|
UINT64 Part2StartSector = 0;
|
|
|
|
UINT64 Part2StartSector = 0;
|
|
|
|
BOOL LargeFAT32 = FALSE;
|
|
|
|
BOOL LargeFAT32 = FALSE;
|
|
|
|
|
|
|
|
BOOL DefaultExFAT = FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
Log("#####################################################");
|
|
|
|
Log("#####################################################");
|
|
|
|
Log("InstallVentoy2PhyDrive try%d %s PhyDrive%d <<%s %s %dGB>>", TryId,
|
|
|
|
Log("InstallVentoy2PhyDrive try%d %s PhyDrive%d <<%s %s %dGB>>", TryId,
|
|
|
@ -1862,6 +1863,17 @@ int InstallVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive, int PartStyle, int TryId)
|
|
|
|
goto End;
|
|
|
|
goto End;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (GetVentoyFsType() == VTOY_FS_EXFAT && GetClusterSize() == 0)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Log("Formatting part1 exFAT ...");
|
|
|
|
|
|
|
|
DefaultExFAT = TRUE;
|
|
|
|
|
|
|
|
if (0 != FormatPart1exFAT(pPhyDrive->SizeInBytes))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Log("FormatPart1exFAT failed.");
|
|
|
|
|
|
|
|
rc = 1;
|
|
|
|
|
|
|
|
goto End;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Log("Zero part1 file system ...");
|
|
|
|
Log("Zero part1 file system ...");
|
|
|
@ -2008,6 +2020,11 @@ End:
|
|
|
|
Log("No need to reformat for large FAT32");
|
|
|
|
Log("No need to reformat for large FAT32");
|
|
|
|
pPhyDrive->VentoyFsClusterSize = GetVolumeClusterSize(MountDrive);
|
|
|
|
pPhyDrive->VentoyFsClusterSize = GetVolumeClusterSize(MountDrive);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (DefaultExFAT)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Log("No need to reformat for default exfat");
|
|
|
|
|
|
|
|
pPhyDrive->VentoyFsClusterSize = GetVolumeClusterSize(MountDrive);
|
|
|
|
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
bRet = DISK_FormatVolume(MountDrive, GetVentoyFsType(), Part1SectorCount * 512);
|
|
|
|
bRet = DISK_FormatVolume(MountDrive, GetVentoyFsType(), Part1SectorCount * 512);
|
|
|
|