When there is still a lot of space on the Linux system hard disk, we can use the fdisk tool to partition the system to meet individual needs, so how to use the fdisk tool? The following small series will introduce you to the method of using Linux to create partitions. Interested friends can come to understand.
First check the hard disk information
fdisk -l if there is space left on the hard disk can be partitioned
[root @ bogon Desktop] # fdisk -l
Disk /dev/sda: 85.9 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes< Br>
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes /512 bytes
Disk identifier: 0x000471ad< Br>
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 83 Linux
Partition 1 does not end on cylinder boundary.
/Dev/sda2 26 3851 30720000 83 Linux
/dev/sda3 3851 4106 2048000 82 Linux swap /Solaris
/dev/sda4 4106 10444 50912256 5 Extended
/dev/Sda5 4106 10444 50911232 83 Linux
Disk /dev/sdb: 21.5 GB, 21474836480 bytes
255 heads 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes /512 bytes
Disk identifier: 0x00000000
#From the above, the /dev/sda space has been used up, /dev/sdb is not used.
Let's partition /dev/sdb
[root@bogon desktop]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun , SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xfaa2aa49.
Changes will remain in memory only, until you decide to write them.
After that, Of course, the previous content won‘t be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
WARNING: DOS-compatible mode is deprecated. It’s strongly recommended to
switch off the mode (command ‘c’) and change display units to
sectors (command ‘u’).
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c Toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
< t> change a partition‘s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Previous1234Next page Total 4 pages
Many computers now have more than one network card, but one network card fails and the entire networ
buffer and cache are the cache of the Linux server, and the swap partition occupanc
In Linux system operation, if there is too much data in the file, it is very troubl
LVM is a logical volume management, is a mechanism for disk partition management under Linux, I beli
How to use sudo command in Linux system?
How to use the Linux system Passwd command
Example of isosize instruction operation in Linux
Teach you how to add a personalized display in the Linux login interface
Linux use pass to manage passwords
Introduction to the syntax and parameters of the Linux system xlsclients command
How to implement ioctl function in Linux system?
Linux cal/ncal command operation example
CentOS system installation using Subversion method
The specific steps to install Cobbler under Linux
Add support for PHP web pages under IIS7
Win7 system security settings Raiders (detailed) (1)
Win7 system U disk is not recognized solution
Win8.1 install .NET Framework 3.5 skills
What is the video and audio of the Win8 Metro interface
Improve the speed of computer system Win7 broadband Internet access
Win8 magnet line number conversion method diagram tutorial