Take RH9 as an example. There are only two partitions/dev/sda1 and/dev/sda2
#Fdisk/dev/sda (don't add numbers after sda)
Command (m for help): mAfter entering m, you will see many commands
Command (m for help): p Output the current disk status
Command (m for help): q Do you want to leave without saving? Press q, please do not press w
New partition: # fdisk/dev/sda
Command (m for help): n At this time, the system will prompt whether to add P (primary partition) or E (extended partition). Generally, the system is (4 P)+E, and the E partition number must start from 5
P It's up to you whether it's P or E
Partition number (1-4): 3 can be numbered at will
First cyclinder: press ENTER here
          Last cylinder or ..............:    +100M
When you enter P again, you can see the new partition
Delete partition:
          #fdisk /dev/sda
          command(m for help): d
Select partition number
Remember that q --- Do not store and leave w --- Store and leave
Attach two commands that are easily confused: df (disk free) --- Display the file system and usage of the disk
Du (disk usage) --- Displays the disk space occupied by the specified directory or file

Post reply

Can't comment until