Centos系统磁盘挂载方法及命令详情记录
<p data-first-child="" data-pid="RAm21TuQ" style="margin-top: 0px; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"><span style="font-weight: 600; font-synthesis: style;">主机测评分享</span>简单记录磁盘挂载的命令,供大家参考使用:</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;">umount /dev/xvdb1mkfs.ext4 /dev/sdb1
fuser -km /dev/sdb1</pre><p><br/></p><figure data-size="normal" style="margin: 1.4em 0px; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"></figure><p><br/></p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;">umount /dev/sdb1</pre><p data-pid="Hy1qEwP1" style="margin-top: 1.4em; margin-bottom: 1.4em; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);">命令使用效果如下:</p><pre style="margin-top: 0px; margin-bottom: 0px; padding: calc(0.888889em); font-size: 0.9em; word-break: initial; overflow-wrap: initial; overflow: auto; background-color: rgb(246, 246, 246); border-radius: 4px;"># umount /dev/sdb1
# mkfs.ext4 /dev/sdb1
mke2fs 1.42.9 (28-Dec-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
15073280 inodes, 60292864 blocks
3014643 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2208301056
1840 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
#</pre><p><br/></p><figure data-size="normal" style="margin: 1.4em 0px; color: rgb(18, 18, 18); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif; font-size: medium; white-space: normal; background-color: rgb(255, 255, 255);"></figure><p><br/></p><p><br/></p><link rel="stylesheet" href="//www.zhidianyun.cn/source/plugin/wcn_editor/public/wcn_editor_fit.css?v134_TZ8" id="wcn_editor_css"/>
页:
[1]