Be careful before using the write command.
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x529a757c.
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
g create a new empty GPT partition table
G create an IRIX (SGI) partition table
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)
Command (m for help): n 添加一个新分区
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p 选择主分区
Partition number (1-4, default 1): 1 编号
First sector (2048-41943039, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039): +1G 分区大小1G
Partition 1 of type Linux and of size 1 GiB is set
Command (m for help): w 保存退出
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
如果创建出错了,可以按 d 删除错误分区
- 刷新磁盘,查看以分区的情况
[root@localhost ~]# partprobe
[root@localhost ~]# fdisk -l|tail -10
Disk identifier: 0x529a757c
Device Boot Start End Blocks Id System
/dev/sdb1 2048 2099199 1048576 83

最低0.47元/天 解锁文章
1463

被折叠的 条评论
为什么被折叠?



