Hello friends I m Deepak saini Today I m going for partitioning in Linux Red Hat
lets start
:- There are 2 types of partions in linux which we are using .
1 :- Primary :- This partion is reserved for operating system We are not abel to make a new partion from this partion
2 :- Extended :- This partions is useable for the user to store the data and other activities.We are create the new partions from this extended partions.
We are make the other type of partions in the linux like SWAP , LVM based ,RAID we are made those partions from the extended partions.
Hex code for partions to identifiy the partions is it swap ,lvm ,raid ,parimary or extended
Partion Name Code
1 Primary 83
2 Extended 5
3 Logical 83
4 Swap 82
5 LVM 8e
6 Raid 82
7 VFAT 82
So finaly we are going for create all of these partions
We are useing the fdisk command for this
so We start the working with fdisk
1st of all we check the partions on our disk in the system. here -l is used to see the list.
syntax :- #fdisk -l /dev/sda
Many options used in the fdisk command
I discribe mostly in this tut but you also try some .
How we are use the options in fdisk command
syntax :- #fdisk [options] [disk or partion]
Lest start to discribe the options .
1 :- #fdisk -l /dev/sda :- In this opiton the fdisk command give us the list of partions which are created on the disk.
2 :- #fdisk -c -l /dev/sda :- In this option of the fdisk we are using the -c for check the partion size ,secotrs,sector size,
cylinders and disk identifire.
3 :- #fdisk -s /dev/sda2 :- in this command we are check the size of a partion in bytes.Here /dev/sda1 is a partion on my disk.
4 :- #fdisk -h :- In this command we are using -h we are using h for help to get the knowladge and about the working and options of the command
5 :- #fdisk -v :- In this command we ae using the -v for check the worsion of the fdisk tool pr command
6 :- #fdisk -c :- In this command we are using the -c for switch off the DOS -compatible mode.
7 :- #fidsk -C :- In this command we are using the -C capital C for specify the number of cylinder.
8 :- #fdisk -H :- In this command we are using the -H capital H for specify the number of heads.
9 :- # fdisk -S :- In this command we are using the -S capital S for specify the number of sectors per track.
Thse are the somw option of the fdisk command i f i forget someone then plz try it your self
Now we are going to create a partion or Dos -compatible mode options.
Dos - compatible mode :- when we are rum and execute the command fdisk /dev/sda/ which mode come that calls us Dos - compatible mode.
How We come in this mode
syntax :- # fdisk /dev/sda
Now start with Dos -compatible mode.
These are the options which we are use in the Dos - Compatible mode of fdisk command. here i m use m for show the all options and why they are using.So you try all of these when you need.
When we are create the partion on the disk drive or hardisk in linux we are use the partx -a command to update or refresh the kernel about the partion on disk
How to change the partion type with the hex code
1 In my case I create the new partion on my disk drive
this is the process
1# fdisk /dev/sda
2 : t for change teh table value
3 : partion no 1,2,3 or 5 in my case i change the 5 partion hex value
4 : enter the hexcode which we are try to aplly on the partion
5 : wq for save and quite
Complete our partion type change
again run the partx -a /dev/sda for update the kernel
Thanks for reading and sorry for R.I.P English _/\_ Jai HIND
lets start
:- There are 2 types of partions in linux which we are using .
1 :- Primary :- This partion is reserved for operating system We are not abel to make a new partion from this partion
2 :- Extended :- This partions is useable for the user to store the data and other activities.We are create the new partions from this extended partions.
We are make the other type of partions in the linux like SWAP , LVM based ,RAID we are made those partions from the extended partions.
Hex code for partions to identifiy the partions is it swap ,lvm ,raid ,parimary or extended
Partion Name Code
1 Primary 83
2 Extended 5
3 Logical 83
4 Swap 82
5 LVM 8e
6 Raid 82
7 VFAT 82
So finaly we are going for create all of these partions
We are useing the fdisk command for this
so We start the working with fdisk
1st of all we check the partions on our disk in the system. here -l is used to see the list.
syntax :- #fdisk -l /dev/sda
Many options used in the fdisk command
I discribe mostly in this tut but you also try some .
How we are use the options in fdisk command
syntax :- #fdisk [options] [disk or partion]
Lest start to discribe the options .
1 :- #fdisk -l /dev/sda :- In this opiton the fdisk command give us the list of partions which are created on the disk.
2 :- #fdisk -c -l /dev/sda :- In this option of the fdisk we are using the -c for check the partion size ,secotrs,sector size,
cylinders and disk identifire.
3 :- #fdisk -s /dev/sda2 :- in this command we are check the size of a partion in bytes.Here /dev/sda1 is a partion on my disk.
4 :- #fdisk -h :- In this command we are using -h we are using h for help to get the knowladge and about the working and options of the command
5 :- #fdisk -v :- In this command we ae using the -v for check the worsion of the fdisk tool pr command
6 :- #fdisk -c :- In this command we are using the -c for switch off the DOS -compatible mode.
7 :- #fidsk -C :- In this command we are using the -C capital C for specify the number of cylinder.
8 :- #fdisk -H :- In this command we are using the -H capital H for specify the number of heads.
9 :- # fdisk -S :- In this command we are using the -S capital S for specify the number of sectors per track.
Thse are the somw option of the fdisk command i f i forget someone then plz try it your self
Now we are going to create a partion or Dos -compatible mode options.
Dos - compatible mode :- when we are rum and execute the command fdisk /dev/sda/ which mode come that calls us Dos - compatible mode.
How We come in this mode
syntax :- # fdisk /dev/sda
Now start with Dos -compatible mode.
These are the options which we are use in the Dos - Compatible mode of fdisk command. here i m use m for show the all options and why they are using.So you try all of these when you need.
When we are create the partion on the disk drive or hardisk in linux we are use the partx -a command to update or refresh the kernel about the partion on disk
How to change the partion type with the hex code
1 In my case I create the new partion on my disk drive
this is the process
1# fdisk /dev/sda
2 : t for change teh table value
3 : partion no 1,2,3 or 5 in my case i change the 5 partion hex value
4 : enter the hexcode which we are try to aplly on the partion
5 : wq for save and quite
Complete our partion type change
again run the partx -a /dev/sda for update the kernel
Thanks for reading and sorry for R.I.P English _/\_ Jai HIND
0 comments:
Post a Comment