文档介绍:Linux磁盘配额实验九Linux磁盘配额好风光好风光恢复供货才实验九Linux磁盘配额,一,用户磁盘配额【需求】,添加一个用户,账号为testquota,初始口令为123456;,创建一个新的分区,大小为30M,以EXT3文件系统对新分区进行格式化,并以/home为新分区的挂载点;,要求在/home文件系统对testquota用户进行磁盘配额;,磁盘配额的大小为软配额1MB,硬配额2MB。【系统及软件环境】操作系统:【实验配置文件及命令】1(配置文件:/etc/fstab,(命令:vi,fdisk,quotacheck,edquota,quotaon【实验步骤】1(创建用户。[******@linux/]#useraddtestquota[******@linux/]#passwdtestquota2(创建新的磁盘分区,大小为30MB,并进行格式化。71Linux系统管理员实训手册[******@linux/]#fdisk/dev/mand(mforhelp):nCommandactioneextendedpprimarypartition(1-4)pPartitionnumber(1-4):4Firstcylinder(703-783,default703):Usingdefaultvalue703Lastcylinderor+sizeor+sizeMor+sizeK(703-783,default783):+mand(mforhelp):pDisk/dev/sda:6442MB,6442450944bytes255heads,63sectors/track,783cylindersUnits=cylindersof16065*512=8225280bytesDeviceBootStartEndBlocksIdSystem/dev/sda1*1637511667183Linux/dev/sda2638702522112+82Linuxswap/dev/sda470370740162+mand(mforhelp):wThepartitiontablehasbeenaltered!Callingioctl()tore-:Re-.[******@localhost/]#init6重新启动计算机后,查看分区[******@localhost~]#fdisk-lDisk/dev/sda:6442MB,6442450944bytes72实验九Linux磁盘配额255heads,63sectors/track,783cylindersUnits=cylindersof16065*512=8225280bytesDeviceBootStartEndBlocksIdSystem/dev/sda1*1637511667183Linux/dev/sda2638702522112+82Linuxswap/dev/sda470370740162+83Linux[r