FDISK command Linux disk partition management Purpose: To observe the physical use of hard disk and split the hard disk.How to use:First, enter Fdisk-l/DEV/SDA on the console to observe the physical use of the hard disk.Second, enter the FDISK/DEV/SDA on the console, can enter the partition hard disk mode.1. Enter m to display all the commands listed below.2. En
1. Description: How Fdisk learnsFdisk is a command for partitioning in Linux, as detailed parameters can be man, here is the most commonly used in the actual application of the use of the process, because this is more than the simple command of the grammar function to master the actual use of a command.The following procedure is set up in my own experimental environment, first to look at the brief process:(1) Add a 1GB disk(2)
Use fdisk for disk management and fdisk for DiskFdisk
For example.
Use fdisk to partition Disks
For example:
Practice: Use fdisk to partition a new disk, a primary partition, an extended partition, and two logical partitions.
1. Switch to the root user. Only the root user has the permission to partition.
Use fdisk to add hard disk partitions and fdisk to add Hard Disk Partitions
1. use fdisk to create 6 partitions [1 P + 1E (5L)] // dev/sdb1/dev/sdb5/dev/sdb6/dev/sdb7/dev/sdb8/deb/sdb9
1 [root@server ~]# fdisk -l 2 3 Disk /dev/sda: 8589 MB, 8589934592 bytes 4 255 heads, 63 sectors/track, 1044 cylinders 5 Units = cyli
For details about partitions in Linux-Fdisk 1. For details about system partitions through Fdisk: Fdisk-l: [root @ jetsenLin ~] # Fdisk-l www.2cto.com Disk/dev/sda: 10.7 GB, 10737418240 bytes255 heads, 63 sectors/track, 1305 cylindersUnits = cylinders of 16065*512 = 8225280 bytesNote: The size of this hard disk is 10.7
1. fdisk introduction;
Fdisk-Partition Table Manipulator for Linux, translated into Chinese means the disk partition table operation tool; I did not translate very well and did not read the Chinese documentation; in fact, it is actually a partition tool;
Fdsik can divide disks into Several partitions and specify the partition file system for each partition, for example, Linux, FAT32, Linux, Linux swap, fat1
For details about partitions in Linux-Fdisk1, use Fdisk to view detailed information about system partitions: Fdisk amp; ndash; l for details: [root @ jetsenLin ~] # Fdisk-lwww.2cto.comDisk/dev/sda: 10.7 GB, 41537418240bytes255hea...
For details about partitions in Linux-Fdisk 1. for details about system partitions th
Author: North South
From: linuxsir. org
-----------------------------------
Abstract: fdisk is a powerful partitioning tool and one of the most popular tools in UNIX operating systems. It is a time-honored partition tool. This article only introduces its simplest partitioning operation functions;1. fdisk introduction;Fdisk-Partition Table Manipulator for LinuxIn
I. fdisk introduction fdisk-PartitiontablemanipulatorforLinux, which means the disk partition table operation tool in Chinese. I did not translate very well and did not read Chinese documents; in fact, the partition tool fdsik can divide disks into several partitions, and can also specify partitions for each partition.
I. INTRODUCTION to fdisk
FdiskIt is a powerful partitioning tool and one of the most popular tools in UNIX operating systems. It is a time-honored partition tool. This article only introduces its simplest partitioning operation functions;
I. fdiskIntroduction;
Fdisk-Partition Table Manipulator for LinuxIn Chinese, it means the disk partition table operation tool. I did not translate very well and did not read the Chinese documentation. It is actually a partition tool; fds
I-nodes usage.
K: The size is represented by K (default)
T: displays the disk usage of all partitions in a file system.
X: displays the disk usage of all partitions of a file system.
T: displays the file system name of each partition.
The command DF can display the maximum available space and usage of all file systems. See the following example:
# DF-H
Filesystem size used avail use % mounted on
/Dev/mapper/VolGroup00-LogVol00
37g 3.6g 32G 11%/
/Dev/sda1 99 m 12 m 83 m 13
1, Disk partitioning command fdisk[Email protected] ~]# fdisk-l #查看磁盘分区情况disk/dev/sda:10.8 GB, 10837518250 bytes255 heads, Sectors/track, 1305 cylindersUnits = Cylinders of 16065 * 8225280bytes(The size of this drive is 10.8GB, with 255 magnetic faces, 63 sectors, 1305 magnetic columns (cylinders)The capacity of each cylinder (magnetic column) is 8225280 bytes=8225.280k (approx.) =8.225280m (approx))Device
Recent work requires the use of the hard disk shell script Automation partition and mount operation, Google has some information, the following is a summary.If the hard disk is not partitioned (logical partition or extended partition, about the concept of the two, self-Google), we will not be able to use the hard disk to read and write. We need to take the following three steps to use a hard drive:
Partition the hard drive;
Format the partition;
Mount the partition to a director
Fdisk operation of the hard disk and partition, enter FDISK on the hard drive operation phaseWe can partition the hard drive, if you understand the fdisk-l; through fdisk-l, we can find out the number of drives and the name of the device, such as the above example, we will see two devices one is/dev/hda, the other is/D
Fdsik partitions can be divided into several areas, but also for each partition to specify the partition of the file system, such as Linux, FAT32, Linux, Linux swap, FAT16 and its UNIX-like operating system file system, etc. of course, when we use FDISK to partition disk operations, is not an end point, we also need to format the partition of the file system required to use such a partition; This is similar to Fdi
Fdisk on the hard disk and partition operation, into FDISK on the hard disk operation stage we can partition the hard disk operation, if you make fdisk-l understand; through fdisk-l, we can find out the number of drives and device names in the machine, for example above, we will see two devices one is /dev/hda, the oth
Graphic explanation of Hard Disk partitioning
FDISK is the most commonly used tool for partitioning hard disks. It exists in the Windows 98 boot disk or the Windows \ Command directory of the system disk.
The following describes how to use FDISK to partition a hard disk.
Before using FDISK to partition the hard disk, you also need to set the BIOS boot sequence.
S
Fdisk
FDISK's hard disk partitioning is essentially a format for the hard disk. When we create a partition, we have set the physical parameters of the hard disk, specifying the hard drive master boot record (i.e. MASTERBOOTRECORD,MBR) and the location where the boot record backup is located. The information required for file systems and other operating systems to manage hard disks is implemented through advanced formatting, the Format command. Using
Hard Disk partitions
The most common tool for partitioning a hard disk is fdisk. It exists in the Windows 98 Startup disk or in the Windows\Command directory of the system disk.
The following is a detailed description of the steps for hard disk partitioning with Fdisk.
Before you partition your hard disk with Fdisk, you also need to set the boot order of the B
Note: The new version of Fdisk default output has been correctly justified, this article only applies to older versions of Fdisk.1 output without the option parameter[Email protected] ~]# fdisk-ldisk/dev/sda:160.0 GB, 160041885696 bytes255 heads, $ sectors/track, 19457 Cylindersunit s = Cylinders of 16065 * 8225280 = bytessector size (logical/physical): bytes/512
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.