Adding desk and creating new petition now this time we're going to talk about how can we add a new desk
to our existing Linux system and then create a petition, of course, mount that petition.
The purpose behind adding a desk is most of the time you run out of this space or sometimes when you're
computer running multiple application, maybe one petition is required for one application and the other
petition is required for another application.
So that's why you add a new disc's.
And, of course, the commands that we will be using in this lesson in Oregon, death and desk, before
we get into the next machine, I want you to open up your Oracle virtual box, because that's where
we're going to add the virtual disk.
Since we do not have a physical server that we're working on in physical system, you would, of course,
have to pull the server out, add a new disk if you have a slot and then bring the system.
But now, since we are working on a virtual environment, it's a lot easier to add disk.
Let's go into our virtual box.
OK, this is our soapbox before we could do anything, I want you to, if you are not on the screen,
if you are on this screen, I want you to go to snapshot, click right here and create a snapshot.
And just name it anything you want that will make you remember snap shot before heading a desk.
Click OK, the reason I'm creating the snapshot is in case you make a mistake while adding a desk,
this will make your system unable to put.
So it's always easier to report back to your original snapshot to this where you don't lose anything.
So now, since you have the snapshot, it's done now I want you to go setting and then go to storage.
Click on controller.
And then click on ADD new disc.
And it will ask optical device, which is CD rom, or add a new disc, so just click on add a new disc,
it will ask you, do you want to choose an existing disc or create a new one?
Click on your desk.
Leave the default VDI virtual shoebox disk image clip next, dynamically allocated, that is OK, keep
in default.
And pick a name, any name you like, let's call it data desk, and I want you to pick two gig instead
of eight gig 2.0 space GBE click on CREATE.
So once you create, you will see you have a new desk.
Now click OK.
So now it's time to power on your machine.
You click on start.
OK, now I want you to become moot.
OK, randomisation come in and you'll see right here, this is the main desk that we have is mounted
on route now run F disk minus L.
You could do more because it will come up with additional information.
So when you do more, you'll notice.
The first is that we have the we added while we were building the system.
The first time is for Tanguay, which is there, and it is SDA and it has two quotations, one for swap
and one for the regular Linux VM.
The second is that we add it is right here.
You notice this disk has two one four seven megabyte, which is about two gig and has unit sectors and
all the information there.
The other two information, this one is about the partition information about the first disk.
This one is telling you the center route partition and the swap partition.
So we have to work on this one, which is the new one that we added.
I want you to run half disk.
Slash Deb CDB, which is the name of the disc.
We are using utility ethics to create a new petition, so you hit enter, when you hit enter, you will
notice it will bring up to the FTC menu or at FTC portal will tell you.
Welcome to the desk.
Utility changes will remain in memory only until you decide to write them.
Be careful before using the right command.
Of course we are careful.
If you make a mistake, we could always revert back to a snapshot.
So now in this menu you have a different command, but type helped, so you will see the different commands
that are available for us.
Here are the list of different commands you could review with one by one.
The one we need to pick is this one, Neal, because we are creating a new petition.
So click and Venu now, what is this petition type primary or extended via primary, doing it, doing
a new desk.
So click Clippy or just hit enter because by default is picking P, then primary petition no default
one, pick one, type one or just enter the sector to 048.
Yes, I want to leave the default to 048.
The last sector is for one 940, two or three.
That is finally the default.
If you wanted to change that the size of this petition you see right here the same size.
So let's say if you want to petition and each one gig, then you could do is plus one a G and this will
create one petitions.
And we wanted to use the entire desk to desk for one petition.
That's fine.
So er now it's done says it.
Petition one of Linux type type Linux and of size to is set now.
It is not created until we do w c right here.
This is right table to disk.
And if you remember at the beginning when we were an F disk, it says it will be in memory until you
do w so it w it entered and it is done.
Calling Octonal what to reread petition tables thinking this done.
So now the disk is done.
If you run on Facebook and on just myself and you will see right here then as DB one automatically when
you create one petition, first petition it assigns a number one.
Now the.
Volume is created.
Now we have to assign a file system type, so if you remember, file system types are like a different
type of file systems.
We have X, X, T, two, three, four, Zephyrs, Activia and TFSA.
They're different types of file system.
The latest one that we have in Lennix is except efforts to make that file system.
You have to run command and k frss make file system dot x office.
This is the command and then you have to specify your volume as DEEDI one, which is a device of course,
and you hit enter.
When you hit enter you will get all that message, but all the details, how the file system created
what the information size sector and a whole bunch of stuff.
So now it is created.
Now what do we do with that?
Now we have to mount it to a certain point.
That's why we make we're going to make a use of it.
Right.
So I want you to create a directory and KTAR under route and call it data center.
Now, this is created.
If you do anything to slash, who will see it is created right here.
How are we going to mount that to our petition?
So the command would be Mahomet slash dev staff as DB one, which is our volume space data.
So we are mounting that petition that we created to a file system, to a directory that we just created,
slash data center.
It is mounted.
How do we verify?
Now you run P of minus H and you will see.
Right here at the bottom, it created our petition.
There you go, see, so now we could write to it whatever that we wanted to do.
Now, every time your system reboots, it will now mount this.
So how can you make make it enable that it will get mounted?
And a system reboot is you have to add an entry into Farstad file.
EFS TAB has all the information about your petitions.
You come down all the way to the bottom, hit all in news to add a new line, then type slash dev SDP
one.
Remember, this is the volume, right?
We created a new partition tab.
Where are remounting to be mounting it to slash data.
Right.
Yes.
Then tab the next one column is what type of system is it.
Is X at best file system tab.
Then the rest leave that default and then tab zero tab zero.
Those two zeros that are added mean something.
These are the options that it would run file system check with the system but are not.
So you could look into it in more detail by running man on that first tab command just type manifest
tab or just search it online and you will find meaning of every field in it.
Make sure you don't make a mistake.
If you make a mistake, you will have a problem booting your system.
Then you would have to revert back to your snapshot.
That's why I asked you to create a snapshot again, read it again and make sure you are typing it correctly.
So now it's done it escape, right?
Quit and enter.
So now when I do in it's six, you will see the system will boot and when it boots up it will have that
slash data mounted.
OK, when you log in, open up a terminal and now death minus H and you will see right here, then CDB
one is automatically mounted.
And the reason it is mounted is because we have that added in our first tab file to unmount it.
If you want to unmount, for example, just become root and hit into your password and type you mount
slash data at the point hit enter and you will see it is gone.
It's no longer there.
If you want to mount bakin mounted again, you have to run, mount the whole command or you could simply
type them out and say, well this will do is it will go into CFS tab and see what are the mounts, what
other file petition that I have to mount and it will mounted all of them.
You see the bottom, it mounted back again.
So anyway, you could leave that data and you could leave this disc if you want to, or you could remove
it.
It's up to you.
But if you had made a mistake and your system is not coming up, you could always go back to your oracle
with a box and then you could stop your machine and revert back.