1,基本概念

   磁盘基本概念:

  磁盘最小存储单位是扇区(sector),每个扇区大小为512bytes,扇区组成一个圆就成为磁道(track),同一个磁道可以组成一个磁柱(Cylinder),是分区(partition)最小单位。

  第一个扇区最重要,里面有硬盘主引导记录(Masterbootrecord,MBR)占有446bytes以及分区表(partition table)占有64bytes  。

  磁盘接口类型:

IDE (ATA):133MB/s,/dev/hd

SCSI: 640MB/s

SATA:6Gbps

SAS:6Gbps

USB:480MB/s 

  识别硬盘设备:/dev/sd

标记不同的硬盘设备:/dev/sd[a-z]

标记同一设备上的不同分区:/dev/sd[a-z][1-]

1-4: 主或扩展分区标识

5+:逻辑分区标识

文件系统基本概念:

   VFS(Virtual File System) 虚拟文件系统,也称为虚拟文件系统开关(Virtual Filesystem Switch).

   这是Linux文件系统对外的接口。任何要使用文件系统的程序都必须经由这层接口来使用它。  

     Linux:ext2, ext3, ext4, reiserfs, xfs, btrfs, swap

    光盘:iso9660

     Windows: fat32(vfat), ntfs

     Unix: ffs, ufs, jfs, jfs2

     网络文件系统:nfs, cifs

     集群文件系统:ocfs2, gfs2

     分布式文件系统:ceph,  moosefs, mogilefs, hdfs, gfs, glusterfs       

        (1) 日志型文件系统

           非日志型文件系统:ext2

           日志型文件系统:ext3

        (2) swap:交换分区

 /etc/fstab   

  fstab文件包含了你的电脑上的存储设备及其文件系统的信息。它是决定一个硬盘(分区)被怎样使用或者说整合到整个系统中的文件。具体来说:用fstab可以自动挂载各种文件系统格式的硬盘、分区、可移动设备和远程设备等。  

[root@magedu ~]# cat /etc/fstab 

#
# /etc/fstab
# Created by anaconda on Sat Sep 12 17:20:15 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/vg_magedu-LogVol02_root /                       ext4    defaults        1 1
UUID=7095e308-d364-4b36-b2b5-8ae2c5050e13 /boot                   ext4    defaults        1 2
/dev/mapper/vg_magedu-LogVol00_usr /usr                    ext4    defaults        1 2
/dev/mapper/vg_magedu-LogVol01_root 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
[root@magedu ~]#


2,总结整理磁盘管理及文件系统管理中设计的各种命令的使用,并附注一定的示例;

  fdisk :磁盘分区命令  

Usage:

 fdisk [options] <disk>    change partition table          

         分区管理子命令:

                  p: 显示

                  n: 创建

                  d: 删除

                  t: 修改分区ID

                  l: 列出所有支持ID类型

                  w: 保存退出

                  q: 放弃修改并退出

                  m: 获取帮助

