<td width="132" style="width:99.25pt;border-top:solid #4F81BD 1.0pt;border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;background:#4F81BD;padding:0cm 5.4pt 0cm 5.4pt">
<p align="center" style="text-align:center;">
<strong><span style="font-family:新宋体;Times New Roman";Times New Roman";color:white;">数量</span></strong>
</p>
</td>
<td width="180" style="width:134.65pt;border-top:solid #4F81BD 1.0pt;border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;background:#4F81BD;padding:0cm 5.4pt 0cm 5.4pt">
<p align="center" style="text-align:center;">
<strong><span style="font-family:新宋体;Times New Roman";Times New Roman";color:white;">优点</span></strong>
</p>
</td>
<td width="133" style="width:99.5pt;border-top:solid #4F81BD 1.0pt;border-left:none;border-bottom:solid #4F81BD 1.0pt;border-right:none;background:#4F81BD;padding:0cm 5.4pt 0cm 5.4pt">
<p align="center" style="text-align:center;">
<strong><span style="font-family:新宋体;Times New Roman";Times New Roman";color:white;">缺点</span></strong>
</p>
</td>
<td width="139" style="width: 104.6pt; border-top: 1pt solid #4f81bd; border-right: 1pt solid #4f81bd; border-bottom: 1pt solid #4f81bd; border-left: none; background: #4f81bd; padding: 0cm 5.4pt;">
<p align="center" style="text-align:center;">
<strong><span style="font-family:新宋体;Times New Roman";Times New Roman";color:white;">使用类型</span></strong>
</p>
</td>
</tr>
<tr>
<td width="113" style="width: 84.8pt; border-right: 1pt solid #95b3d7; border-bottom: 1pt solid #95b3d7; border-left: 1pt solid #95b3d7; border-top: none; background: #dbe5f1; padding: 0cm 5.4pt;">
<p align="center" style="text-align:center;">
<strong>raid0 </strong><strong><span style="font-family:新宋体;Times New Roman";Times New Roman"">条带</span></strong>
</p>
</td>
<td width="132" style="width:99.25pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p align="center" style="text-align:center;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">至少</span>1<span style="font-family: 新宋体;Times New Roman";Times New Roman"">块硬盘。</span>
</p>
</td>
<td width="180" style="width:134.65pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">把所有硬盘的容量加在一起,读写速度更快</span>
</p>
</td>
<td width="133" style="width:99.5pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">一块硬盘损坏,整体都不能使用</span>
</p>
</td>
<td width="139" style="width:104.6pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">数据不是很重要,追求性能</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">数据库的从库</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">集群的某个节点</span>
</p>
</td>
</tr>
<tr>
<td width="113" style="width: 84.8pt; border-right: 1pt solid #95b3d7; border-bottom: 1pt solid #95b3d7; border-left: 1pt solid #95b3d7; border-top: none; padding: 0cm 5.4pt;">
<p align="center" style="text-align:center;">
<strong>raid1 </strong><strong><span style="font-family:新宋体;Times New Roman";Times New Roman"">镜像</span></strong>
</p>
</td>
<td width="132" style="width:99.25pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p align="center" style="text-align:center">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">只能是两块硬盘</span>
</p>
</td>
<td width="180" style="width:134.65pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">安全,有</span>100%<span style="font-family:新宋体;Times New Roman";Times New Roman"">的冗余</span>
</p>
</td>
<td width="133" style="width:99.5pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">写入速度比较慢</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">读取还可以</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">成本较高</span>
</p>
</td>
<td width="139" style="width:104.6pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">对数据安全要求比较高,不需要太多的性能</span>
</p>
</td>
</tr>
<tr>
<td width="113" style="width: 84.8pt; border-right: 1pt solid #95b3d7; border-bottom: 1pt solid #95b3d7; border-left: 1pt solid #95b3d7; border-top: none; background: #dbe5f1; padding: 0cm 5.4pt;">
<p align="center" style="text-align:center;">
<strong>raid5</strong>
</p>
</td>
<td width="132" style="width:99.25pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p align="center" style="text-align:center;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">至少三块硬盘</span>
</p>
</td>
<td width="180" style="width:134.65pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">有奇偶校验,有一定的冗余,最多损坏</span>1<span style="font-family:新宋体;Times New Roman";Times New Roman"">块硬盘</span> <span style="font-family: 新宋体;Times New Roman";Times New Roman"">损失一块硬盘的容量</span>
</p>
</td>
<td width="133" style="width:99.5pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">读取性能可以</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">写入很慢</span>
</p>
</td>
<td width="139" style="width:104.6pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;background:#DBE5F1;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">比较通用。</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph;">
+spare
</p>
<p style="text-align:justify;text-justify:inter-ideograph;">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">可以作为热备</span>
</p>
</td>
</tr>
<tr>
<td width="113" style="width: 84.8pt; border-right: 1pt solid #95b3d7; border-bottom: 1pt solid #95b3d7; border-left: 1pt solid #95b3d7; border-top: none; padding: 0cm 5.4pt;">
<p align="center" style="text-align:center;">
<strong>raid10</strong>
</p>
</td>
<td width="132" style="width:99.25pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p align="center" style="text-align:center">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">最少</span>4<span style="font-family: 新宋体;Times New Roman";Times New Roman"">块硬盘</span>
</p>
<p align="center" style="text-align:center">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">数量必须是偶数</span>
</p>
</td>
<td width="180" style="width:134.65pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">读写的速度都很快,安全性较高冗余,最多可以损坏一半</span>
</p>
</td>
<td width="133" style="width:99.5pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">成本高</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">容量浪费一半</span>
</p>
</td>
<td width="139" style="width:104.6pt;border-top:none;border-left:none; border-bottom:solid #95B3D7 1.0pt;border-right:solid #95B3D7 1.0pt;padding:0cm 5.4pt 0cm 5.4pt">
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">数据库</span>
</p>
<p style="text-align:justify;text-justify:inter-ideograph">
<span style="font-family:新宋体;Times New Roman";Times New Roman"">重要的文件</span>
</p>
</td>
</tr>
<p>
1+0 records in
</p>
<p>
1+0 records out
</p>
<p>
512 bytes (512 B) copied, 0.000190527 s, 2.7 MB/s
</p></p>
<p>
/tmp/512.bin: x86 boot sector<span style="background:lime;">; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x6280, GRUB version 0.94; partition 1: ID=0x83, active, starthead 32, startsector 2048, 409600 sectors; partition 2: ID=0x82, starthead 159, startsector 411648, 1572864 sectors; partition 3: ID=0x83, starthead 135, startsector 1984512, 18987008 sectors, code offset 0x48</span>
</p></p>
<p>
<span style="font-family:新宋体;">……</span>
</p>
<p>
0000760 0000 0000 0000 0000 0000 0000 0000 <span style="background: yellow;">aa55</span> <em><span style="font-family: 新宋体;background:yellow;">结束标识符</span></em>
</p>
<p>
nul nul nul nul nul nul nul nul nul nul nul nul nul nul U *
</p>
<p>
0001000
</p></p>
<p style="text-indent: 21pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
ide <span style="font-family: 新宋体;">接口</span> hd<span style="font-family:新宋体;">开头</span>
</p></p>
<p>
<span style="background:lime;">USER</span> <span style="background: aqua;"> PID</span> <span style="background:yellow;">%CPU</span> <span style="background:fuchsia;">%MEM </span> VSZ RSS TTY STAT START TIME COMMAND
</p>
<p>
<span style="background:lime;">root</span> <span style="background: aqua;"> 1</span> <span style="background:yellow;"> 0.0</span> <span style="background:fuchsia;"> 0.2 </span>19352 1300 ? Ss Sep14 0:01 /sbin/ini
</p>
<p>
<span style="font-family:新宋体;background:lime;">用户</span> <span style="font-family:新宋体;background:aqua;">进程号</span> <span style="background:yellow;"> CPU</span> <span style="font-family:新宋体;background:fuchsia;">内存</span>
</p></p>
<p>
UID PID PPID C STIME TTY TIME CMD
</p>
<p>
root 1 0 0 Sep14 ? 00:00:01 /sbin/init
</p>
<p>
<span style="font-family:新宋体;">用户名</span> <span style="font-family:新宋体;">进程号</span> <span style="font-family:新宋体;">子进程号</span> <span style="font-family:新宋体;">运行了什么命令</span>
</p></p>
<p>
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
</p>
<p>
Building a new DOS disklabel with disk identifier 0x31dcd35a.
</p>
<p>
Changes will remain in memory only, until you decide to write them.
</p>
<p>
After that, of course, the previous content won't be recoverable.
</p>
<p>
</p>
<p>
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
</p>
<p>
<span style="font-family:新宋体;color:red">警告</span> <span style="font-family: 新宋体;">:</span> <span style="font-family:新宋体;color:red">可以关闭</span><span style="color:red">dos</span><span style="font-family:新宋体;color:red">的兼容模式,使用扇区作为分区的默认单位</span><span style="color:red"> -cu </span><span style="font-family:新宋体; color:red">↓</span>
</p>
<p>
<span style="color:red">WARNING:</span> DOS-compatible mode is deprecated. It's strongly recommended to
</p>
<p>
switch off the mode (command 'c') and change display units to
</p>
<p>
sectors (command 'u').
</p>
<p>
</p>
<p>
Command (m for help):
</p></p>
<p>
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
</p>
<p>
Building a new DOS disklabel with disk identifier 0xb9f506a4.
</p>
<p>
Changes will remain in memory only, until you decide to write them.
</p>
<p>
After that, of course, the previous content won't be recoverable.
</p>
<p>
</p>
<p>
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
</p>
<p>
</p>
<p>
Command (m for help):
</p></p>
<p>
Command action
</p>
<p>
</p>
<p>
d delete a partition <strong><em><span style="font-family:新宋体;">删除一个分区</span></em></strong>
</p>
<p>
m print this menu <strong><em><span style="font-family:新宋体;">显示帮助菜单</span></em></strong>
</p>
<p>
n add a new partition <strong><em><span style="font-family:新宋体;">创建一个分区</span></em></strong>
</p>
<p>
p print the partition table <strong><em><span style="font-family:新宋体;">显示分区表</span></em></strong>
</p>
<p>
q quit without saving changes <strong><em><span style="font-family:新宋体;">退出不保存</span> </em></strong>
</p>
<p>
w write table to disk and exit <strong><em><span style="font-family:新宋体;">保存并退出</span></em></strong>
</p></p>
<p>
Command action
</p>
<p>
e extended <span style="font-family:新宋体;">扩展分区</span>
</p>
<p>
p primary partition (1-4) <span style="font-family:新宋体;">主分区</span>
</p>
<p>
<span style="background:lime;">p</span>
</p>
<p>
Partition number (1-4): <span style="background: lime;">1</span> <strong><em> </em></strong><strong><em><span style="font-family:新宋体;">第一个分区</span></em></strong>
</p>
<p>
First sector (2048-208895, default 2048): <strong><em><span style="font-family:新宋体;">直接回车为默认</span></em></strong>
</p>
<p>
Using default value 2048 <strong><em><span style="font-family:新宋体;">默认选择第一个扇区</span></em></strong>
</p>
<p>
Last sector, +sectors or +size{K,M,G} (2048-208895, default 208895): <span style="background:lime;">+10M</span>
</p></p>
<p>
</p>
<p>
Disk /dev/sdb: 106 MB, 106954752 bytes
</p>
<p>
64 heads, 32 sectors/track, 102 cylinders, total 208896 sectors
</p>
<p>
Units = sectors of 1 * 512 = 512 bytes
</p>
<p>
Sector size (logical/physical): 512 bytes / 512 bytes
</p>
<p>
I/O size (minimum/optimal): 512 bytes / 512 bytes
</p>
<p>
Disk identifier: 0xb9f506a4
</p>
<p>
</p>
<p>
Device Boot Start End Blocks Id System
</p>
<p>
<span style="background:lime;">/dev/sdb1 2048 22527 10240 83</span>
</p></p>
<p>
Command action
</p>
<p>
e extended <strong><em><span style="font-family:新宋体;">扩展分区</span></em></strong>
</p>
<p>
p primary partition (1-4)
</p>
<p>
<span style="background:lime;">e</span>
</p>
<p>
Partition number (1-4): <span style="background: lime;">2</span>
</p>
<p>
First sector (22528-208895, default 22528):
</p>
<p>
Using default value 22528
</p>
<p>
Last sector, +sectors or +size{K,M,G} (22528-208895, default 208895):
</p>
<p>
Using default value 208895
</p></p>
<p>
</p>
<p>
Disk /dev/sdb: 106 MB, 106954752 bytes
</p>
<p>
64 heads, 32 sectors/track, 102 cylinders, total 208896 sectors
</p>
<p>
Units = sectors of 1 * 512 = 512 bytes
</p>
<p>
Sector size (logical/physical): 512 bytes / 512 bytes
</p>
<p>
I/O size (minimum/optimal): 512 bytes / 512 bytes
</p>
<p>
Disk identifier: 0xb9f506a4
</p>
<p>
</p>
<p>
Device Boot Start End Blocks Id System
</p>
<p>
<span style="background:lime;">/dev/sdb1 2048 22527 10240 83 Linux</span>
</p>
<p>
<span style="background:lime;">/dev/sdb2 22528 208895 93184 5 </span><span style="background:yellow;">Extended</span>
</p></p>
<p>
Command action
</p>
<p>
l logical (5 or over) <strong><em><span style="font-family:新宋体;">逻辑分区,创建完扩展分区后只能创建逻辑分区</span></em></strong>
</p>
<p>
p primary partition (1-4)
</p>
<p>
<span style="background:lime;">l</span>
</p>
<p>
First sector (24576-208895, default 24576):
</p>
<p>
Using default value 24576
</p>
<p>
Last sector, +sectors or +size{K,M,G} (24576-208895, default 208895): <span style="background:lime;">+40M</span>
</p></p>
<p>
</p>
<p>
Disk /dev/sdb: 106 MB, 106954752 bytes
</p>
<p>
64 heads, 32 sectors/track, 102 cylinders, total 208896 sectors
</p>
<p>
Units = sectors of 1 * 512 = 512 bytes
</p>
<p>
Sector size (logical/physical): 512 bytes / 512 bytes
</p>
<p>
I/O size (minimum/optimal): 512 bytes / 512 bytes
</p>
<p>
Disk identifier: 0xb9f506a4
</p>
<p>
</p>
<p>
Device Boot Start End Blocks Id System
</p>
<p>
<span style="background:lime;">/dev/sdb1 2048 22527 10240 83 Linux</span>
</p>
<p>
<span style="background:lime;">/dev/sdb2 22528 208895 93184 5 </span><span style="background:yellow;">Extended</span>
</p>
<p>
<span style="background:lime;">/dev/</span><span style="background:yellow;">sdb5 </span><span style="background:lime;"> 24576 106495 40960 83 </span><span style="background:yellow;">Linux</span>
</p></p>
<p>
The partition table has been altered!
</p>
<p>
</p>
<p>
Calling ioctl() to re-read partition table.
</p>
<p>
Syncing disks.
</p></p>
<p>
</p>
<p>
Command (m for help): <span style="background: lime;">n</span>
</p>
<p>
Command action
</p>
<p>
e extended
</p>
<p>
p primary partition (1-4)
</p>
<p>
<span style="background:lime;">p</span>
</p>
<p>
Partition number (1-4): <span style="background: lime;">1</span>
</p>
<p>
First sector (2048-208895, default 2048):
</p>
<p>
Using default value 2048
</p>
<p>
Last sector, +sectors or +size{K,M,G} (2048-208895, default 208895):
</p>
<p>
Using default value 208895
</p>
<p>
<span style="font-family:新宋体;background:lime;">都选择默认就是使用整块盘的空间创建一个分区</span>
</p></p>
<p>
</p>
<p>
Disk /dev/sdb: 106 MB, 106954752 bytes
</p>
<p>
64 heads, 32 sectors/track, 102 cylinders, total 208896 sectors
</p>
<p>
Units = sectors of 1 * 512 = 512 bytes
</p>
<p>
Sector size (logical/physical): 512 bytes / 512 bytes
</p>
<p>
I/O size (minimum/optimal): 512 bytes / 512 bytes
</p>
<p>
Disk identifier: 0xb9f506a4
</p>
<p>
</p>
<p>
Device Boot Start End Blocks Id System
</p>
<p>
<span style="background:lime;">/dev/sdb1 2048 208895 103424 83 Linux</span>
</p></p>
<p>
The partition table has been altered!
</p>
<p>
</p>
<p>
Calling ioctl() to re-read partition table.
</p>
<p>
Syncing disks.
</p></p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
mke2fs 1.41.12 (17-May-2010)
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Filesystem label=
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
OS type: Linux
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Block size=1024 (log=0) <strong><em>#block</em></strong><strong><em><span style="font-family:新宋体;">的大小</span></em></strong>
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Fragment size=1024 (log=0)
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Stride=0 blocks, Stripe width=0 blocks
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
25896 <span style="background:yellow;">inodes, 103424 <span style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">blocks</span> <strong><em>#inode</em></strong></span><strong><em><span style="font-family:新宋体;">与</span>block</em></strong><strong><em><span style="font-family:新宋体;">的数量</span></em></strong>
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
5171 blocks (5.00%) reserved for the super user
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
First data block=1
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Maximum filesystem blocks=67371008
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
13 block groups
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
8192 blocks per group, 8192 fragments per group
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
1992 inodes per group
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Superblock backups stored on blocks:
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
8193, 24577, 40961, 57345, 73729
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Writing inode tables: done
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Creating journal (4096 blocks): done
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
Writing superblocks and filesystem accounting information: done
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
<span style="background: darkgray;">This filesystem will be automatically checked every 30 mounts or</span>
</p>
<p style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border: none; padding: 0cm;">
<span style="background: darkgray;">180 days, whichever comes first. Use tune2fs -c or -i to override.</span>
</p></p>
<p>
tune2fs 1.41.12 (17-May-2010)
</p>
<p>
Setting maximal mount count to -1
</p>
<p>
Setting interval between checks to 0 seconds
</p></p>
<p>
[root@znix ~]# df -h
</p>
<p>
Filesystem Size Used Avail Use% Mounted on
</p>
<p>
/dev/sda3 8.8G 1.9G 6.5G 23% /
</p>
<p>
tmpfs 238M 0 238M 0% /dev/shm
</p>
<p>
/dev/sda1 190M 40M 141M 22% /boot
</p>
<p>
/dev/sdb1 94M 1.6M 88M 2% /mnt
</p></p>
<p>
/etc/fstab
</p></p>
<p>
#
</p>
<p>
# <span style="background:lime;">/etc/fstab</span>
</p>
<p>
# Created by anaconda on Thu Aug 10 18:33:48 2017
</p>
<p>
#
</p>
<p>
# Accessible filesystems, by reference, are maintained under '/dev/disk'
</p>
<p>
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
</p>
<p>
#
</p>
<p>
UUID=49bad9e9-cf33-4a15-ba84-4fd28e70bd29 / ext4 defaults 1 1
</p>
<p>
UUID=7426d0f3-56d6-4fa6-a1c3-f2c8632bfbb8 /boot ext4 defaults 1 2
</p>
<p>
UUID=46bc0a52-b13f-4845-8baa-90207849d5c5 swap swap defaults 0 0
</p>
<p>
tmpfs /dev/shm tmpfs defaults 0 0
</p>
<p>
devpts /dev/pts devpts gid=5,mode=620 0 0
</p>
<p>
sysfs /sys sysfs defaults 0 0
</p>
<p>
proc /proc proc defaults 0 0
</p>
<p>
<span style="font-family:新宋体;background:lime;">磁盘分区设备</span> <span style="font-family:新宋体;background:lime;">挂载点</span> <span style="font-family:新宋体; background:lime;">文件系统的类型</span> <span style="font-family:新宋体;background:lime;">挂载参数</span> <span style="font-family:新宋体; background:lime;">是否进行</span><span style="background:lime;">dump</span><span style="font-family: 新宋体;background:lime;">备份</span> <span style="font-family:新宋体;background:lime;">是否进行</span><span style="background:lime;">fsk</span><span style="font-family: 新宋体;background:lime;">磁盘检查</span>
</p></p>
<p>
/dev/sdb1 /mnt ext4 defaults 0 0
</p></p>
<p>
/dev/sda3: UUID="49bad9e9-cf33-4a15-ba84-4fd28e70bd29" TYPE="ext4"
</p>
<p>
/dev/sda1: UUID="7426d0f3-56d6-4fa6-a1c3-f2c8632bfbb8" TYPE="ext4"
</p>
<p>
/dev/sda2: UUID="46bc0a52-b13f-4845-8baa-90207849d5c5" TYPE="swap"
</p>
<p>
/dev/sdb1: UUID="7101630b-b325-49d1-92b9-0a500c2a07f6" TYPE="ext4"
</p></p>
<p>
tune2fs 1.41.12 (17-May-2010)
</p>
<p>
tune2fs: Bad magic number in super-block while trying to open /dev/sdc
</p>
<p>
<span style="background:lime;">Couldn't find valid <span style="color:yellow">filesystem</span> superblock.</span>
</p>
<p>
<span style="font-family:新宋体;color:#00B050">没有找到可用的文件系统</span>
</p>
<li>
<a href="#2">第2章 磁盘分区</a><ul>
<li>
<a href="#21_mbr">2.1 mbr是什么</a><ul>
<li>
<a href="#211_mbr">2.1.1 mbr在哪里</a>
</li>
<li>
<a href="#212">2.1.2 分区表</a>
</li>
<li>
<a href="#213">2.1.3 如何查看磁盘第一个扇区里的内容</a>
</li>
<li>
<a href="#214">2.1.4 如何查看二进制文件的内容</a>
</li>
</ul>
</li>
<li>
<a href="#22">2.2 主分区、扩展分区、逻辑分区的关系</a><ul>
<li>
<a href="#221">2.2.1 主分区</a>
</li>
<li>
<a href="#222">2.2.2 扩展分区</a>
</li>
<li>
<a href="#223">2.2.3 逻辑分区</a>
</li>
</ul>
</li>
<li>
<a href="#23">2.3 在系统中磁盘分区的命名</a><ul>
<li>
<a href="#231">2.3.1 磁盘名称示例</a>
</li>
<li>
<a href="#232_sda">2.3.2 第一块硬盘 sda</a>
</li>
<li>
<a href="#233">2.3.3 分区的命名规则</a>
</li>
</ul>
</li>
<li>
<a href="#24">2.4 回顾分区方式</a><ul>
<li>
<a href="#241">2.4.1 没有重要数据</a>
</li>
<li>
<a href="#242">2.4.2 很多重要数据</a>
</li>
<li>
<a href="#243">2.4.3 不知道数据是否重要</a>
</li>
</ul>
</li>
<li>
<a href="#25_ps">2.5 ps 命令内容详解--每列的含义</a><ul>
<li>
<a href="#251_ps_aux_vszrss">2.5.1 ps aux 中的vsz与rss </a>
</li>
<li>
<a href="#252_ps_-ef">2.5.2 ps -ef 列含义系简介</a>
</li>
</ul>
</li>
</ul>
</li>
<li>
<a href="#3">第3章 磁盘分区</a><ul>
<li>
<a href="#31_linux">3.1 linux里面的分区工具</a>
</li>
<li>
<a href="#32_fdisk10M40M">3.2 通过fdisk给磁盘进行分区(创建一个10M主分区和一个40M逻辑分区)</a><ul>
<li>
<a href="#321_fdisk">3.2.1 使用fdisk会提示一个错误</a>
</li>
<li>
<a href="#322_fdisk_-cu">3.2.2 fdisk添加上了 -cu 参数</a>
</li>
<li>
<a href="#323_fdisk">3.2.3 查看fdisk的帮助信息</a>
</li>
<li>
<a href="#324">3.2.4 创建一个主分区</a>
</li>
<li>
<a href="#325">3.2.5 显示一下分出来的分区</a>
</li>
<li>
<a href="#326">3.2.6 创建一个扩展分区</a>
</li>
<li>
<a href="#327">3.2.7 显示现在的分区表信息</a>
</li>
<li>
<a href="#328">3.2.8 在拓展分区下创建逻辑分区</a>
</li>
<li>
<a href="#329">3.2.9 显示一下当前的分区表</a>
</li>
<li>
<a href="#3210">3.2.10 保存并退出</a>
</li>
</ul>
</li>
<li>
<a href="#33_sdb_100m_mnt">3.3 【示例】添加一块硬盘sdb 100m划分一个分区 ,挂载到/mnt目录</a><ul>
<li>
<a href="#331">3.3.1 第一步 创建一个主分区</a>
</li>
<li>
<a href="#332">3.3.2 显示当前的分区表</a>
</li>
<li>
<a href="#333">3.3.3 保存并退出</a>
</li>
<li>
<a href="#334">3.3.4 第二步 格式化创建文件系统</a>
</li>
<li>
<a href="#335">3.3.5 第三步 关闭分区的自我检查</a>
</li>
<li>
<a href="#336">3.3.6 第四步 挂载磁盘</a>
</li>
<li>
<a href="#337">3.3.7 第五步 让磁盘永久挂载 开机自动挂载</a>
</li>
<li>
<a href="#338_etcfstab">3.3.8 /etc/fstab 文件的内容</a>
</li>
<li>
<a href="#339">3.3.9 将挂载信息写入配置文件</a>
</li>
<li>
<a href="#3310_uuid">3.3.10 显示系统中的uuid</a>
</li>
</ul>
</li>
<li>
<a href="#34">3.4 在挂载磁盘的时候出现未格式化错误</a>
</li>
</ul>
</li>