欢迎来到天天文库
浏览记录
ID:37894092
大小:77.00 KB
页数:8页
时间:2019-06-02
《quota操作过程》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、1、先用df(diskfree)命令查看磁盘空间[root@teacher~]#df文件系统1K-块已用可用已用%挂载点/dev/hda35080828428758853098089%//dev/hda520307366754818583684%/tmp/dev/hda2508082814169246768763%/home/dev/hda1101086183967747120%/boottmpfs22182002218200%/dev/shmnone2217321042216281%/var/lib/xenstored/dev
2、/hdc293695429369540100%/media/RHEL_5.4i386DVD2、创建新的分区,大小为500M,文件系统为/dev/hda7[root@teacher~]#fdisk/dev/hdaThenumberofcylindersforthisdiskissetto2610.Thereisnothingwrongwiththat,butthisislargerthan1024,andcouldincertainsetupscauseproblemswith:1)softwarethatrunsatbootti
3、me(e.g.,oldversionsofLILO)2)bootingandpartitioningsoftwarefromotherOSs(e.g.,DOSFDISK,OS/2FDISK)Command(mforhelp):m(注:查看可用命令)Commandactionatoggleabootableflagbeditbsddisklabelctogglethedoscompatibilityflagddeleteapartitionllistknownpartitiontypesmprintthismenunaddanew
4、partitionocreateanewemptyDOSpartitiontablepprintthepartitiontableqquitwithoutsavingchangesscreateanewemptySundisklabeltchangeapartition'ssystemiduchangedisplay/entryunitsvverifythepartitiontablewwritetabletodiskandexitxextrafunctionality(expertsonly)Command(mforhelp)
5、:n(注:新建分区)Firstcylinder(1712-2610,default1712):1712(注:初始扇区)Lastcylinderor+sizeor+sizeMor+sizeK(1712-2610,default2610):+500M(注:扇区大小)Command(mforhelp):p(注:显示硬盘分区表)Disk/dev/hda:21.4GB,21474836480bytes255heads,63sectors/track,2610cylindersUnits=cylindersof16065*512=82252
6、80bytesDeviceBootStartEndBlocksIdSystem/dev/hda1*11310439183Linux/dev/hda2146665245222+83Linux/dev/hda366713195245222+83Linux/dev/hda41320261010369957+5Extended/dev/hda513201580209645183Linux/dev/hda615811711105222682Linuxswap/Solaris/dev/hda717121773497983+83Linux(注
7、:新增了扇区/dev/hda7)Command(mforhelp):w(注:保存分区结果)Thepartitiontablehasbeenaltered!Callingioctl()tore-readpartitiontable.WARNING:Re-readingthepartitiontablefailedwitherror16:设备或资源忙.Thekernelstillusestheoldtable.Thenewtablewillbeusedatthenextreboot.Syncingdisks.[root@teache
8、r~]#3、格式化分区,以便用户使用[root@teacher~]#mkfs-text3/dev/hda7(注:格式化分区)mke2fs1.39(29-May-2006)Filesystemlabel=OStype:LinuxBlocksize=1024(log
此文档下载收益归作者所有