1. Mount
[email protected] ~]$ mount
/dev/mapper/vg_tim-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)
/dev/sda2 on/boot type EXT4 (rw)
/DEV/SDA1 on/boot/efi type VFAT (rw,umask=0077,shortname=winnt)
/dev/mapper/vg_tim-lv_home on/home type EXT4 (rw)
None On/proc/sys/fs/binfmt_misc type Binfmt_misc (rw)
None On/sys/kernel/config type Configfs (rw)
Vmware-vmblock on/var/run/vmblock-fuse type Fuse.vmware-vmblock (rw,nosuid,nodev,default_permissions,allow_other)
2.df
[Email protected] ~]$ DF-LHT
Filesystem Type Size used Avail use% mounted on
/dev/mapper/vg_tim-lv_root
Ext4 50G 17G 30G 36%/
Tmpfs tmpfs 3.9G 232K 3.9G 1%/DEV/SHM
/dev/sda2 ext4 477M 73M 379M 17%/boot
/DEV/SDA1 vfat 200M 260K 200M 1%/boot/efi
/dev/mapper/vg_tim-lv_home
Ext4 860G 726G 90G 90%/Home
3. Fdisk
[email protected] ~]$ sudo fdisk/dev/sda
[sudo] password for op:
Warning:gpt (GUID Partition Table) detected on '/DEV/SDA '! The util Fdisk doesn ' t support GPT. Use GNU Parted.
The device presents a logical sector size is smaller than
The physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance could be impacted.
Warning:dos-compatible mode is deprecated. It ' s strongly recommended to
Switch off the mode (command ' C ') and change display units to
Sectors (Command ' u ').
Command (M for help): C
DOS compatibility flag is not set
Command (M for help): U
Changing display/entry units to sectors
Command (M for help): P
disk/dev/sda:1000.2 GB, 1000204886016 bytes
255 heads, Sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * MB = bytes
Sector size (logical/physical): bytes/4096 bytes
I/O size (minimum/optimal): 4096 bytes/4096 bytes
Disk IDENTIFIER:0X2E31A2A6
Device Boot Start End Blocks Id System
/DEV/SDA1 1 1953525167 976762583+ ee GPT
Partition 1 does not start on physical sector boundary.
Command (M for help): Q
4. File
[email protected] ~]$ sudo file-s/devsda
/devsda:cannot Open '/DEVSDA ' (No such file or directory)
[email protected] ~]$ sudo file-s/dev/sda
/dev/sda:x86 boot sector; Partition 1:id=0xee, Starthead 0, Startsector 1, 1953525167 sectors, extended partition table (last) \011, code offset 0x0
[email protected] ~]$ sudo file-s/dev/sda1
/dev/sda1:x86 boot sector, MKDOSFS boot message display, code offset 0x3c, Oem-id "Mkdosfs", Sectors/cluster 8, Root ent Ries, Media descriptor 0xf8, Sectors/fat, heads 255, sectors 409600 (Volumes > MB), serial number 0x8864577 2, Label: "", FAT (+ bit)
[email protected] ~]$ sudo file-s/dev/sda2
/dev/sda2:linux Rev 1.0 ext4 FileSystem data (needs Journal recovery) (extents) (huge files)
5. Parted
[email protected] ~]$ sudo parted
GNU Parted 2.1
Using/dev/sda
Welcome to GNU parted! Type ' help ' to view a list of commands.
(parted) p
Model:ata St1000dm003-1er1 (SCSI)
disk/dev/sda:1000gb
Sector size (logical/physical): 512b/4096b
Partition TABLE:GPT
Number Start End Size File system Name Flags
1 1049kB 211MB 210MB FAT16 boot
2 211MB 735MB 524MB ext4
3 735MB 1000GB 999GB LVM
(parted) Q
6. View Fstab
[Email protected] ~]$ Cat/etc/fstab
#
#/etc/fstab
# Created by Anaconda on Tue Mar 24 02:21:26 2015
#
# Accessible filesystems, by reference, is maintained under '/dev/disk '
# See mans Pages Fstab (5), Findfs (8), mount (8) and/or Blkid (8) for more info
#
/DEV/MAPPER/VG_TIM-LV_ROOT/EXT4 Defaults 1 1
Uuid=2ce8837b-3cdc-44f0-8b8f-63b64c32a5b9/boot EXT4 Defaults 1 2
Uuid=8864-5772/boot/efi vfat umask=0077,shortname=winnt 0 0
/dev/mapper/vg_tim-lv_home/home EXT4 Defaults 1 2
/dev/mapper/vg_tim-lv_swap swap swap defaults 0 0
/dev/sdc1/mnt/mobiledisk ntfs-3g 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
Linux viewing file system types