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 2023-10-31 11:09  cag2050  阅读(47)  评论(0编辑  收藏  举报

导航