Hello friends welcome back in this lesson we're going to talk about partition and fantasists management
in let us in this whole section we're going to talk about how to create partition how to delete them
how to resize them and then how to install the file system on it.
OK.
When we get a new hard drive from the market then we need to install the file system on it and before
installing file system we need to create a partition on it.
OK.
So in this whole lesson we're going to talk about how to create that and how to format that with the
different file systems.
OK so before actually installing or creating partitions I would like to show you how to add a word to
her list.
In this environment.
So let's see practically how could do this.
OK.
First of all start this virtual box.
OK after starting this virtual box what you need to do is click on the settings and then click on storage
and now plug this small little icon here.
OK.
Now here you can see the plussing ball.
So this and here plug and herder's.
OK.
Now create a new hard disk.
So just click next next.
And here you can choose the side so just leave it to one Zuby OK.
OK it is one gigabyte.
And here just this one like this.
Create Now here you can see how hard this is get created here.
So have good adding the holidays now.
Start the word machine so not get cocky and start the war machine.
Ok now we are inside our virtual machine and we have added the hard disk successfully.
So hope to see the connected Huddy studio system or we can see with this technique in the already existing
devices our partitions are good.
So we're going to use to have this come on.
Or this whole lesson to perform all the tasks OK.
And you need a pseudo access for this.
So you list all the partitions and devices to type sudo.
This can have an end and hit enter.
Now this will list all the information here about your system.
So let's talk about this part here.
Now here you can see it through present and the first does that is on there as the a.
OK.
The location on is the sta.
And it is represented as the.
Because then we connect a scuzzy Hardgrave via We are having this cause the hand-rail.
So that's why it is represented as is the if you connect the second then it will be represented as is
D-B.
You can see it is D-B.
It is the second hard road that we have added herring the size one gigabyte.
If you connected one then it will be recognized that as DC if you add the 4 then SD D OK the number
goes on in cruising like this.
And if you are having a id hand-rail OK then it will be presented as a if you connect second ID then
HTB as DC like that it goes on increasing.
So in this way we can see the location of our connected device.
And list here and here you can see this part be present the partitions which are available on this history.
OK.
All these partitions are get created after installation of the Linux operating system on this virtual
machine.
OK.
So let's see all these parts one by one.
The first part represent the location of the partition that is do as the one then the second one is
it to the last 2065.
OK the next column pre-print in the loop.
OK the stat symbol reported in the bootable partition.
So is do when his body will then the next one is start the next column is.
And so start in.
What are the starting and ending point for the partition and the next column representing the two sectors
and the next column representing the size.
So this option is the one is having size of 487 megabytes.
You get the next column representing the ID each partition is hiring a unique ID.
So when you see the number 83 that means it is a Linux partition.
And a few numbers represent the extended partition into it.
It happens in the logical volume manager that is logical partition.
OK so in this way you can view all this information that the author does come on.
And this is DVH is our second hard road that we are added and.
Let's see how to create the partitions on this.
OK.
So to access this Hardgrave foreign trade and partition and this type of disk there has to be an extent
to look.
Now we are inside this disk.
So here you can see that this is all the information or all the things that you can do with this tool.
OK.
So that the you can delete the partition.
You can list free unpartitioned space.
OK.
All these things that you can do here.
So here I would like to show you how to create a new partition.
So to create a new partition just type and.
OK.
So then you type in here you can see there are two options.
That is the end e before primary and before extended.
So in Linux basically there are three types of partitions are there.
That is primary extension and logical primary partitions.
You can create up to four partitions.
OK.
And the primary partitions are generally used to make the partition bootable OK.
When installing the operating system you can boot from that partition and number one before are generally
reserved for the primary partitions and the next one is the extended partition extended partition.
You can create a different partition on that extended partition side to use to hold different types
of partitions so the extended you can hoard all partitions and you can create more than 4 partitions
there to organize the data.
Ok so here let me show you how to create the primary partitions so take B and and then.
Now here you can see it says default one.
So number one before I reserve 4 primary partitions.
Or you can also create an extended partitions in between number 1 to 4.
OK.
And if you are trying to create any logical partition then the numbers start with file.
OK you cannot number in logical partition starting from 1 to 4.
So by default it take 1 so he can enter.
OK now I ask you for sex.
So you enter it at all medically taking the current sector so after that here you need to insert the
size so I want to create an Humaira megabyte so plus 100 m get now or partition is get created here.
So I want to create again in new partition small and not ask you for primary extend their primary and
to get into the first sector.
So right now don't enter any number here of this by Plus 200 and ok now.
B you can print all the partitions which are present or which get created here.
So it then to.
OK.
Now here you can see all these partitions which we have created right now are displayed here.
So you can see here is D-B one has to be too hard to do partitions and both the partitions in the Linux
partition.
OK I want you to change this partition to another one so press will not disappear list all the partitions
which are present.
OK so now I want to set it free BSD so freeby as these Harringay ID if I.
So the.
OK I want to change the partition one slow and terminal one.
OK.
And now five.
OK.
Now print.
OK now here you can see the if you applied that is as is applied to perdition number one.
OK.
In this way you can turn the partition with option B.
Ok now we created two partitions here but both are primary so I want to create an extended partition
or type.
And now here type in for extended.
So here it asks you for the number so we extended You can say the extended partition from 2 to 4.
So enter my defaulted to threes for Certainly then I want to set it size 2 plus 400.
OK.
Now.
Ok here you can see SATB trees get Gregory here of a size 400.
OK.
Now you cannot access this so partition number three directly you need to create another partition on
it.
So I want to create a new addition on that.
So and now do ask you for the four primary or logical.
So I want to create a logical on that.
OK.
So I want to set the whole trial logical so hit enter hit enter without any number and or print.
OK so here you can see the logical partition is get.
Here the number is before you.
It is not clear created with the numbers before because of 3:59 are reserved for primary partition.
So logical partitions are starting from number five.
Now our partition is good.
Great good here.
So by default it is having Linux partition.
So let's leave it as it is.
So now after creating the partition I want to show you how to delete the partition.
OK so I want to delete the partition number two.
So rebuild the partition.
You need to use the.
Now this will ask you for numbers.
I want to delete the partition and what to.
OK now bring it here can see what to get deleted of it.
And suppose I want to resize that partition on new sites.
I want to set it to 115.
So create an on that partition was primary so the name was to forget by default and that number 2.
OK I want to say to do one thing and not print.
OK here I can see that deleted partition now is resized to 150 megabytes.
OK so now we have created primally extended and logical partitions on our system.
So now after creating all this partition what you need to do is you need to write this data to the partition
table.
So the blue and into all cases that the partition table has been altered.
That means a new partition table is created.
So for that.
Just google this.
I finally now hear it and see it list in the newly created partition table or newly created partitions
for or 1 gigabytes of hard drive.
But it is D-B one two three or five.
So in this way we can create the partition but creating partitions is not enough.
You need to install a file system on that.
OK so with file system we can create files or folder on that and we can organize them again.
So file system is useful in a different way.
All the operations that we learn in the previous lesson about setting file attributes ookie or setting
file permissions all these are depend on these file system so if some file system do not support that.
If that file system don't support then you can't perform those operations.
So here I want to show you some of the important file systems in the Linux environment.
OK I'm going to give just a simple introduction.
OK I'm not going to get into the depth of that.
It's a huge concept so there are different kinds of file system sofa's Kakababu is extremely excited
to see 2064.
OK all these are the printed words and Sophie XTi that if you ran 64 Let's talk about 60 x distance
for extended file system and this great deal for the Linux environment.
So the difference in between 60 x 2 3 and 4 is that Yaxchilan 62 do not support the journalling and
in 63 and 4 support the journalling.
OK all these are the upgraded versions of the XTi.
So what is journalling.
Suppose you are working on your operating system.
OK so you are creating some file or seeing some file and suddenly a light goes and the file system crashed.
So what journalling does is it record that job to the file and on your next boot it will recover from
that error.
It will try to recover from that error and it will recover successfully.
So journalling concept work like that.
So excited three enforcible journalling but this will make your file system works slightly slower as
compared to other file systems.
So let's talk about the next one.
That is BTR if less than the next one is in the raised reference and surface ex-service the face slap
and a fat 16 fat 32.
In fact I think many of you may have heard of the fat 16 and sat 32.
OK in the Windows environment.
So these opera this file system can install on Pinero.
And these do not support journalling augured and the slap slap the swap file system but you cannot access
or cannot create any file on that.
It is actually an extension to the RAM.
OK so you cannot create it do so you cannot use it to hold files or Kamins you cannot sell that on that
you can just use it as an extension to your RAM.
OK so we're going to talk about it later.
So all these operating systems some of the important ones so you can search online about all this in
detail if you want but you Sixty-Four is the best option.
So I want to show you here how to install the XP for here practically.
OK so let's see.
So install the operating system.
You just type slow and careful as is a command which is used to install a file system then D.
And here you need to provide the file system type slide on install XP for the location of the device
you want to install it on TV One OK it's done because it is having a very small size.
Then on SATB
OK let's bring the table for you.
It is done.
So we install the 64 file system on all the partitions here.
OK.
So in this way we have created a new partition that is primary logical and extended in this lesson and
we install a file system on that.
OK.
But just creating and installing a file system is not enough.
We need to mount these devices or these file system.
So in the next lesson we're going to talk about how to mount this file system OK.
So there are different ways of making things slow.
Let's see in the next lesson how to mount can access this file system.