Basic knowledge of Linux Disk Management simple collation

Source: Internet
Author: User

Disk Basics SSD's pros and cons

Ide:hda HDB HDC

SCISI:SDA SDB SDC

MBR and GPT

A form for storing partitioned tables
Mbr:master boot record Master boot records

 只支持分4个主分区    3个分区    1个扩展分区       逻辑分区最大支持2T容量

GPT 128 Partitions

Disk partitioning

 分区的类型 主分区 扩展分区   逻辑分区 交换分区swap  fdisk:对2T以下容量的硬盘进行分区,分区的格式为MBR  -l 列出当前系统的硬盘信息  fdisk /dev/sdb 交互式执行分区操作  m:获取帮组信息  d:删除指定分区  l:列出已知的分区类型  p:print,打印出当前硬盘的分区信息  n:新建一个分区     p:primary,主分区     e:extend,扩展分区  t:更改指定分区的类型  w:把更改的内容写入硬盘并退出  q:不保存退出gdisk 对2T以上容量的硬盘进行分区,也可以对2T以下容量的硬盘进行分区 分区的格式为GPT     -l device : 查看device的分区信息     gdisk /dev/sdb 交互式执行分区操作        ?: 获取帮助信息        d:删除指定分区  l:列出已知的分区类型  p:print,打印出当前硬盘的分区信息  n:新建一个分区     p:primary,主分区     e:extend,扩展分区  t:更改指定分区的类型  w:把更改的内容写入硬盘并退出  q:不保存退出

# # #磁盘格式化
Mkfs

mkfs -t ext4  创建ext4文件系统mkfs.ext4   创建ext4文件系统

# # #磁盘挂载
Temporary mount
Mount
Permanent Mount
Modifying a configuration file/etc/fstab
Unloading
Umount
Before uninstalling to determine if someone is using the

Basic knowledge of Linux Disk Management simple collation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.