Friday, December 25, 2020

Chapter 2 : Creat, Partitioning and Format a Virtual Hard Disk

Hi, 

In this post/chapter i am going to talk about creating a virtual hard disk and formatting it. 

let us get started...

I have split this blog into four sections namely Creating, Partitioning, Formatting and Mounting, which we can discuss in a detailed manner....

Creating a Virtual Hard Disk

In this section, I would like to display images rather writing down the steps... the following images would detail you on how a virtual hard disk should be created using virtual box. the following images are the activities that you can find under the settings menu of each virtual host.




















Start the virtual host.
 
Conclusion


From the image above, if you look at the "Attached to" property it would tell us that, the created hard disk is now successfully attached to the virtual host.


Form the list of block devices, "sde" is the one that we attached to the virtual host.

Partitioning the Virtual Hard Disk

Open up a terminal and perform the following actions as said in the following images...

Use the following command to partition the disk 

$ sudo cfdisk /dev/sde




Select the option "Guid Partition Table"



As I said, the first partition should be of size 100 MB which is the boot partition.







The second partition is of size 30 GB, the size is not necessarily of this much, it is up to us to decide, the minimum recommended size is 10 GB.





The rest I have decided to have it as the swap partition, the basic idea on the size of the swap partition is that it should have twice as that of the primary memory.





When everything is set, we are good to go writing the partition table on the disk. Use the write option to have it done.


 
Conclusion



the above image would conclude the partitioning of the virtual hard disk "sde"


Formatting the Virtual Hard Disk

This section describes the writing of file system on the partitions created...

Use the following commands to write the file system on the specified partitons... 

On the boot partition i.e /dev/sde1

$ sudo mkfs -v -t ext2 /dev/sde1

ext2 is the file system, which is recommended by the linux itself for the boot partition.




$ sudo mkfs -v -t ext4 /dev/sde2



sudo mkswap /dev/sde3



Here we conclude the formatting the partitions and the same can be concluded as follows...

Conclusion



No comments:

Post a Comment

Addressing Modes of 8080 / 8085 MicroProcessor

Hi,   In this post I am going to talk about different addressing modes of 8080/8085...without much talking let us get into the topic.   Ther...