linux系统fsck命令参考

linux系统fsck命令参考

ID:34724201

大小:52.87 KB

页数:4页

时间:2019-03-10

linux系统fsck命令参考_第1页
linux系统fsck命令参考_第2页
linux系统fsck命令参考_第3页
linux系统fsck命令参考_第4页
资源描述:

《linux系统fsck命令参考》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、Linux下fsck参考英译:CheckingandRepairingFilesystems检查并修复文件系统ItissometimesnecessarytocheckyourLinuxfilesystemsforconsistencyandrepairthemifthereareanyerrorsorifyoulosedata.Sucherrorscommonlyresultfromasystemcrashorlossofpower,makingthekernelunabletosyncthefilesystembuffercachewiththecontentsof

2、thedisk.Inmostcases,sucherrorsarerelativelyminor.However,ifthesystemweretocrashwhilewritingalargefile,thatfilemaybelostandtheblocksassociatedwithitmarkedas"inuse,"wheninfactnofileentryiscorrespondingtothem.Inothercases,errorscanbecausedbyaccidentallywritingdatadirectlytothehard-drivedevi

3、ce(suchas/dev/hda),ortooneofthepartitions.有时候会有必要对你的LINUX文件系统做一致性检查,如果有错误或丢失数据的话就要做修复.一般系统崩溃或断电的情况下会出现这样的错误,从而导致内核不能和文件系统对磁盘数据缓存保持同步.很多情况下,这样的错误很少相关的.然而,当系统在写入一个大文件时发生崩溃的话,文件可能就会丢失并且它正在写入的块被标记着"在用",但是实际上却没有文件与之相关.另外有一些原因,有可能是数据以外地被直接写入硬盘驱动器(如/dev/hda)或者分区中的一个而导致的错误.Theprogramfsckisusedto

4、checkfilesystemsandcorrectanyproblems.Likemkfs,fsckisafrontendforafilesystem-type-specificfsck.type,suchasfsck.ext2forSecondExtendedfilesystems.(Aswithmkfs.ext2,fsck.ext2isasymboliclinktoe2fsck,eitherofwhichyoucanexecutedirectlyifthefsckfrontendisnotinstalled.)fsck程序就是用来检查文件系统并修复任何问题.与mk

5、fs类似,fsck也是一种文件系统指定类型(filesystem-type-specific)fsck.type的前端,就像fsck.ext2是SecondExtended文件系统用来纠错的程序.(如同mkfs.ext2,fsck.ext2是e2fsck的一个连接,在fsck前端程序不能用时它们中的任何一个你都能直接用来执行.)Useoffsckisquitesimple;theformatofthecommandis:使用fsck很简单;它的命令格式是:fsck-ttypedevicewheretypeisthetypeoffilesystemtorepair,asg

6、iveninTable6-1,anddeviceisthedevice(drivepartitionorfloppy)onwhichthefilesystemresides.type是需要修复的文件系统类型,在6-1表中有,device是文件系统所在的设备(硬盘分区或软盘).Forexample,tocheckanext2filesystemon/dev/hda2,youuse:比如要检查/dev/hda2上的ext2文件系统,你可以用:rutabaga#fsck-text2/dev/hda2Parallelizingfsckversion1.06(7-Oct-96)e

7、2fsck1.06,7-Oct-96forEXT2FS0.5b,95/08/09/dev/hda2ismounted.Doyoureallywanttocontinue(y/n)?y/dev/hda2wasnotcleanlyunmounted,checkforced.Pass1:Checkinginodes,blocks,andsizesPass2:CheckingdirectorystructurePass3:CheckingdirectoryconnectivityPass4:Checkingreferencecounts.Pass

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。