linux fdisk磁盘分区

fdisk [-l] 装置名称

-l 输出后面接的装置所有partion内容

[[email protected] ~]# fdisk /dev/sda2

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won‘t be recoverable.

The number of cylinders for this disk is set to 1945.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m   输入m查看指令

Command action

a   toggle a bootable flag

b   edit bsd disklabel

c   toggle the dos compatibility flag

d   delete a partition   删除一个partion

l   list known partition types

m   print this menu

n   add a new partition  新增一个partion

o   create a new empty DOS partition table

p   print the partition table   显示分割表

q   quit without saving changes 不存储离开fdisk模式

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)

时间: 2024-08-29 08:09:44

linux fdisk磁盘分区的相关文章

Linux系统磁盘分区及挂载 - fdisk

Linux系统磁盘分区及挂载 - fdisk 文本关键字:文件系统,磁盘分区,格式化,挂载 一.文件系统 1. 文件系统的作用 当我们拿到一块新的硬盘时,他所能够支持的最大空间只是代表硬件上的一个参数,我们要想让他能够正常的工作起来,必须要有相应的文件系统.文件系统决定了文件存储和管理时的方式和数据结构,也就是如何管理磁盘上的文件和文件夹.不同的文件系统拥有不同的特点,这也就是为什么我们在进行格式化操作必须要选定一种文件系统的原因.当在一个操作系统(Windows.Linux.MacOS)中使用

Linux的磁盘分区

磁道:track 扇区:sector 磁头:head 柱面:cylinder 每个扇区,512字节 每个磁道划分为63个扇区 逻辑磁头(盘面)数设为255 一个柱面的大小 =255 * 63 * 512 = 8M 硬盘或分区的容量 =柱面大小 * 柱面数 [[email protected] ~]# fdisk -l ###fdisk查看磁盘列表 fdisk -l /dev/sdb 单独查看一块磁盘 Disk /dev/sda: 42.9 GB, 42949672960 bytes 255 he

Linux下磁盘分区、挂载、卸载操作记录

Linux下磁盘分区.挂载.卸载操作记录. 操作环境:CentOS release 6.5 (Final) Last login: Wed Oct 26 17:25:27 2016 from 118.230.194.76 [[email protected] ~]# [[email protected] ~]# fdisk -l Disk /dev/sda: 536.9 GB, 536870912000 bytes 255 heads, 63 sectors/track, 65270 cylin

Linux命令-磁盘分区及格式化

磁盘的组成:盘片.磁头.机械臂.主轴马达. 盘片的组成:磁头划过的一个个同心圆称为磁道(track):从圆心向外画直线,可将磁道划分为若干的弧段,成为扇区(sector),是磁盘的最小组成单元,大小512byte. 盘片上下两面各有一个磁头,每张盘片同一位置的磁道,组成了柱面(cylinder ): 磁盘容量=磁头数*柱面(磁道)数*每柱面(磁道)扇区数*每扇区字节数 每个磁道和柱面又进行了编号,比如n磁道m柱面,在这里有一个非常重要的位置,即:0磁道0扇区.这是MBR的存放位置,即Master

Linux的磁盘分区(二)

LVM逻辑卷机制 PV(Physical Volume 物理卷) - 物理分区或整个物理磁盘 - 由PE(Physical Extent,基本单元)租场 VG(Volume Group 卷组) - 一个或多个物理卷组成的逻辑整体 LV(logical Volume 逻辑卷) - 从卷组中分割出的一块逻辑存储空间 - 可通过格式化建立文件系统 Linux的磁盘分区(二)

Linux的磁盘分区(三)

RAID 廉价冗余磁盘阵列 Redundant Arrays of Inexpensive Disks 不同级别的RAID功能.特性各不相同 对比项 RAID0 RAID1 RAID10 RAID5 磁盘数 >=2 >=2 >=4 >=3 存储利用率 100% 50% 50% N/N-1 冗余校验盘 0 0 0 1 容灾性 0 1 1 1 IO性能 高 低 中 较高 RAID0是并行写入磁盘,IO性能最高,但是没有容灾性 RAID1是1盘写入1盘做备份 RAID10是RAID0和R

(转)centos7.4 fdisk磁盘分区 格式化 挂载

centos7.4 fdisk磁盘分区 格式化 挂载 原文:http://blog.csdn.net/capecape/article/details/78499351 1.查看系统中有多少可以识别的硬盘.U盘 [root@localhost ~]# fdisk -l 1 2.使用fdisk命令进行分区 [root@localhost ~]# fdisk /dev/sdb 1  记得输入w保存退出! 3.通知操作系统,分区表已经改变 [root@localhost ~]# partprobe 1

xshell远程连接服务器和Linux下磁盘分区方案

一,设置xshell进入xshell,选择文件,打开,新建.改会话名称,并改主意主机ip:二,远程连接服务器故障排查1,ip地址,也就是服务器的位置,地址:1)公网ip:指所有人都可以访问的ip,但是数量有限且大部分在美国:2)内网,也就是局域网,私网,是指在当前环境可以用的ip192.168.xx.oo 172.16.oo.xx 10.0.0.xx 192.168.21.xx10.0.0.xx 10.0.0.200:2,端口号:端口号是用来区分不同服务的(远程连接服务------->sshd-

linux CentOS7 磁盘分区fdisk 、df 、du、parted 命令实例

一. df命令 分区查看工具: 1. df [[email protected]_46_188_centos ~]$ df Filesystem     1K-blocks    Used Available Use% Mounted on /dev/vda1       20510332 4844740  14617076  25% / devtmpfs          499348       0    499348   0% /dev tmpfs             508452