为什么每次开机多要checking file system啊?

重复贴和参考价值不大的帖子,版主维护
回复
kobe4000
帖子: 8
注册时间: 2005-11-08 12:47
送出感谢: 0
接收感谢: 0
联系:

为什么每次开机多要checking file system啊?

#1

帖子 kobe4000 » 2009-01-01 8:43

每次开机多这样很浪费时间阿,怎么设置才能取消它了.硬盘大,要花挺长时间的 :em20
头像
睫毛上的土
帖子: 121
注册时间: 2007-08-18 4:24
来自: 江苏
送出感谢: 0
接收感谢: 0

Re: 为什么每次开机多要checking file system啊?

#2

帖子 睫毛上的土 » 2009-01-01 8:45

没遇到过这种问题,不过估计这篇文章可以帮楼主。

http://ubuntu.wordpress.com/2005/10/12/ ... at-bootup/
kobe4000
帖子: 8
注册时间: 2005-11-08 12:47
送出感谢: 0
接收感谢: 0
联系:

Re: 为什么每次开机多要checking file system啊?

#3

帖子 kobe4000 » 2009-01-01 8:56

晕,这网址我打不开,能贴一下马
头像
睫毛上的土
帖子: 121
注册时间: 2007-08-18 4:24
来自: 江苏
送出感谢: 0
接收感谢: 0

Re: 为什么每次开机多要checking file system啊?

#4

帖子 睫毛上的土 » 2009-01-01 9:16

估计是和谐掉了:
Ubuntu forces drives to be checked once for every 30 times the filesystem is mounted. This means that on an average, once every 30 times you bootup your computer, the filesystem integrity is checked. This is very reasonable for a desktop, which is seldom rebooted. However, for a laptop, this means pain, since you may be planning on making a presentation, and Ubuntu may start a filesystem check just when you hook up your laptop to the projector and bootup! Today we will see how to disable (or force) the checking temporarily, and also how to adjust the period and frequency of the check.

To disable filesystem integrity check for the next bootup, create a file called /fastboot. So a
$sudo touch /fastboot
will disable filesystem check for the next time you bootup. Since the /fastboot file is removed during bootup, this will disable filesystem check only once - for the one time you bootup after you create the /fastboot file (which need not have anything in it — hence the touch, which only creates the file)
On the contrary to force a filesystem check the next time you bootup, create a file called /forcefsck by doing
$sudo touch forcefsck

Now, on to the more interesting business of how to change the number of bootups between filesystem checks, and modifying the period with which the filesystem is checked. The following applies to ext2 and ext3 filesystems.

tune2fs is an utility that you can use to change both the number of bootups between filesystem checks, and the number of days/weeks/months between filesystem checks.

For example to have the filesystem checked once every 60 bootups use
$sudo tune2fs -c 60

To have the filesystem check run periodically, say once a week, use
$sudo tune2fs -i 1w
changing the “w” to “d” or “m” will have the check run once daily and once monthly - you get the idea.

As always, you can read
$man tune2fs
for more detailed information and examples.
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15
送出感谢: 0
接收感谢: 0

Re: 为什么每次开机多要checking file system啊?

#5

帖子 qqttdh » 2009-01-01 9:16

示例:
sudo tune2fs -c 0 -i 0 /dev/sdax

参考:
http://tonykorn97.itpub.net/post/6414/461646
发言并不是一种义务,最喜欢的回答是不知道
两个手指点击,居然默认就是鼠标中键功能
右上角是中键,右下角是左键
Grub真小,才512B
零度电子书(Unix&Linux)
http://books.05sun.com/downlist/s_62_3.html
win7恢复能力不如xp,ubuntu相对较稳定。。。待机恢复起来似乎。。。
kobe4000
帖子: 8
注册时间: 2005-11-08 12:47
送出感谢: 0
接收感谢: 0
联系:

Re: 为什么每次开机多要checking file system啊?

#6

帖子 kobe4000 » 2009-01-01 9:35

kain@kain-pc:~$ sudo tune2fs -c 0 -i 0 /dev/sdc1
[sudo] password for kain:
tune2fs 1.41.3 (12-Oct-2008)
tune2fs: Bad magic number in super-block 当试图打开/dev/sdc1时
Couldn't find valid filesystem superblock.
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15
送出感谢: 0
接收感谢: 0

Re: 为什么每次开机多要checking file system啊?

#7

帖子 qqttdh » 2009-01-01 11:54

kobe4000 写了:kain@kain-pc:~$ sudo tune2fs -c 0 -i 0 /dev/sdc1
[sudo] password for kain:
tune2fs 1.41.3 (12-Oct-2008)
tune2fs: Bad magic number in super-block 当试图打开/dev/sdc1时
Couldn't find valid filesystem superblock.
仅对ext格式有效

使用 mount 查看

mount | grep ext
发言并不是一种义务,最喜欢的回答是不知道
两个手指点击,居然默认就是鼠标中键功能
右上角是中键,右下角是左键
Grub真小,才512B
零度电子书(Unix&Linux)
http://books.05sun.com/downlist/s_62_3.html
win7恢复能力不如xp,ubuntu相对较稳定。。。待机恢复起来似乎。。。
youngerlak
帖子: 951
注册时间: 2008-11-09 14:58
送出感谢: 0
接收感谢: 0

Re: 为什么每次开机多要checking file system啊?

#8

帖子 youngerlak » 2009-01-01 12:51

我有过类似的经验,是有个分区挂载的问题。重新挂了就好了
我是菜鸟,我怕啥!顶多重新装一次又怎么样?10几年来WINDOWS我们重新来过了多少次?
其实也就只会装装系统,其他一概不会
http://youngerlak.blog.163.com
kobe4000
帖子: 8
注册时间: 2005-11-08 12:47
送出感谢: 0
接收感谢: 0
联系:

Re: 为什么每次开机多要checking file system啊?

#9

帖子 kobe4000 » 2009-01-01 17:42

虽然现在我把fstab的pass项设为了0,关闭了check,还是不甘心阿,
楼上的说的挂在问题是什么阿?开机不是每次多从新挂在的吗!
回复

回到 “归档贴”