分区工具fdisk,gdisk使用
发布时间:2020-12-14 02:09:00 所属栏目:Linux 来源:网络整理
导读:fdisk 参数 常用参数 p 打印显示分区表 n 创建一个新的分区 d 删除一个分区 l 查看已知的分区类型 t 修改分区类型 q 退出不保存 w 退出保存分区表信息 使用方法 fdisk 是交互式的菜单模式,进入后通过选择的方式来对硬盘进行操作。 [[email?protected] ~]#fd
fdisk 参数
常用参数 使用方法fdisk 是交互式的菜单模式,进入后通过选择的方式来对硬盘进行操作。 [[email?protected] ~]#fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only,until you decide to write them. Be careful before using the write command. 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): 创建分区其它参数使用方法相似 fdisk用来管理MBR分区,大于2T的硬盘无法使用fdisk gdisk可用来管理GPT分区 [[email?protected] ~]#gdisk /dev/sdb GPT fdisk (gdisk) version 0.8.10 Partition table scan: MBR: MBR only BSD: not present APM: not present GPT: not present ...... (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |