fsck害了我很久了,必须关掉,因为他每次打卡都要推迟数十分钟。
2014-07-22 18:16
148 查看
http://crashmag.net/disable-filesystem-check-fsck-at-boot-time
Disable the filesystem check (fsck) at boot time
11/08/2012 crashmag Leave a comment
There’s several ways of accomplishing this. I will list all the methods beneath, just pick the one that fits the situation/you.
•Filesystem tunable
•Grub boot parameter
•Placing command files on your root device
•Active reboot without FSCK
Filesystem tunable
Use the tune2fs command to tell your filesystem to have a max count of mounts before a check to 0 to disable it.
# tune2fs -c 0 /dev/sda1
Parameter reference:
-c max-mount-counts
Adjust the number of mounts after which the filesystem will be checked by e2fsck(8). If max-mount-counts is 0 or -1, the number of times the filesystem is mounted will be disregarded by e2fsck(8) and the kernel.
Grub boot parameter
Add the following at the end of your grub boot linux line.
fastboot
This can be done by editing “grub.conf” or by editing the boot command via the grub menu at boot.
Placing command files on your root device
To disable the filesystem check on boot.
# touch /fastboot
To enable a filesystem check on boot.
# touch /forcefsck
Active reboot without FSCK
# shutdown -rf
Parameter reference:
-r Reboot after shutdown.
-f Skip fsck on reboot.
// CrashMAG
Disable the filesystem check (fsck) at boot time
11/08/2012 crashmag Leave a comment
There’s several ways of accomplishing this. I will list all the methods beneath, just pick the one that fits the situation/you.
•Filesystem tunable
•Grub boot parameter
•Placing command files on your root device
•Active reboot without FSCK
Filesystem tunable
Use the tune2fs command to tell your filesystem to have a max count of mounts before a check to 0 to disable it.
# tune2fs -c 0 /dev/sda1
Parameter reference:
-c max-mount-counts
Adjust the number of mounts after which the filesystem will be checked by e2fsck(8). If max-mount-counts is 0 or -1, the number of times the filesystem is mounted will be disregarded by e2fsck(8) and the kernel.
Grub boot parameter
Add the following at the end of your grub boot linux line.
fastboot
This can be done by editing “grub.conf” or by editing the boot command via the grub menu at boot.
Placing command files on your root device
To disable the filesystem check on boot.
# touch /fastboot
To enable a filesystem check on boot.
# touch /forcefsck
Active reboot without FSCK
# shutdown -rf
Parameter reference:
-r Reboot after shutdown.
-f Skip fsck on reboot.
// CrashMAG
相关文章推荐
- 甲;乙;丙;丁四个人过桥,分别需要1,2,5,因为天黑,必须借助手电筒过桥可是总共只有一个手电筒,并且桥的载重能力有限,只能承受两个人的重量也就是说每次最多过两个人,怎样才能做到用
- 【codeforces 274B】【树形DP】 B. Zero Tree【一棵树,每个点有权值,每次操作可以对一个联通子集中的点全部加或者减1,且每次操作必须包含点1,问最少多少次操作权值全为0】
- 算法兴趣----- 一亿数据获取前100个最大值(仅供参考,基于快速排序的实现时间不稳定,基于最小堆实现。如果我们只要求前K个最大(小)值的时候,用堆是最好的选择,因为这里不用每次都排序了)
- 您要求从远程 'origin' 拉取,但是未指定一个分支。因为这不是当前 分支默认的远程仓库,您必须在命令行中指定一个分支名。
- eclipse出现每次修改代码报heap over错误,然后必须重启tomcat问题,修改过程
- WPF 之 调用线程必须为 STA,因为许多 UI 组件都需要
- 成功,必须的要素之一,就是时间属性(因为他绝不屈服的精神,注定他这辈子不管干什么,都会很出类拔萃)
- 很久没写BLOG了,因为CSDN的BLOG不但慢,而且老是出错,希望会好起来。
- XmlBeanDefinitionStoreException 元素 'mvc:resources' 必须不含字符或元素信息项 [子级], 因为该类型的内容类型为空。
- 调用线程必须为 STA,因为许多 UI 组件都需要
- c# 中对于每次修改的程序 都必须重新手动生成 才能编译的问题
- 本来从动态壁纸预览页面设置一个动态壁纸回到桌面便可以看到桌面动态壁纸,可以观察得到自己的动态壁纸是否设置成功了(必须知道设置是否成功的结构,因为还有一些操作需要完成)! 但是现在是要在自己的应用中进入
- 错误提示是:发布 '%1' 的并发快照不可用,因为该快照尚未完全生成,或者日志读取器代理未运行,无法激活它。如果并发快照的生成过程中断,则必须重新启动用于该发布的快照代理,直到生成完整的快照
- 调用线程必须为STA,因为许多UI组件都需要。
- Retinex算法详解(盗了别人的,很抱歉了,因为每次想看都要去别人的地放找)
- 调用线程必须为 STA,因为许多 UI 组件都需要(转载)
- 调用线程必须为 STA,因为许多 UI 组件都需要
- 调用线程必须为 STA,因为许多 UI 组件都需要
- 类属性"get"必须声明主体,因为它未标记为 abstract 或 extern[解决方法]
- 后台添加控件时,必须每次重画控件,才能从前台获取控件数据。