You are not logged in.

#1 2005-06-26 02:25:07

KENTOSI
Member
From: Sydney, Australia
Registered: 2005-02-27
Posts: 69
Website

20th mount reached. check forced.

Hi All,

Everytime 20th time I reboot my ArchLinux it forces a hard-check which takes aaages to complete (120GB here).  How do I disable this?  Or make it ask for confirmation?


~gautam

Offline

#2 2005-06-26 02:41:10

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: 20th mount reached. check forced.

I am wondering out of curiosity, what filesystem are you using?

Offline

#3 2005-06-26 02:47:13

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 20th mount reached. check forced.

both ext2 and ext3 exhibit this behavior.

check out the tune2fs man page. I don't know if you can disable it, but you canmake it check less often than 20 mounts.

Dusty

Offline

#4 2005-06-26 03:10:27

KENTOSI
Member
From: Sydney, Australia
Registered: 2005-02-27
Posts: 69
Website

Re: 20th mount reached. check forced.

My filesystem is the default (ext3).

I had a look at the man for tune2fs, I'm guessing I should always run:
tune2fs -C 1 af boot time?


~gautam

Offline

#5 2005-06-26 03:34:22

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: 20th mount reached. check forced.

It might not be a good idea to disable it completely.  Set it that it checks after more than 20 mounts or use -i to set a time interval between checks.  Also, you can set a different checking frequency for each partition.  That way it won't check the whole disk at once.

Offline

#6 2005-06-26 04:13:27

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: 20th mount reached. check forced.

It is possible to disable it. You only need to run tune2fs once.

Offline

#7 2005-06-26 06:46:11

rasat
Forum Fellow
From: Finland, working in Romania
Registered: 2002-12-27
Posts: 2,293
Website

Re: 20th mount reached. check forced.

shaurz wrote:

It is possible to disable it.

Edit /etc/fstab and use option "0 0" instead of "0 1".
Example:
/dev/discs/disc0/part2 / ext3 defaults 0 0

Some may say its not safe, but I have been using this config for two years and no problem. Some places where I have been staying, often electricity goes off.


Markku

Offline

#8 2005-06-26 09:11:25

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: 20th mount reached. check forced.

Or, do the sensible thing, and partition your ridiculously large hard disk!  roll

Offline

#9 2005-06-26 15:44:25

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: 20th mount reached. check forced.

rasat wrote:
shaurz wrote:

It is possible to disable it.

Edit /etc/fstab and use option "0 0" instead of "0 1".
Example:
/dev/discs/disc0/part2 / ext3 defaults 0 0

Some may say its not safe, but I have been using this config for two years and no problem. Some places where I have been staying, often electricity goes off.

JFS really doesn't like that: I've been using a big JFS-partition with my movies and stuff on it, whenever I had an improper reboot, the partition wouldn't mount before I fsck'ed it. I guess it depends a lot on the FS you're using.
I don't get why Arch uses the "unsafe" way as default.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#10 2005-06-27 04:42:02

colnago
Member
From: Victoria, BC
Registered: 2004-03-25
Posts: 438

Re: 20th mount reached. check forced.

I think it is because reiser doesn't allow the check if the partition is mounted, so the  '...defaults 0 1' in fstab doesn't work.

Offline

#11 2005-06-27 13:50:28

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: 20th mount reached. check forced.

rasat wrote:
shaurz wrote:

It is possible to disable it.

Edit /etc/fstab and use option "0 0" instead of "0 1".

I was thinking of:

tune2fs -c 0 /dev/hdXX

I wouldn't do this on any of my normal filesystems. I've only ever used this for a floppy disk image I was mounting a lot (don't ask).

Offline

#12 2005-06-27 14:40:29

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: 20th mount reached. check forced.

shaurz wrote:

I wouldn't do this on any of my normal filesystems. I've only ever used this for a floppy disk image I was mounting a lot (don't ask).

Why were you mounting a floppy disk image a lot?

:shock:

Dusty

Offline

#13 2005-06-27 16:19:31

Shofs
Member
From: Central Illinois
Registered: 2004-12-15
Posts: 184

Re: 20th mount reached. check forced.

KENTOSI wrote:

My filesystem is the default (ext3).

I had a look at the man for tune2fs, I'm guessing I should always run:
tune2fs -C 1 af boot time?

That is what I figured, apparently Dusty did as well.

Offline

Board footer

Powered by FluxBB