[root@magedu home]# fdisk /dev/sda1 
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0x42fd0ae6.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won't be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

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): l

 0  Empty           24  NEC DOS         81  Minix / old Lin bf  Solaris        
 1  FAT12           39  Plan 9          82  Linux swap / So c1  DRDOS/sec (FAT-
 2  XENIX root      3c  PartitionMagic  83  Linux           c4  DRDOS/sec (FAT-
 3  XENIX usr       40  Venix 80286     84  OS/2 hidden C:  c6  DRDOS/sec (FAT-
 4  FAT16 <32M      41  PPC PReP Boot   85  Linux extended  c7  Syrinx         
 5  Extended        42  SFS             86  NTFS volume set da  Non-FS data    
 6  FAT16           4d  QNX4.x          87  NTFS volume set db  CP/M / CTOS / .
 7  HPFS/NTFS       4e  QNX4.x 2nd part 88  Linux plaintext de  Dell Utility   
 8  AIX             4f  QNX4.x 3rd part 8e  Linux LVM       df  BootIt         
 9  AIX bootable    50  OnTrack DM      93  Amoeba          e1  DOS access     
 a  OS/2 Boot Manag 51  OnTrack DM6 Aux 94  Amoeba BBT      e3  DOS R/O        
 b  W95 FAT32       52  CP/M            9f  BSD/OS          e4  SpeedStor      
 c  W95 FAT32 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi eb  BeOS fs        
 e  W95 FAT16 (LBA) 54  OnTrackDM6      a5  FreeBSD         ee  GPT            
 f  W95 Ext'd (LBA) 55  EZ-Drive        a6  OpenBSD         ef  EFI (FAT-12/16/
10  OPUS            56  Golden Bow      a7  NeXTSTEP        f0  Linux/PA-RISC b
11  Hidden FAT12    5c  Priam Edisk     a8  Darwin UFS      f1  SpeedStor      
12  Compaq diagnost 61  SpeedStor       a9  NetBSD          f4  SpeedStor      
14  Hidden FAT16 <3 63  GNU HURD or Sys ab  Darwin boot     f2  DOS secondary  
16  Hidden FAT16    64  Novell Netware  af  HFS / HFS+      fb  VMware VMFS    
17  Hidden HPFS/NTF 65  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE 
18  AST SmartSleep  70  DiskSecure Mult b8  BSDI swap       fd  Linux raid auto
1b  Hidden W95 FAT3 75  PC/IX           bb  Boot Wizard hid fe  LANstep        
1c  Hidden W95 FAT3 80  Old Minix       be  Solaris boot    ff  BBT            
1e  Hidden W95 FAT1

Command (m for help): p

Disk /dev/sda1: 209 MB, 209715200 bytes
255 heads, 63 sectors/track, 25 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x42fd0ae6

     Device Boot      Start         End      Blocks   Id  System

Command (m for help):


 fdisk [options] -l <disk> list partition table(s)

[root@magedu home]# fdisk -l

Disk /dev/sda: 128.8 GB, 128849018880 bytes
255 heads, 63 sectors/track, 15665 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00061f0a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26       10469    83886080   8e  Linux LVM

Disk /dev/mapper/vg_magedu-LogVol02_root: 62.3 GB, 62272831488 bytes
255 heads, 63 sectors/track, 7570 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_magedu-LogVol01_root: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_magedu-LogVol00_usr: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@magedu home]#

 fdisk -s <partition>      give partition size(s) in blocks

[root@magedu /]# fdisk -s /dev/sda1
204800


 mke2fs - create an ext2/ext3/ext4 filesystem 创建ext2/ext3/ext4文件系统

mke2fs [OPTION]... DEVICE

-t {ext2|ext3|ext4}

-b {1024|2048|4096}

-L 'LABEL'

-j: mke2fs -t ext3

-i #:

-N #:

-m #: 预留磁盘空间占据多大百分比的空间为后期管理使用;

[root@magedu /]# mke2fs -t ext4 /dev/sda2            将sda2创建为ext4
[root@magedu /]# mke2fs -j /dev/sda2                 将sda2创建为ext3


e2label  - Change the label on an ext2/ext3/ext4filesystem

       改变卷标

e2label device [ new-label ]

[root@magedu ~]#e2label /dev/sda1 /newlabel
[root@magedu ~]# e2label /dev/sda1 
/newlabel

blkid 命令:可以查看块设备(包括交换分区)的文件系统类型、LABEL、UUID、挂载目录等信息

o<标签> 指定输出格式 (full、value、list\device\udev)

-s<标签> 显示指定标签信息 (LABEL、UUID、TYPE)



tune2fs  -  adjust tunable filesystem parameters on ext2/ext3/ext4 filesystems

         调整或查看文件系统参数

常用参数:

-l 查看文件系统信息

-c max-mount-counts 设置强制自检的挂载次数,如果开启,每挂载一次mount conut就会加1,超过次数就会强制自检

-i interval-between-checks[d|m|w] 设置强制自检的时间间隔[d天m月w周]

-m reserved-blocks-percentage 保留块的百分比

-j 将ext2文件系统转换为ext3类型的文件系统

-L volume-label 类似e2label的功能,可以修改文件系统的标签

-r reserved-blocks-count 调整系统保留空间

-o [^]mount-option[,...] Set or clear the indicated default mount options in the filesystem. 设置或清除默认挂载的文件系统选项

[root@magedu ~]# tune2fs -l /dev/sda1
tune2fs 1.41.12 (17-May-2010)
Filesystem volume name:   /newlabel
Last mounted on:          /boot
Filesystem UUID:          7095e308-d364-4b36-b2b5-8ae2c5050e13
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash 
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              51200
Block count:              204800
Reserved block count:     10240
Free blocks:              161714
Free inodes:              51162
First block:              1
Block size:               1024
Fragment size:            1024
Reserved GDT blocks:      256
Blocks per group:         8192
Fragments per group:      8192
Inodes per group:         2048
Inode blocks per group:   256
Flex block group size:    16
Filesystem created:       Sat Sep 12 17:19:49 2015
Last mount time:          Mon Sep 14 07:01:01 2015
Last write time:          Mon Sep 14 07:01:01 2015
Mount count:              8
Maximum mount count:      -1
Last checked:             Sat Sep 12 17:19:49 2015
Check interval:           0 (<none>)
Lifetime writes:          41 MB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:	          128
Journal inode:            8
Default directory hash:   half_md4
Directory Hash Seed:      e72c362d-3e7c-4b93-8118-22bea152c516
Journal backup:           inode blocks
[root@magedu ~]#


 mount - mount a filesystem  挂载文件系统

mount [-t vfstype] [-o options] device dir
1.-t vfstype 指定文件系统的类型
2.-o options 主要用来描述设备或档案的挂接方式
3.device 要挂接(mount)的设备。

4.dir设备在系统上的挂接点(mount point)。 


常用参数和选项: 

-a 加载文件/etc/fstab中设置的所有设备。 

-f 不实际加载设备。可与-v等参数同时使用以查看mount的执行过程。 

-F 需与-a参数同时使用。所有在/etc/fstab中设置的设备会被同时加载,可加快执行速度。 

-h 显示在线帮助信息。 

-L<标签> 加载文件系统标签为<标签>的设备。 

-n 不将加载信息记录在/etc/mtab文件中。 

-o<选项> 指定加载文件系统时的选项。有些选项也可在/etc/fstab中使用。这些选项包括: 

    async 以非同步的方式执行文件系统的输入输出动作。 

    atime 每次存取都更新inode的存取时间,默认设置,取消选项为noatime。 

    auto 必须在/etc/fstab文件中指定此选项。执行-a参数时,会加载设置为auto的设备,取消选取为noauto。 

    defaults 使用默认的选项。默认选项为rw、suid、dev、exec、anto nouser与async。 

    dev 可读文件系统上的字符或块设备,取消选项为nodev。 

    exec 可执行二进制文件,取消选项为noexec。 

    noatime 每次存取时不更新inode的存取时间。 

    noauto 无法使用-a参数来加载。 

    nodev 不读文件系统上的字符或块设备。 

    noexec 无法执行二进制文件。 

    nosuid 关闭set-user-identifier(设置用户ID)与set-group-identifer(设置组ID)设置位。 

    nouser 使一位用户无法执行加载操作,默认设置。 

    remount 重新加载设备。通常用于改变设备的设置状态。 

    ro 以只读模式加载。 

    rw 以可读写模式加载。 

    suid 启动set-user-identifier(设置用户ID)与set-group-identifer(设置组ID)设置位,取消选项为nosuid。 

    sync 以同步方式执行文件系统的输入输出动作。 

    user 可以让一般用户加载设备。 

-r 以只读方式加载设备。 

-t<文件系统类型> 指定设备的文件系统类型。常用的选项说明有: 

    minix Linux最早使用的文件系统。 

    ext2 Linux目前的常用文件系统。 

    msdos MS-DOS 的 FAT。 

    vfat Win85/98 的 VFAT。 

    nfs 网络文件系统。 

    iso9660 CD-ROM光盘的标准文件系统。 

    ntfs Windows NT的文件系统。 

    hpfs OS/2文件系统。Windows NT 3.51之前版本的文件系统。 

    auto 自动检测文件系统。 

-v 执行时显示详细的信息。 

-V 显示版本信息。 

-w 以可读写模式加载设备,默认设置。

[root@magedu ~]# mount -l
/dev/mapper/vg_magedu-LogVol02_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) [/newlabel]
/dev/mapper/vg_magedu-LogVol00_usr on /usr type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@magedu ~]# cd /media/
[root@magedu media]# mkdir cdrom
[root@magedu media]# mount -r /dev/cdrom  /media/cdrom/
[root@magedu media]# cd cdrom/
[root@magedu cdrom]# ls
CentOS_BuildTag  RELEASE-NOTES-en-US.html
EFI              repodata
EULA             RPM-GPG-KEY-CentOS-6
GPL              RPM-GPG-KEY-CentOS-Debug-6
p_w_picpaths           RPM-GPG-KEY-CentOS-Security-6
isolinux         RPM-GPG-KEY-CentOS-Testing-6
Packages         TRANS.TBL
[root@magedu cdrom]#

