为什么每次开机多要checking file system啊?
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 8
- 注册时间: 2005-11-08 12:47
为什么每次开机多要checking file system啊?
每次开机多这样很浪费时间阿,怎么设置才能取消它了.硬盘大,要花挺长时间的
- 睫毛上的土
- 帖子: 121
- 注册时间: 2007-08-18 4:24
- 来自: 江苏
-
- 帖子: 8
- 注册时间: 2005-11-08 12:47
Re: 为什么每次开机多要checking file system啊?
晕,这网址我打不开,能贴一下马
- 睫毛上的土
- 帖子: 121
- 注册时间: 2007-08-18 4:24
- 来自: 江苏
Re: 为什么每次开机多要checking file system啊?
估计是和谐掉了:
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.
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
Re: 为什么每次开机多要checking file system啊?
发言并不是一种义务,最喜欢的回答是不知道
两个手指点击,居然默认就是鼠标中键功能
右上角是中键,右下角是左键
Grub真小,才512B
零度电子书(Unix&Linux)
http://books.05sun.com/downlist/s_62_3.html
win7恢复能力不如xp,ubuntu相对较稳定。。。待机恢复起来似乎。。。
两个手指点击,居然默认就是鼠标中键功能
右上角是中键,右下角是左键
Grub真小,才512B
零度电子书(Unix&Linux)
http://books.05sun.com/downlist/s_62_3.html
win7恢复能力不如xp,ubuntu相对较稳定。。。待机恢复起来似乎。。。
-
- 帖子: 8
- 注册时间: 2005-11-08 12:47
Re: 为什么每次开机多要checking file system啊?
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.
[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
Re: 为什么每次开机多要checking file system啊?
仅对ext格式有效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.
使用 mount 查看
或
mount | grep ext
发言并不是一种义务,最喜欢的回答是不知道
两个手指点击,居然默认就是鼠标中键功能
右上角是中键,右下角是左键
Grub真小,才512B
零度电子书(Unix&Linux)
http://books.05sun.com/downlist/s_62_3.html
win7恢复能力不如xp,ubuntu相对较稳定。。。待机恢复起来似乎。。。
两个手指点击,居然默认就是鼠标中键功能
右上角是中键,右下角是左键
Grub真小,才512B
零度电子书(Unix&Linux)
http://books.05sun.com/downlist/s_62_3.html
win7恢复能力不如xp,ubuntu相对较稳定。。。待机恢复起来似乎。。。
-
- 帖子: 951
- 注册时间: 2008-11-09 14:58
Re: 为什么每次开机多要checking file system啊?
我有过类似的经验,是有个分区挂载的问题。重新挂了就好了
-
- 帖子: 8
- 注册时间: 2005-11-08 12:47
Re: 为什么每次开机多要checking file system啊?
虽然现在我把fstab的pass项设为了0,关闭了check,还是不甘心阿,
楼上的说的挂在问题是什么阿?开机不是每次多从新挂在的吗!
楼上的说的挂在问题是什么阿?开机不是每次多从新挂在的吗!