2015-10-16

[SOLVED]Identify Your Linux File System Type (Ext2 or Ext3 or Ext4)

17:09 10/04/2015

#1:
root@LVMLAB /new_drive# df -T
Filesystem           Type  1K-blocks   Used Available Use% Mounted on
/dev/sda1            ext4   18011464 711868  16377996   5% /
tmpfs                tmpfs    957216      0    957216   0% /dev/shm
/dev/mapper/vg01-lv01
                     ext4    6061632  16384   5730700   1% /new_drive

#2:
root@LVMLAB /new_drive# mount | grep "^/dev"
/dev/sda1 on / type ext4 (rw)
/dev/mapper/vg01-lv01 on /new_drive type ext4 (rw)

#3:
root@LVMLAB /new_drive# file -sL /dev/sda1
/dev/sda1: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files) (huge files)

root@LVMLAB /new_drive# file -sL /dev/sdb1
/dev/sdb1: LVM2 (Linux Logical Volume Manager) , UUID: eiYSnNYphkTsLjJ2EcVmvohl2ZCuCEZ

root@LVMLAB /new_drive# file -sL /dev/sdc1
/dev/sdc1: LVM2 (Linux Logical Volume Manager) , UUID: w1quB0pFsS68Z3IhYrG3CPIljWCmLdt


#4:
root@LVMLAB /new_drive# fsck -N /dev/sda1
fsck from util-linux-ng 2.17.2
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 /dev/sda1

No comments:

Post a Comment