Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fsck scanning on every boot ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NitzGuy
n00b
n00b


Joined: 20 Jul 2003
Posts: 21

PostPosted: Sun Jul 20, 2003 6:03 pm    Post subject: fsck scanning on every boot ? Reply with quote

Well. last night, I did
Code:
emerge -e world --deep
and then
Code:
etc-update
and ofcourse, I overwrote everything, messing alot of stuff up. After I got it all fixed, I noticed fsck now does a scan on every boot (instead of every 22 mounts or 180 days, or something like that it said, correct me if im wrong) and its time consuming and messes up my nice clean booting sequence :(. This is what I see every startup:
Code:
* Mounting proc at /proc... [ ok ]
hub.c: new USB device 00:07.2-2.1, assigned address 4
* Starting devfsd...
Started device management daemon v1.3.25 for /dev [ ok ]
* Activating (possible) swap... [ ok ]
Adding Swap: 498004K swap-space (priority -1) [ ok ]
* Remounting root filesystem read-only (if necessary)... [ ok ]
* Checking root filesystem...
fsck1.33 (21-Apr-2003)
Reiserfs super block in block 16 on 0X304 of format 3.6 with standard journal
Blocks (total/free): 2172791/1971413 by 4096 bytes
Filesystem seems mounted read-only. Skipping journal replay.
Checking internal tree..

here it scans for a bit, then
Code:
 Checking internal tree..finished
* Remounting root filesystem read/write... [ ok ]
* Setting hostname to chris2linux... [ ok ]
* Calculating module dependencies [ ok ]
* Using /etc/modules.autoload.d/kernel-2.4:
*   Loading module 8139too... [ ok ]
* Checking all filesystems...
fsck 1.33 (21-Apr-2003)
/dev/hda2: clean. 29/8032 files, 3645/32130 blocks [ ok ]
* Mounting local filesystems... [ ok ]
* Activating (possibly) more swap... [ok ]


and from then on everything seems normal. If anything else is out of place, tips on how to fix em would be helpful, too :D. Thanks in advanced, NitzGuy


Last edited by NitzGuy on Mon Jul 21, 2003 10:18 pm; edited 2 times in total
Back to top
View user's profile Send private message
eta
n00b
n00b


Joined: 04 May 2003
Posts: 43

PostPosted: Sun Jul 20, 2003 6:44 pm    Post subject: Reply with quote

Well, I have this same problem and wanted to stop fscking everytime I boot. Here is the solution that's supposed to work but didn't - you could try it out:
Remove checkfs from boot time scripts
Quote:
rc-update del checkfs boot
Back to top
View user's profile Send private message
NitzGuy
n00b
n00b


Joined: 20 Jul 2003
Posts: 21

PostPosted: Mon Jul 21, 2003 12:51 am    Post subject: Reply with quote

I gave it a try, no luck, still does it on boot
Back to top
View user's profile Send private message
NitzGuy
n00b
n00b


Joined: 20 Jul 2003
Posts: 21

PostPosted: Mon Jul 21, 2003 6:11 pm    Post subject: Reply with quote

Ok I got some help, and figured it out. tune2fs is the command you need.
Code:

# tune2fs -c 180 /dev/hda
tune2fs 1.33 (21-Apr-2003)
Setting maximal mount count to 180

change /dev/hda to whatever partition fsck is scanning
and scan every 180 mounts is the original default, but you can change it to whatever you want. Then do
Code:

# tune2fs -i 2m
tune2fs 1.33 (21-Apr-2003)
Setting interval between check 5184000 seconds

You can change the 2m to #m(months) #d(days) #w(weeks).
Im pretty sure this would work, altho fsck is scanning my root partition (reiserfs) and I cant seem to get tune2fs to work because I get:
Code:

tune2fs: Bad magic number in super-block while trying to open /dev/hda4
Coulsn't find valid filesystem superblock.

Good luck to anyone else trying this, as for me, I'm gonna keep trying other things to figure out whats wrong. Nitz
Back to top
View user's profile Send private message
Sir Al
Guru
Guru


Joined: 08 Jul 2003
Posts: 326
Location: Vancouver, Canada

PostPosted: Mon Jul 21, 2003 6:15 pm    Post subject: Reply with quote

Now that the topic says this problem is solved, what exactly did you do to solve it? Did tune2fs work?
_________________
Athlon XP 2000+ Palomino @ 1.667ghz
Asus A7V333 Revision 1.02 w/ Promise RAID
512mb PC2700-1.5-2-2.0 @ 333mhz
MSI Geforce4 Ti4200-TD 250/446 mhz
MSI TV@nywhere TV Tuner
Antec SX1040BII Case + SL400 400W PSU
Logitech Z-540 4.1 Speakers
Back to top
View user's profile Send private message
NitzGuy
n00b
n00b


Joined: 20 Jul 2003
Posts: 21

PostPosted: Mon Jul 21, 2003 10:17 pm    Post subject: Reply with quote

Lol sorry, im alittle slow today, I was making the post as i was testing it out, and I thought it would work, but it didnt. I think I need to find a tune2fs for reiser basicially :P
Back to top
View user's profile Send private message
handsomepete
Guru
Guru


Joined: 21 Apr 2002
Posts: 548
Location: Kansas City, MO

PostPosted: Mon Jul 21, 2003 11:51 pm    Post subject: Reply with quote

Code:
/dev/hda2       /      ext3    defaults        0 0

What do you have that last field set to?
Quoth the manpage:
Quote:
If the sixth field is not present or zero, a value of zero is returned and fsck will assume that the filesystem does not need to be checked.
Back to top
View user's profile Send private message
NitzGuy
n00b
n00b


Joined: 20 Jul 2003
Posts: 21

PostPosted: Tue Jul 22, 2003 4:40 pm    Post subject: Reply with quote

yeah, i set them all as 0, hoping that it wouldnt scan them, but still, no luck
Back to top
View user's profile Send private message
lazarusrat
Guru
Guru


Joined: 17 Jul 2002
Posts: 305
Location: Lafayette, IN

PostPosted: Tue Jul 22, 2003 4:50 pm    Post subject: Reply with quote

The checkfs/checkroot scripts are still running because they're a dependency of some other init script(s). Localmount I think is one.
grep checkfs /etc/init.d/* and remove the dependencies and that should do it. I'm not saying that's going to be a good idea, but that should make it stop fscking on boot. :)
Edit: Haven't actually tried this myself
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Jul 22, 2003 7:58 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
raylpc
Guru
Guru


Joined: 07 Aug 2003
Posts: 310
Location: Toronto, Canada

PostPosted: Wed Oct 22, 2003 1:19 am    Post subject: Reply with quote

I also have this annoying problem on my laptop. But my desktop is working fine (withouth the fcsk coming up every boot).
There is a reiserfstune which is equivalent to tune2fs, I think. Will try it out after my midterms.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum