We all know that everything in linux is a file. next I will explain the knowledge of the file system. First, let's get to know several common commands: cat, fsdisk, mkfs, etc. (note: all operations are performed on centos6.5.) before partitioning and mounting, first check the file system types supported by the system. we can see that the supported file system types include: iso9660, ext4, etc. & n
Everyone knows that everything in linux is a file. next I will explain the knowledge of file systems.
First, let's get to know several common commands: cat, fsdisk, mkfs, etc.
(Note: The following operations are performed on CentOS)
Before partitioning and mounting, we should first check the file system types supported by the system. we can see that the supported file system types include: iso9660, ext4, etc.
Next, you can use #: fdisk-l to query the partition information. the query result is as follows. we can see that three hard disks are mounted.
They are sda, sdb, and sdc, and sda devices are already System File partitions, while sdb and sdc devices are not partitions,
In the following experiment, I will use the sdb hard disk for operations,
Run the mkfs command to create a file system on the partition. Note that the following line contains the-c parameter and the disk will be automatically detected before the file system is created.
The result after detection is as follows:
Then we will partition and format the file system, and use the fdisk command, complete command #: fdisk/dev/sdb
If you enter p and n at a time, the system will prompt whether to create a primary partition or an extended partition. here I select e extension partition.
Then you will be asked to select one of the 1-4 to select the extended partition. I will select 1 extended partition,
W later save the changes
You can run the fdsik-l command to view the result.
The Sdb1 extended partition has been created.