CentOS 7.5系统,umount分区后,再mount分区

分区以vfat格式挂载,只支持最大4GB的文件;需要修改成以ext4格式挂载

[root@64-128 ~]# df -T
Filesystem     Type      1K-blocks    Used  Available Use% Mounted on
/dev/vda1      ext4      103079844 2993172   95351840   4% /
devtmpfs       devtmpfs   65917808       0   65917808   0% /dev
tmpfs          tmpfs      65928572       0   65928572   0% /dev/shm
tmpfs          tmpfs      65928572   17160   65911412   1% /run
tmpfs          tmpfs      65928572       0   65928572   0% /sys/fs/cgroup
tmpfs          tmpfs      13185716       0   13185716   0% /run/user/0
tmpfs          tmpfs         61440       0      61440   0% /var/log/rtlog
/dev/vdb       vfat     1073479712      32 1073479680   1% /mnt

查看分区格式

[root@64-128 ~]# sudo file -s /dev/vdb
/dev/vdb: x86 boot sector, mkdosfs boot message display, code offset 0x58, OEM-ID "mkfs.fat", sectors/cluster 64, Media descriptor 0xf8, heads 64, sectors 2147483648 (volumes > 32 MB) , FAT (32 bit), sectors/FAT 262081, serial number 0x6f30216d, label: "ephemeral0 "

umount分区

umount /mnt

格式化为ext4文件系统

[root@64-128 ~]# mkfs.ext4 /dev/vdb
mke2fs 1.42.9 (28-Dec-2013)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
67108864 inodes, 268435456 blocks
13421772 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2415919104
8192 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, 71663616, 78675968, 
        102400000, 214990848

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done     

重新挂载

mount -t ext4 /dev/vdb /mnt

posted on   cag2050  阅读(53)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
历史上的今天:
2019-10-31 gitlab 提示:remote: The project you were looking for could not be found.
2019-10-31 Invalid Host header 服务器域名访问出现的问题
2018-10-31 node api 之:Error
2017-10-31 idea中,war 与 war exploded 区别
2017-10-31 开发vue全局插件的4种方式

导航

点击右上角即可分享
微信分享提示