umount:卸载命令

# umount DEVICE

# umount MOUNT_POINT

free - Display amount of free and used memory in the system

    显示系统使用和空闲的内存情况,包括物理内存、交互区内存(swap)和内核缓冲区内存 

常用选项:  

-b 显示内存的单位为字节

-k 显示内存的单位为 KB

-m 显示内存的单位为 M

-o 忽略缓冲区调节列

-t 总和信息

-s<时间> 每隔指定时间执行一次命令,单位为s

-h 以可读形式显示容量,需要free -V显示版本大于3.3

-V 版本信息 

[root@magedu cdrom]# free
             total       used       free     shared    buffers     cached
Mem:       1004772     160480     844292        196       8096      43788
-/+ buffers/cache:     108596     896176 
Swap:      2097148          0    2097148 
[root@magedu cdrom]# free -m
             total       used       free     shared    buffers     cached
Mem:           981        156        824          0          7         42
-/+ buffers/cache:        106        875 
Swap:         2047          0       2047 
[root@magedu cdrom]#


mkswap:创建交换分区

mkswap [option] DEVICE

-L 'LABEL'

swapon:启用交换分区

swapon [option] [DEVICE]

-a: 激活所有交换分区

-p PRIORITY: 设定其优先级;

swapoff:禁用交换分区

