資源描述:
《linux分區(qū)的一些建議》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在工程資料-天天文庫。
1、linux分區(qū)的一些建議ImentioneclinthearticletheoptimizationontheBBSpreliminary,alsohavediskfragmentationLinux,soinordertoreducedebris,contentshouldbeconstantlychangingdirectoryonaseparatepartition.AnoptimizedpartitioningstrategythatimprovestheperformanceofLinuxsystems,reducesdiskfragmentation,andimprove
2、sdiskI/Ocapabilities.Convenientfromtheviewpointofthebackupdata,becausealotofbackuptooltobackupthepartitionoftheefficiencyisveryhigh,soweshouldregardtheLinuxsystemdirectoryofseveralmajorasaseparatefilesystem,anareafortheirdistribution.Hereisasimpleintroductiontoafewimportantdirectories,whichcanb
3、eusedformountingaspecialpartitionwhenthediskisinstalledinubuntu.Afilethatisnormallyunchangedintheusrfilesystem,suchaslibraries,programs?The/varfilesystemcontainsfilesthatwillchange?The/homefilesystemcontainstheuser'shomedirectory,whichisalltheactualdataonthesystem./TMPtemporaryfiles?/usr/locali
4、sa/usrdirectoryforgeneralusers,whichisbestsuitedforinstallingsoftware?/SRVsomeservicesarestartedandtherequireddataisplacedhere./optsomelargeprograms,installedhere,foreasymanagement?/rootdirectory,no.Myadviceisthatallofthesedirectoriesareindividuallypartitionedontheharddisk,andifyouwanttoaskwhy,
5、Icangiveyouanexample?LumaQQ,forexample,thesoftware,wecanputhimundertheinstalledat/opt,soifweneedtoreinstallthesystem,canchoosenottoformat/opt,and~/?LumaQQunderthebackupfolder,sothatwhenweinstalledsystem,againthe/optmountisgood,onlyneedtoputthe?LumaQQthisfolderintheconfiguredJava,runacommand:Cod
6、e:Sudonaturallog-s/opt/LumaQQ/usr/bin/LumaQQYoucanusethelumaqqagain,andthesettingofaseriesoflumaqq,suchasthechatlog,willnotgoaway,avoidingthehassleofdownloadingandthetroubleofinstallingit.FromtheAngleofthediskfragmentation,/TMP,/var/homeandarethemostfrequentactivitypartition,ifweputthemdirectly
7、intherootdirectorywillcausetheproblemsofprocessing,thenthediskfragmentsimpactontheperformanceofthewholedisk?Therefore,Irecommendthatallofthesedirectoriesbeindividuallypartitionedandmountedseparately.Whenpartitionisalsohavecertainc