文档详情

quota操作过程.doc

发布:2017-12-17约1.36万字共8页下载文档
文本预览下载声明
1、先用df(disk free)命令查看磁盘空间 [root@teacher ~]# df 文件系统 1K-块 已用 可用 已用% 挂载点 /dev/hda3 5080828 4287588 530980 89% / /dev/hda5 2030736 67548 1858368 4% /tmp /dev/hda2 5080828 141692 4676876 3% /home /dev/hda1 101086 18396 77471 20% /boot tmpfs 221820 0 221820 0% /dev/shm none 221732 104 221628 1% /var/lib/xenstored /dev/hdc 2936954 2936954 0 100% /media/RHEL_5.4 i386 DVD 2、创建新的分区,大小为500M,文件系统为/dev/hda7 [root@teacher ~]# fdisk /dev/hda The number of cylinders for this disk is set to 2610. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Command (m for help): m(注:查看可用命令) Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partitions system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): n(注:新建分区) First cylinder (1712-2610, default 1712): 1712(注:初始扇区) Last cylinder or +size or +sizeM or +sizeK (1712-2610, default 2610): +500M(注:扇区大小) Command (m for help): p(注:显示硬盘分区表) Disk /dev/hda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 13 104391 83 Linux
显示全部
相似文档