Can be set to automatically mount at the command line and then mount, the mount can be achieved without shutdown, restart will automatically mount;
Loading drive (a drive device);
mount / dev / cdrom / mnt (temporary);
mount / dev / sdb1 / mnt # temporary mount
cat / etc / fstab; # View automatically mount the file;
Mount equipment; mount point; file system type; mount of parameter options (if you want to back up backup, backup is not 0); start checking whether to do (0 not checked, check 1,2)
mount -a: mount / all configurations in fstab
25.1 view the information mounted:
cat /proc/mounts
df -hT: View class has been mounted using the amount of disk partition, and file system
df -hi (see mount block and inode usage)
25.2, unloading mounted hard disk:
umount /dev/sdb1
Disk systems commonly used tools:
Modify the file system information: tune2fs
dumpe2fs: View ext file system information
megacli: View raid information
ipmitools: View hardware information tool
resize2fs: big adjustment file system
25.1, format the hard disk, create a file system:
25.1.1, formatting installation xfs:
yum install xfsprogs kmod-xfs xfsdump xfsprogs-devel: install xfs file system
modprobe xfs: load the kernel
lsmod | grep xfs: Viewing the kernel
xfs 1125237 0
exportfs 4236 1 xfs
mkfs.xfs / dev / sdb1: xfs file system creation
partprobe / dev / sdb: to tell the kernel partition is already in force
25.1.2, mkfs description:
Format the hard disk, create a file system, view system supported file system type;
mkfs -t (specified file format) ext4 -f (overwrites the previous file system) -b (specify the file block size) 4096 -i (inode specified size) 1024 / dev / sdb1 (typically using default block: 4k inode: 256byte)
mkfs.ext4 /dev/sdb1
partprobe / dev / sdb: to tell the kernel partition is already in force
25.1.3、fsck:
检查磁盘是否有坏道,用于磁盘无法使用时使用(挂载后的硬盘无法使用):
fsck -n /dev/sdb1