swapoff [option] [DEVICE]


df - report file system disk space usage   报告文件系统磁盘空间的使用情况 

-h: human-readable

-i: inode数量

-P: 以Posix兼容的格式输出

[root@magedu ~]# df
Filesystem           1K-blocks    Used Available Use% Mounted on
/dev/mapper/vg_magedu-LogVol02_root
                      59727996  380392  56306940   1% /
tmpfs                   502384       0    502384   0% /dev/shm
/dev/sda1               194241   32527    151474  18% /boot
/dev/mapper/vg_magedu-LogVol00_usr
                      20511356  785916  18676864   5% /usr
/dev/sr0               3803432 3803432         0 100% /media/cdrom
[root@magedu ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_magedu-LogVol02_root
                       57G  372M   54G   1% /
tmpfs                 491M     0  491M   0% /dev/shm
/dev/sda1             190M   32M  148M  18% /boot
/dev/mapper/vg_magedu-LogVol00_usr
                       20G  768M   18G   5% /usr
/dev/sr0              3.7G  3.7G     0 100% /media/cdrom


du - estimate file space usage  查询档案或目录的磁盘使用空间

-h: human-readable

-s: summary

[root@magedu home]# du -sh  /etc/ /var/  /lib
29M	/etc/
86M	/var/
168M	/lib



 3、创建一个10G的文件系统,类型为ext4,要求开机可自动挂载至/mydata目录    

[root@magedu ~]# fdisk  /dev/sda

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): n         \\创建新分区

Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (10469-15665, default 10469): 
Using default value 10469
Last cylinder, +cylinders or +size{K,M,G} (10469-15665, default 15665): +10G

