Math, asked by finnreegs08, 13 days ago

How can partitioning be used to express one number as a percent of another number?

Answers

Answered by sonamsharmanamo
0

Answer:

Internal Dependencies · Dependencies to Other Products on Windows ... The DiskPart utility can be passed as a partition file to specify the size of the drives. ... The contents of the files that are used to calculate the disk percentage and partition ... They are usually only set in response to actions made by you which amount to ...

Step-by-step explanation:

Answered by hardiksharma50
0

Answer:  OSIM uses Microsoft DiskPart to partition disks and formats using the Microsoft format command. The DiskPart utility can be passed as a partition file to specify the size of the drives. This file cannot be passed as a percentage.This process involves the following steps:

The VB script first calculates the size of the disk to calculate the required percentage. This procedure is done in three steps:

Wiping the primary disk  

Creating a single 100 per cent partition  

Reading the total size of this partition      

This function uses the DelandCreate.txt file that is passed to Microsoft DiskPart.  

The drive total size is inserted in a variable that is called Disk, which is used for the percentage calculations. Set the following variables in the script:  

DISKMIN: This variable specifies the minimum size (in GB) of the C drive.  

Default: 10 GB  

DISKUSE  

This variable specifies the percentage of the disk that must be used for the C drive. The calculation compares the values in GB and determines the highest value to be used.  

Example:  

If DISKMIN was set to 50 GB and DISKUSE was set to 50 per cent and you have run this on a computer with an 80-GB disk, DISKMIN runs and the C drive is created as 50 GB, with a D drive of 30 GB. If you have run the same script on a computer with a 200-GB disk, DISKUSE is used and the result is a 100-GB C drive and a 100-GB D drive.  

After the calculation, the Diskpart_template is updated with the correct values as DiskPart requires, to create an input file named diskmain.txt. This file contains all the required values.  

Run Microsoft DiskPart again with movecd.txt, which moves the existing cdrom drive from D to E drive. This action ensures that the D drive is available to allocate to the second partition.  

Microsoft Diskpart is invoked again with diskmain.txt. This text file wipes the primary disk and creates two partitions that are based on the calculation earlier.

Step-by-step explanation:

Similar questions