美文网首页
day22磁盘分区格式化挂载使用

day22磁盘分区格式化挂载使用

作者: 国王12 | 来源:发表于2019-03-29 19:25 被阅读0次

老师操作的prated分区操作命令

[root@oldboyedu ~]# parted /dev/sdb  #交互式开始分区

GNU Parted 3.1

Using /dev/sdb

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) help

(parted) mklabel gpt  #修改分区格式为gpt                                                   

Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to

continue?

Yes/No? Yes                                                       

(parted) p                                                               

Model: VMware, VMware Virtual S (scsi)

Disk /dev/sdb: 1074MB

Sector size (logical/physical): 512B/512B

Partition Table: gpt  #修改结果

(parted) mkpart primary 0 480  #创建第一个主分区480M。

Warning: The resulting partition is not properly aligned for best performance.

Ignore/Cancel? Ignore #忽略提示。                                                           

(parted) mkpart primary 481 580 #创建第二个主分区100M。

Warning: You requested a partition from 481MB to 580MB (sectors 939453..1132812).

The closest location we can manage is 481MB to 481MB (sectors 940031..940031).

Is this still acceptable to you?

Yes/No? Y                                                             

Warning: The resulting partition is not properly aligned for best performance.

Ignore/Cancel? I #忽略提示。                                                       

(parted) mkpart logic 581 600 #创建一个20M逻辑分区。

(parted) p                                                               

Model: VMware, VMware Virtual S (scsi)

Disk /dev/sdb: 1074MB

Sector size (logical/physical): 512B/512B

Partition Table: gpt

Disk Flags:

Number Start End Size File system Name Flags

1      17.4kB  480MB  480MB                primary

3      481MB  481MB  512B                primary

2      481MB  580MB  98.6MB              primary

4      581MB  600MB  18.9MB              logic

(parted) rm 4  #删除                                             

(parted) p                       

相关文章

  • day22磁盘分区格式化挂载使用

    老师操作的prated分区操作命令 [root@oldboyedu ~]# parted /dev/sdb #交互...

  • 磁盘挂载

    一、查看磁盘挂载情况 二、查看所有磁盘 三、创建磁盘分区 四、格式化分区磁盘 五、挂载 六、卸载 七、查看挂载权限

  • 硬盘自动挂载的配置

    查看Linux硬盘信息 格式化硬盘 创建目录 挂载分区 查看磁盘分区的UUID 配置开机自动挂载: mount命令...

  • 磁盘管理&基础优化

    内容 Raid 级别及应用场景磁盘分区格式化挂载,及永久挂载增加swap及tmpfs磁盘空间不足inode和blo...

  • 314-ubuntu 16.04 服务器挂载数据盘

    数据盘挂载地址:/51nst 1. 创建并格式化盘 2. 查看、挂载、卸载分区 3. 查看磁盘分区的UUID 4....

  • Linux系统分区步骤

    分区-->格式化-->分区设备文件名-->挂载-->完成 磁盘分区 将硬盘分为几个小硬盘,分区类型:-- 主分区:...

  • 阿里云实践tomcat

    1.下载软件 查看磁盘占用情况 生成文件 生成文件 查看内存占用情况 查看磁盘分区信息 挂载 格式化文件系统 挂载...

  • linux挂载移动硬盘时格式处理

    原因:挂载时未格式化,使用的文件系统格式不对解决方案:格式化 再挂载

  • 磁盘分区格式化挂载

    1.分区[root@oldboy1 ~]# fdisk /dev/sda欢迎使用 fdisk (util-linu...

  • Linux 磁盘管理

    本教程以6个方面讲解 1、硬盘 2、磁盘RAID、LVM等 3、磁盘分区 4、磁盘格式化 5、磁盘挂载后磁盘管理 ...

网友评论

      本文标题:day22磁盘分区格式化挂载使用

      本文链接:https://www.haomeiwen.com/subject/udmrbqtx.html