查询当前文件系统类型有两种方法
1、mount命令,看到文件系统类型为ext4格式
-
[root@localhost ~]# mount
-
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
-
proc on /proc type proc (rw)
-
sysfs on /sys type sysfs (rw)
-
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
-
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
-
/dev/sda1 on /boot type ext4 (rw)
- none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
2、查看fstab表,看到文件系统类型为ext4格式
- vim /etc/fstab
-
#
-
# /etc/fstab
-
# Created by anaconda on Mon Jan 26 19:10:11 2015
-
#
-
# Accessible filesystems, by reference, are maintained under '/dev/disk'
-
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
-
#
-
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
-
UUID=bb1adf9d-23b4-4a0b-ae87-878ee4ba6206 /boot ext4 defaults 1 2
-
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
-
tmpfs /dev/shm tmpfs defaults 0 0
-
devpts /dev/pts devpts gid=5,mode=620 0 0
-
sysfs /sys sysfs defaults 0 0
-
proc /proc proc defaults 0 0
- ~
fstab表:系统启动的时候根据这个表自动挂载
mount:系统运行时手动挂载