Command (m for help): p

Disk /dev/sda: 128.8 GB, 128849018880 bytes
255 heads, 63 sectors/track, 15665 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00061f0a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          26      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26       10469    83886080   8e  Linux LVM
/dev/sda3           10469       11774    10482751   83  Linux

Command (m for help): w                          \\保存修改
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@magedu ~]# partx -a /dev/sda           \\刷新分区表
BLKPG: Device or resource busy
error adding partition 1
BLKPG: Device or resource busy
error adding partition 2
[root@magedu ~]# partx -a /dev/sda
BLKPG: Device or resource busy
error adding partition 1
BLKPG: Device or resource busy
error adding partition 2
BLKPG: Device or resource busy
error adding partition 3
[root@magedu ~]# cat /proc/partitions            
major minor  #blocks  name

   8        0  125829120 sda
   8        1     204800 sda1
   8        2   83886080 sda2
   8        3   10482751 sda3
 253        0   60813312 dm-0
 253        1    2097152 dm-1
 253        2   20971520 dm-2
[root@magedu ~]# mke2fs  -t  ext4 /dev/sda3  \\将sda3格式化为ext4
mke2fs 1.41.12 (17-May-2010)
文件系统标签=
操作系统:Linux
块大小=4096 (log=2)
分块大小=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
655360 inodes, 2620687 blocks
131034 blocks (5.00%) reserved for the super user
第一个数据块=0
Maximum filesystem blocks=2684354560
80 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

正在写入inode表: 完成                            
Creating journal (32768 blocks): 完成
Writing superblocks and filesystem accounting information: 完成

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@magedu ~]# blkid /dev/sda3            \\查看sda3属性信息
/dev/sda3: UUID="ac93c457-4fb2-467d-aa86-aeb966a4741c" TYPE="ext4" 
[root@magedu ~]# 
[root@magedu ~]# 
[root@magedu ~]# cd /mydata/
[root@magedu mydata]# ls
[root@magedu mydata]# 
[[root@magedu mydata]# vim /etc/fstab               \\修改fstab


#
# /etc/fstab
# Created by anaconda on Sat Sep 12 17:20:15 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/vg_magedu-LogVol02_root /                       ext4    defaults        1 1
UUID=7095e308-d364-4b36-b2b5-8ae2c5050e13 /boot                   ext4    defaults        1 2
/dev/mapper/vg_magedu-LogVol00_usr /usr                    ext4    defaults        1 2
/dev/mapper/vg_magedu-LogVol01_root swap                    swap    defaults        0 0
/dev/sda3               /mydata                 etx4    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            

[root@magedu mydata]# reboot               \\重启

Broadcast message from root@magedu
	(/dev/pts/0) at 9:12 ...

The system is going down for reboot NOW!
[root@magedu mydata]# 
Connection closed by foreign host.

Disconnected from remote host(192.168.3.10:22) at 01:12:38.

Type `help' to learn how to use Xshell prompt.
[c:\~]$ ssh root@192.168.3.10


Connecting to 192.168.3.10:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Last login: Mon Sep 14 09:13:21 2015 from 192.168.3.7
[root@magedu ~]# cd /mydata/
[root@magedu mydata]# ll                      \\成功挂载
总用量 16
drwx------. 2 root root 16384 9月  14 09:08 lost+found
[root@magedu mydata]# mount -l
/dev/mapper/vg_magedu-LogVol02_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) [/newlabel]
/dev/mapper/vg_magedu-LogVol00_usr on /usr type ext4 (rw)
/dev/sda3 on /mydata type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@magedu mydata]#