I already created the virtual hard drive. I just need clarification on how to format it and mount to filesystem.
To create a hard drive and format it as ext4 and then mounting in fedora is done as follows:
The ext4 is a journaling filesystem in fedora which is a Linux distribution.
Now to start creating a new partition
Step1: Use command # fdisk-l or #parted-l, to view then partition on the hard drive
Step2: Noe create a portion on the drive using the command
#parted /dev/sdb
then label the drive
(parted) mklabel msdos command
Step 3: Then create a partition using the mkpart command as:
(parted) mkpart
then confirm the system that it is ext4 type partition and also give the size of the partition.
Step 4: Use the print command to see the partition.
----------------------------------------------------------------------
Now to format the partition, this is as follows:
Step 1: Use command # mkfs.ext4 /dev/sdb1 to make the format to the new partition.
Step 2: then we label the partition using the e4label command this a sfollows:
# e4label /dev/sdb1 disk2-part2
-------------------------------------------------------------------
Now to mount the new partition to the fedora file system command.
Step 1: Create a mount point in the file system for the partition, this is as follows:
# mkdir /mnt/disk2-part-2
# mount /dev/sdb1 //mnt/disk2-part-2
The above will mount the partition on the fedora file system.
------------------------------------------------------
Now to view the new partition use the command #df-hT to view all the partitions.
Now, all the above three steps will create, format, and mount the partition on the file system on fedora a Linux distribution.
----------------------------------------------Please Upvote----------------------------------
Get Answers For Free
Most questions answered within 1 hours.