Linux Practice Questions 15.1 Disk Management

Linux Practice Questions 15.1 Disk Management

Prerequisite: Add a new hard disk /dev/sdb to the Linux server

Subproject 1. Create /dev/sdb1 and /dev/sdb5

Create /dev/sdb1 primary partition (300M size)

[root@localhost aoian]# fdisk /dev/sdb
欢迎使用 fdisk (util-linux 2.23.2)。

更改将停留在内存中,直到您决定将更改写入磁盘。
使用写入命令前请三思。

Device does not contain a recognized partition table
使用磁盘标识符 0x41be1466 创建新的 DOS 磁盘标签。

命令(输入 m 获取帮助):n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
分区号 (1-4,默认 1):1
起始 扇区 (2048-41943039,默认为 2048):
将使用默认值 2048
Last 扇区, +扇区 or +size{K,M,G} (2048-41943039,默认

Guess you like

Origin blog.csdn.net/m0_46653702/article/details/110131675