欢迎来到天天文库
浏览记录
ID:20463898
大小:79.35 KB
页数:4页
时间:2018-10-12
《linux下磁盘配额实验》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Linux下磁盘配额实验磁盘分区#fdisk/dev/sdb[root@chenfd±3k/dev/sdfcWARNING:DOS-compatiblemodeisdeprecated.It1sstronglyrecommendedtoswitchoffthemode(cosmand*0*)andchangedisplayunitstosectors(command1u1).Command(mforhelp):nCommandactioneextendedpprimarypartition(1-4)PPartitionnumber(1-4):1Firstc
2、ylinder(1-1305,default1):Usingdefaultvalue1Lastcylinderr+cylinder3or+size{K,M,G}(1-1305,default1305):Usingdefaultvalue1305Conmand(mforhelp):zSelectedpartition1Hexcode(typeLtolistcodes):8eChangedsystemtypeofpartition1to8e(LinuxLVM)Command(mforhelp):wThepartitiontablehasbeenaltered!
3、Cailrngioctl()tore-readpartitiontable.Syncingdisks.格式化磁盘#mkfs.ext4/dev/sdblmke2f31.41.12(17-May-2010)File3y3temlabel=OStype:LinuxBlocksize=4096(log=2)Fragmentsize=4096(log=2)Stride=0blocks^Stripewidth=0blocks655360inodes,2620595blocks131029blocks(5>00%)reservedforthesuperuserFirst
4、datablock»0Maximumfilesystemblocks"26e435456080blockgroups32768blockspergroup,32768fragmentspergroup8192InodespergroupSuperblockbackupsstoredonblocks:32768,98304,163840,229376,294912r819200,884736,1605632Writinginodetables:doneCreatingjournal(32768blocks):doneWritingsuperblocksand
5、fLlesystexaccountinginformation:doneevery29mount3or•cor-itooverride.Thisfilesystemwillfceautomaticallychecked180daysfwhichevercome3first.Usetune2f3编辑开机加载并执行查看分区的UUIDIblkic#blkid[rooc@chen/dev/adal:UUII>wb0387009-c0d8-4c26-9flLbl-77bda8db€3bawTYPE-^ext^-/dev/sda2:UUID^^Snuf9E-EFxK-
6、Hrv€-niyb5-xrDF-lFa7-AUnifM6,1TYPE=WLVM2_member"/dev/adbl:7U:Z-n7i9025c€-45-:5--5d6a-2daF7-3d2a9cf7e73fcnTYPE-n*xf5n一/dev/mapper/vg_chen-lv_root:UUID=H57700aec-lb5a-40ee-Qa5c-099cee2804dfHTYPE=Hext4••/dev/Eapper/vg^chen-lv^swap:UUID=n4beeba3d-bfce9-4fae-b267-b5e83a3f7878^TYPE=wswa
7、p/dev/ELapper/vg_chen-lv_hoite:OUID=R09e212t7-4334-437e-95€a-adhf772d27c3nTYPE="ext4n丧到UUID=719025c6-4545-4d6a-8da7-3d2a9cf7e70b并创建加载点林mkdir/mnt/jiane写入开机加载文件/etc/fstab里#vim/etc/fstabI/etc/fstab壽CreatedbyanacondaonWedOct1900:17:002016#IAccessiblefilesystems,byreference,arexaintame
8、dunder•/dev/disk*拿Seemanpagesfsta
此文档下载收益归作者所有