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.
Open up a terminal and perform the following actions as said in the following images...
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
Use the following command to partition the disk
$ sudo cfdisk /dev/sde
Select the option "Guid Partition Table"
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.
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