----------------------------------
quota磁盘配额
***************
quotacheck -cvuga检查并创建数据库文件
-c create,-v verbose,-u user,-g group,-a all所有分区
----------------------------------------
quotacheck -cvuga
mount -o usrquota,grpquota /dev/sdb1 /mnt/d1
quotaon -a
edquota -u
edquota -t
quotaoff -a
mkdir /mnt/d1/test
chown linux /mnt/d1/test
/etc/mtab 挂载记录
/etc/fstab 默认开机自动挂载目录
=======================================
=======================================
=======================================
磁盘分区
-------------------------
mkswap /dev/sdb2
初始化swap分区
-------------------------
写入
/etc/fstab
则开机直接挂载
-------------------------
写卷标
e2label
e2lable /dev/sdb1 test
--------------------------
mount
mount /mnt/d1 -o remount,ro,noexec,nodev
重新挂载成只读文件,不可执行,无设备文件系统
-----------------------------------
automounter
***************
yum -y instsall autofs
/etc/auto.misc 目录
ln -s /misc/cd /cd 创建软连接 -s symbolic
autofs信息写入日志目录 tail /var/log/messages
----
vi /etc/auto.master
/new /etc/auto.new
vi /etc/auto.new
cd --fstype=iso9660,ro :/dev/cdrom
----
/etc/init.d/autofs restart
----
ln -s /new/cd cd
----